net.sf.fikin.ant.types
Class Namespace

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
      extended by net.sf.fikin.ant.types.Namespace
All Implemented Interfaces:
Type
Direct Known Subclasses:
XPathTask.Function

public class Namespace
extends IfUnless

created on Jan 3, 2007

Since:
Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
Namespace()
           
 
Method Summary
 void check(org.apache.tools.ant.Task task)
          check if uri and prefix has been set
 java.lang.String getPrefix()
          get namespace prefix
 java.lang.String getUri()
          get namespace uri
 void setPrefix(java.lang.String prefix)
          set the namespace prefix
 void setUri(java.lang.String uri)
          set the namespace uri
 
Methods inherited from class net.sf.fikin.ant.types.IfUnless
setIf, setUnless, shouldUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace()
Method Detail

setUri

public void setUri(java.lang.String uri)
set the namespace uri

Parameters:
uri -
Ant Task Param Required:
true

getUri

public java.lang.String getUri()
get namespace uri

Returns:
namespace uri

setPrefix

public void setPrefix(java.lang.String prefix)
set the namespace prefix

Parameters:
prefix -
Ant Task Param Required:
true

getPrefix

public java.lang.String getPrefix()
get namespace prefix

Returns:
namespace prefix

check

public void check(org.apache.tools.ant.Task task)
           throws org.apache.tools.ant.BuildException
check if uri and prefix has been set

Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.