public class XMLStartElement extends Object
| Constructor and Description |
|---|
XMLStartElement(String localName)
Create a new start element with a given name
|
XMLStartElement(String prefix,
String localName)
Create a new start element with a given prefix and name
|
XMLStartElement(String prefix,
String localName,
String[] namespacePrefixes,
String[] namespaceUris)
Create a new start element with a given prefix, name and namespaces
|
XMLStartElement(String prefix,
String localName,
String[] attributePrefixes,
String[] attributeLocalNames,
String[] attributeValues)
Create a new start element with a given prefix, name and attributes
|
XMLStartElement(String prefix,
String localName,
String[] namespacePrefixes,
String[] namespaceUris,
String[] attributePrefixes,
String[] attributeLocalNames,
String[] attributeValues)
Create a new start element with a given prefix, name and namespaces
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static XMLStartElement |
fromJsonObject(JsonObject obj)
Converts a
JsonObject to a XMLStartElement |
int |
getAttributeCount() |
String |
getAttributeLocalName(int i)
Get the local name of an attribute at a given position
|
String |
getAttributePrefix(int i)
Get an attribute prefix at a given position
|
String |
getAttributeValue(int i)
Get an attribute value at a given position
|
String |
getLocalName() |
String |
getName() |
int |
getNamespaceCount() |
String |
getNamespacePrefix(int i)
Get a namespace prefix at a given position
|
String |
getNamespaceUri(int i)
Get a namespace URI at a given position
|
String |
getPrefix() |
int |
hashCode() |
JsonObject |
toJsonObject() |
String |
toString() |
public XMLStartElement(String localName)
localName - the namepublic XMLStartElement(String prefix, String localName)
prefix - the prefix (may be null)localName - the namepublic XMLStartElement(String prefix, String localName, String[] namespacePrefixes, String[] namespaceUris)
prefix - the prefix (may be null)localName - the namenamespacePrefixes - the namespace prefixes (may be null)namespaceUris - the namespace URIs (may be null)public XMLStartElement(String prefix, String localName, String[] attributePrefixes, String[] attributeLocalNames, String[] attributeValues)
prefix - the prefix (may be null)localName - the nameattributePrefixes - the attribute prefixes (may be null)attributeLocalNames - the attribute names (may be null)attributeValues - the attribute values (may be null)public XMLStartElement(String prefix, String localName, String[] namespacePrefixes, String[] namespaceUris, String[] attributePrefixes, String[] attributeLocalNames, String[] attributeValues)
prefix - the prefix (may be null)localName - the namenamespacePrefixes - the namespace prefixes (may be null)namespaceUris - the namespace URIs (may be null)attributePrefixes - the attribute prefixes (may be null)attributeLocalNames - the attribute names (may be null)attributeValues - the attribute values (may be null)public String getPrefix()
public String getLocalName()
public String getName()
public int getNamespaceCount()
public String getNamespacePrefix(int i)
i - the positionpublic String getNamespaceUri(int i)
i - the positionpublic int getAttributeCount()
public String getAttributePrefix(int i)
i - the positionpublic String getAttributeLocalName(int i)
i - the positionpublic String getAttributeValue(int i)
i - the positionpublic JsonObject toJsonObject()
JsonObjectpublic static XMLStartElement fromJsonObject(JsonObject obj)
JsonObject to a XMLStartElementobj - the JsonObject to convertXMLStartElement