public interface IMXMLData
The file is represented as a sequence of "units", one for each open tag, close tag, and block of text.
No meaning is assigned to any tag, attribute, or text.
| Modifier and Type | Method and Description |
|---|---|
IMXMLTagData |
findTagOrSurroundingTagContainingOffset(int offset)
Similar to findTagContainingOffset, but if the unit inside offset is a
text node, will return the surrounding tag instead.
|
int |
getEnd()
Gets the ending offset of the last unit.
|
IFileSpecification |
getFileSpecification()
Gets the file on disk that created this
MXMLData. |
MXMLDialect |
getMXMLDialect()
Gets the MXML dialect being used.
|
int |
getNumUnits()
Gets the number of MXML "units".
|
String |
getPath()
Gets the path to the file on disk that created this
MXMLData. |
PrefixMap |
getPrefixMapForData(IMXMLTagData data)
Returns the PrefixMap for the given
IMXMLTagData. |
Collection<ICompilerProblem> |
getProblems()
Gets the compiler problems found during the creation of this
MXMLData. |
IMXMLTagData |
getRootTag()
Gets the root tag.
|
IMXMLUnitData |
getUnit(int i)
Gets an MXML unit by index.
|
IMXMLUnitData[] |
getUnits()
Get the MXML units found in this
IMXMLData. |
IFileSpecification getFileSpecification()
MXMLData.IFileSpecification.String getPath()
MXMLData.String.MXMLDialect getMXMLDialect()
MXMLDialect.IMXMLUnitData[] getUnits()
IMXMLData.IMXMLUnitData.int getNumUnits()
Each unit represents an open tag, a close tag, a block of text, etc.
MXMLUnitData objects you can retrieve with
getUnit().IMXMLUnitData getUnit(int i)
i - The index into the list of MXML units.null if the index is out
of range.Collection<ICompilerProblem> getProblems()
MXMLData.ICompilerProblem objects.int getEnd()
IMXMLTagData getRootTag()
MXMLTagData for the root tag.IMXMLTagData findTagOrSurroundingTagContainingOffset(int offset)
offset - offsetPrefixMap getPrefixMapForData(IMXMLTagData data)
IMXMLTagData. This will not
walk up the chain of prefix maps if this tag does not physically have
uri->namespace mappings.data - the IMXMLTagData to find the PrefixMap forPrefixMap or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.