|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.types.DataType | +--org.apache.anteater.test.BaseDataType | +--org.apache.anteater.test.Namespace
Anteater representation of an XML namespace mapping.
Models what would usually be stored in XML as an attribute,
xmlns:prefix="url"
. Ant does not make namespace information
available to tasks, so we have to store this info as a separate element.
Field Summary | |
protected String |
_prefix
|
protected String |
_uri
|
Fields inherited from class org.apache.anteater.test.BaseDataType |
debug, debugWasSet |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Namespace()
No-arg constructor needed by Ant. |
Method Summary | |
static Namespace |
create(org.apache.tools.ant.Project proj,
String prefix,
String uri)
A factory for creating Namespaces which have their 'project' field properly set. |
String |
getPrefix()
Get the XML namespace prefix. |
String |
getURI()
Get the XML namespace URI. |
void |
setPrefix(String prefix)
Set the XML namespace prefix. |
void |
setURI(String uri)
Set the XML namespace URI. |
String |
toString()
Debugging representation of the ns mapping. |
Methods inherited from class org.apache.anteater.test.BaseDataType |
debug, getDataTypeName, getDebug, getGroup, getRef, print, println, setDebug, setGroup, setGroup, setRefid |
Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String _prefix
protected String _uri
Constructor Detail |
public Namespace()
Method Detail |
public static Namespace create(org.apache.tools.ant.Project proj, String prefix, String uri)
public void setPrefix(String prefix)
XPath task
.
public void setURI(String uri)
public String getPrefix()
null
if not set.public String getURI()
null
if not set.public String toString()
toString
in class Object
prefix -> uri
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |