public SDMParserDocument |
clone()
|
Creates a copy of this object. |
public String |
getAttribute(String...)
|
Returns the value of the first attribute with the given route. |
public List< String > |
getAttributes(String...)
|
Returns all the values of attributes with the given route. |
protected int |
getAttributesEndPosition(int[], int, int)
|
|
public Map< String, String > |
getChildAttributeMap(String...)
|
Returns all the name-value pairs of attributes contained by the element with the given route. |
public List< String > |
getChildAttributes(String...)
|
Returns all the values of attributes contained by the element with the given route. |
public List< ISDMParserDocument > |
getChildDocuments(String...)
|
Returns the elements contained by the element with the given route. |
public List< ISDMParserDocument > |
getChildDocumentsWithAttribute(String, String, String...)
|
Returns the elements contained by the element with the given route and having the given attribute with the given value. |
public List< ISDMParserDocument > |
getChildDocumentsWithAttribute(String, String, boolean, String...)
|
Returns the elements contained by the element with the given route and having the given attribute with the given value. |
public SDMParserDocument |
getDocument(String...)
|
Returns the first element with the given route. |
protected List< int[]> |
getDocumentPositions(String[], int, boolean, boolean)
|
|
public List< ISDMParserDocument > |
getDocuments(String...)
|
Returns all the elements with the given route. |
public List< ISDMParserDocument > |
getDocumentsWithAttribute(String, String, String...)
|
Returns the elements with the given route that contains the given attribute with the given value. |
public List< ISDMParserDocument > |
getDocumentsWithAttribute(String, String, boolean, String...)
|
Returns the elements with the given route that contains the given attribute with the given value. |
public ISDMParserDocument |
getDocumentWithAttribute(String, String, String...)
|
Returns the first element with the given route that contains the given attribute with the given value. |
public ISDMParserDocument |
getDocumentWithAttribute(String, String, boolean, String...)
|
Returns the first element with the given route that contains the given attribute with the given value. |
public String |
getElementName()
|
Returns The name of the root element of this document. |
public String |
getExtension(String)
|
|
public String |
getFunctionImportComplexPropertyValue(String...)
|
|
static int |
getNameId(String, boolean, boolean)
|
|
public static List< String > |
getNameMap()
|
|
public static String |
getPrefix(String)
|
|
public String |
getPrefixForUri(String)
|
Returns the appropriate name-space prefix for the given XML name-space URI. |
public static Map< String, String > |
getPrefixMapping()
|
|
protected List< Integer > |
getStringPositions(String[], int, boolean, boolean)
|
|
public String[] |
getStrings()
|
Returns all the string values contained by this document. |
public String |
getValue(String...)
|
Returns the value of the first element with the given route. |
public List< String > |
getValues(String...)
|
Returns all the values of elements with the given route. |
protected int[] |
insertRoutePositions(int[], int, int[])
|
|
protected void |
insertRoutesPositions(int, int[])
|
|
protected void |
insertStringsPositions(int, String[])
|
|
protected String[] |
insertStringsPositions(String[], int, String[])
|
|
protected boolean |
isMatched(String, String)
|
|
public void |
putAttribute(String, String...)
|
Sets the value of the attribute with the given route If attribute does not exist it will be created as well as all other non existing elements in the route. |
public void |
putDocument(ISDMParserDocument, String...)
|
Insert the document under the element with the given route inserted document will be placed before already existing documents with the same route name under All missing elements from the route will be created. |
public void |
putExtension(String, String)
|
|
protected void |
putString(int, String, int, String...)
|
|
public void |
putValue(String, String...)
|
Sets the value of the first element with the given route. |
public void |
read(BufferedReader)
|
|
public static void |
readNameMap(BufferedReader)
|
|
public boolean |
removeAttribute(String...)
|
Removes first element with the given route. |
public boolean |
removeAttributes(String...)
|
Removes all the attribute with the given route. |
public boolean |
removeDocument(String...)
|
Removes first element with the given route For removing multiple element use setDocuemtns with null arguments. |
public void |
removeExtension(String)
|
|
protected void |
removeRoutesPositions(int, int)
|
|
protected int[] |
removeRoutesPositions(int[], int, int)
|
|
protected boolean |
removeString(String...)
|
|
protected boolean |
removeStrings(String...)
|
|
protected void |
removeStringsPositions(int, int)
|
|
protected String[] |
removeStringsPositions(String[], int, int)
|
|
protected int |
replaceRoutesPositions(int, int, int[])
|
|
protected int[] |
replaceRoutesPositions(int[], int, int, int[])
|
|
protected int |
replaceStringsPositions(int, int, String[])
|
|
protected String[] |
replaceStringsPositions(String[], int, int, String[])
|
|
public static String |
resolveUrl(String, String)
|
|
public void |
setAttribute(String, String...)
|
|
public void |
setAttributes(List< String >, String...)
|
Sets all the values of the attributes with the given route Values will be paired to attributes in order Attributes with greater or equals index than size of new values will be untouched Attributes paired with null values will be removed. |
public boolean |
setDocument(ISDMParserDocument, String...)
|
|
public void |
setDocuments(List< ISDMParserDocument >, String...)
|
Replaces all the elements with the given route Documents will be paired to elements in order Elements with greater or equals index than size of new elements will be untouched Element paired with null will be removed. |
public void |
setElementName(String, String...)
|
Sets the name of the root element with the given route Use empty route for setting root name of this document. |
public static void |
setNameMap(List< String >)
|
|
public static void |
setPrefixMapping(Map< String, String >)
|
|
protected void |
setString(String, String...)
|
|
protected void |
setStrings(List< String >, String...)
|
|
public void |
setValue(String, String...)
|
|
public void |
setValues(List< String >, String...)
|
Sets all the values of the elements with the given rout Values will be paired to elements in order Elements with greater or equals index than size of new values will be untouched Null values will be treated as empty strings. |
public String |
toXMLString()
|
Returns the XML string representation of this object. |
public void |
write(BufferedWriter)
|
|
public static void |
writeNameMap(BufferedWriter)
|
|