public interface IMXMLTagData extends IMXMLUnitData
UNKNOWN| Modifier and Type | Method and Description |
|---|---|
IMXMLTagData |
findMatchingEndTag()
Finds the close tag that matches this tag.
|
IMXMLTagAttributeData[] |
getAttributeDatas()
Gets all of the attributes in this tag.
|
String |
getCompilableText()
Gets this compilable text inside this tag.
|
PrefixMap |
getCompositePrefixMap()
Gets the namespace mapping that apply to this tag, taking ancestor tags
into account.
|
IMXMLTagData |
getFirstChild(boolean includeEmptyTags)
Gets the first child open tag of this tag.
|
IMXMLUnitData |
getFirstChildUnit()
Gets the first child unit inside this tag.
|
ISourceLocation |
getLocationOfChildUnits()
Gets the source location of this tag's child units.
|
String |
getName()
Gets the name of this tag as written, such as
"s:width.over"
. |
IMXMLTagData |
getNextSibling(boolean includeEmptyTags)
Gets the next sibling open tag of this tag.
|
IMXMLTagData |
getParentTag()
Gets the tag that contains this tag.
|
String |
getPrefix()
Gets the prefix of this tag.
|
PrefixMap |
getPrefixMap()
Gets the namespace mappings specified on this tag.
|
String |
getRawAttributeValue(String attributeName)
Gets the attribute value in this tag for the specified attribute name.
|
String |
getShortName()
Gets the short name of this tag, not including the prefix or state.
|
String |
getStateName()
Gets the state name for this tag.
|
IMXMLTagAttributeData |
getTagAttributeData(String attributeName)
Gets the attribute in this tag that has the specified name.
|
String |
getURI()
Gets the URI of this tag.
|
XMLName |
getXMLName()
Gets the name of this tag as an
XMLName. |
boolean |
hasExplicitCloseTag()
Determines whether this tag has an actual close tag, and was not closed
as a post-process step of MXML repair.
|
boolean |
isCloseTag()
Determines whether this tag is a close tag.
|
boolean |
isEmptyTag()
Determines whether this tag is empty.
|
boolean |
isImplicit()
Determines whether this tag does not actually exist within the MXML
document that is its source.
|
boolean |
isOffsetInAttributeList(int offset)
Determines whether the specified offset falls inside the attribute list
of this tag.
|
containsOffset, getContainingTag, getContentEnd, getContentStart, getIndex, getMXMLDialect, getNext, getNextSiblingUnit, getNextTag, getParent, getParentUnitData, getPrevious, getSource, isOpenAndNotEmptyTag, isOpenTag, isTag, isTextgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartIMXMLTagData getParentTag()
If the document is not balanced before this tag, this method returns
null.
IMXMLTagData object.boolean isEmptyTag()
true if it is.boolean isCloseTag()
isCloseTag in interface IMXMLUnitDatatrue if it is.boolean hasExplicitCloseTag()
String getName()
"s:width.over"
.String getPrefix()
If the tag does not have a prefix, this method returns null.
null.PrefixMap getPrefixMap()
PrefixMap getCompositePrefixMap()
String getURI()
If the tag does not have a prefix, this method returns null.
null.String getShortName()
StringXMLName getXMLName()
XMLName.
This takes into account the prefix but not the state.
XMLName.String getStateName()
Stringboolean isOffsetInAttributeList(int offset)
offset - The offset to test.true if the offset falls inside this tag's attribute
list.IMXMLTagAttributeData[] getAttributeDatas()
IMXMLTagAttributeData
objects.IMXMLTagAttributeData getTagAttributeData(String attributeName)
attributeName - The name of the attribute.null if no such attribute exists.String getRawAttributeValue(String attributeName)
This value does not include the quotes.
attributeName - The name of the attribute.null if no such
attribute exists.ISourceLocation getLocationOfChildUnits()
IMXMLUnitData getFirstChildUnit()
The child unit may be a tag or text. If there is no child unit, this
method returns null.
IMXMLTagData getFirstChild(boolean includeEmptyTags)
"First child" means the first open (or maybe empty) tag found before a close tag. If this is a close tag, this method starts looking after the corresponding start tag.
IMXMLTagData getNextSibling(boolean includeEmptyTags)
"Sibling" is defined as the first open (or maybe empty) tag after this tag's close tag. If this is a close tag, this method starts looking after the corresponding start tag.
IMXMLTagData findMatchingEndTag()
Returns null if this tag is a close or empty tag.
Returns null if a surrounding tag is unbalanced; this is determined by backing up to the innermost parent tag with a different tag.
<a> <b> <b> <-- find matching for this one will return null
</b> </a> *
String getCompilableText()
boolean isImplicit()
true if this tag is implicit.Copyright © 2023 The Apache Software Foundation. All rights reserved.