|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectooc.Tag
Represents a tag in the XML code.
Method Summary | |
boolean |
extending(Tag tag)
Return true if this tag is extending the given tag. |
boolean |
extendingOneOrMore(java.util.Iterator tags)
|
java.util.Iterator |
getAncestorIterator()
|
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
java.lang.Object |
getAttribute(java.lang.String attributeName,
Dependencies dependencies)
|
java.lang.Object |
getAttribute(java.lang.String attributeName,
java.lang.Object key,
java.lang.Object value)
|
boolean |
getAttributeBoolean(java.lang.String attributeName)
|
boolean |
getAttributeBoolean(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed boolean value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
double |
getAttributeDouble(java.lang.String attributeName)
|
double |
getAttributeDouble(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed double value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
float |
getAttributeFloat(java.lang.String attributeName)
|
float |
getAttributeFloat(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed float value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
int |
getAttributeInteger(java.lang.String attributeName)
|
int |
getAttributeInteger(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed int value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
java.util.Iterator |
getAttributeKeyIterator()
|
java.util.List |
getAttributeList(java.lang.String attributeName)
|
java.util.List |
getAttributeList(java.lang.String attributeName,
Dependencies dependencies)
|
long |
getAttributeLong(java.lang.String attributeName)
|
long |
getAttributeLong(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed long value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
java.lang.String |
getAttributeRef(java.lang.String attributeName)
|
java.lang.String |
getAttributeRef(TagAttribute attribute)
|
short |
getAttributeShort(java.lang.String attributeName)
|
short |
getAttributeShort(java.lang.String attributeName,
Dependencies dependencies)
Returns a parsed short value using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
java.lang.String |
getAttributeString(java.lang.String attributeName)
|
java.lang.String |
getAttributeString(java.lang.String attributeName,
Dependencies dependencies)
Returns a string using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
Tag |
getAttributeTag(java.lang.String attributeName)
|
Tag |
getAttributeTag(java.lang.String attributeName,
Dependencies dependencies)
Returns a Tag using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object) . |
java.util.Iterator |
getChildIterator()
Returns an iterator of the children of this tag. |
java.util.Iterator |
getChildIterator(Tag superTag)
Returns an iterator of the children of this tag such that all retained from the iterator extends superTag. |
java.util.Iterator |
getChildIteratorByName(java.lang.String tagName)
Returns an iterator with child tags such that their name is as given. |
Container |
getContainer()
Returns the Container instance that this tag belong to. |
Tag |
getContainerTag(java.lang.String tagId)
|
java.util.Iterator |
getDescendentIterator()
|
Tag |
getFirstChildTag(Tag tag)
Returns the first child tag extending the given name. |
Tag |
getFirstChildTagByName(java.lang.String tagName)
Returns the first child tag with the given name. |
Tag |
getParentTag()
Returns the parent tag of this tag. |
int |
getSourceLine()
Returns the number of the line of the source where this tag was parsed. |
SourceTagHolder |
getSourceTagHolder()
Returns the source tag holder where this tag resides. |
java.lang.String |
getTagId()
Returns the value of the did attribute. |
java.lang.Object |
getTagInstance()
|
java.lang.Object |
getTagInstance(Dependencies dependencies)
|
java.lang.Object |
getTagInstance(java.lang.Object key,
java.lang.Object obj)
|
java.lang.Object |
getTagInstance(java.lang.Object key1,
java.lang.Object obj1,
java.lang.Object key2,
java.lang.Object obj2)
|
java.lang.String |
getTagName()
Returns the name of the tag. |
java.lang.String |
getTagRef()
Returns a reference to this tag. |
java.lang.String |
getText()
Returns the text in this tag. |
boolean |
hasAncestorTags()
|
boolean |
hasAttributeConverter(java.lang.String attributeName)
|
boolean |
hasAttributeValue(java.lang.String attributeName)
|
boolean |
hasChildTag(Tag superTag)
|
boolean |
hasChildTagByName(java.lang.String tagName)
Returns true if there exists a child tag with the given name, else false. |
boolean |
hasChildTags()
Returns true if this tag has child tags. |
boolean |
hasDescendentTags()
|
boolean |
hasParentTag()
Returns true if this tag has a parent tag, else false. |
boolean |
isTagAbstract()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Container getContainer()
Container
instance that this tag belong to.
Container
instance that this tag belong to.public SourceTagHolder getSourceTagHolder()
public int getSourceLine()
Source
,
SourceContext
public java.lang.String getTagId()
public Tag getContainerTag(java.lang.String tagId)
public boolean hasAncestorTags()
public java.util.Iterator getAncestorIterator()
public boolean hasDescendentTags()
public java.util.Iterator getDescendentIterator()
public boolean hasParentTag()
public Tag getParentTag()
OocException
- if no parent tag exists.public java.lang.String getTagRef()
public java.lang.String getAttributeRef(java.lang.String attributeName)
public java.lang.String getAttributeRef(TagAttribute attribute)
public java.lang.String getTagName()
public java.lang.String getText()
public boolean isTagAbstract()
public java.lang.Object getAttribute(java.lang.String attributeName, java.lang.Object key, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String attributeName)
public java.lang.Object getAttribute(java.lang.String attributeName, Dependencies dependencies)
public boolean hasAttributeValue(java.lang.String attributeName)
public boolean hasAttributeConverter(java.lang.String attributeName)
public java.util.Iterator getAttributeKeyIterator()
public boolean extending(Tag tag)
tag
- is a tag.
public boolean extendingOneOrMore(java.util.Iterator tags)
public java.util.List getAttributeList(java.lang.String attributeName)
public java.util.List getAttributeList(java.lang.String attributeName, Dependencies dependencies)
public Tag getAttributeTag(java.lang.String attributeName, Dependencies dependencies)
Tag
using method getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public Tag getAttributeTag(java.lang.String attributeName)
public java.lang.String getAttributeString(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public java.lang.String getAttributeString(java.lang.String attributeName)
public short getAttributeShort(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public short getAttributeShort(java.lang.String attributeName)
public int getAttributeInteger(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public int getAttributeInteger(java.lang.String attributeName)
public long getAttributeLong(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public long getAttributeLong(java.lang.String attributeName)
public double getAttributeDouble(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public double getAttributeDouble(java.lang.String attributeName)
public float getAttributeFloat(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
attributeName
- is the name of attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.public float getAttributeFloat(java.lang.String attributeName)
public boolean getAttributeBoolean(java.lang.String attributeName, Dependencies dependencies)
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
The attribute value can only be yes or no.
attributeName
- is the name of the attribute.dependencies
- is a map over any objects needed to retain
this attribute value.
getAttribute(java.lang.String, java.lang.Object, java.lang.Object)
.
OocException
- if attribute does not exist or contain
anything else then yes or no.public boolean getAttributeBoolean(java.lang.String attributeName)
public boolean hasChildTags()
public java.util.Iterator getChildIteratorByName(java.lang.String tagName)
tagName
- is the name of the tags returned.
public java.util.Iterator getChildIterator(Tag superTag)
superTag
- is the super tag of all tags returned by the iterator.
public java.util.Iterator getChildIterator()
public boolean hasChildTagByName(java.lang.String tagName)
tagName
- is the name of the tag.
public Tag getFirstChildTagByName(java.lang.String tagName)
tagName
- is the name of the tag.
OocException
- if there does not exist a child tag with
the given name.public boolean hasChildTag(Tag superTag)
public Tag getFirstChildTag(Tag tag)
tag
- is the given tag.
OocException
- if a child tag does not exists.public java.lang.Object getTagInstance(java.lang.Object key, java.lang.Object obj)
public java.lang.Object getTagInstance(java.lang.Object key1, java.lang.Object obj1, java.lang.Object key2, java.lang.Object obj2)
public java.lang.Object getTagInstance()
public java.lang.Object getTagInstance(Dependencies dependencies)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |