ProxyXmlStartTag implements the XPP XmlSmartTag interface
while creating a dom4j Element underneath.
| Modifier and Type | Field and Description |
|---|---|
| private Element | element
The element being constructed |
| private DocumentFactory | factory
The factory used to create new elements |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAttribute(String
DOCUMENT ME! namespaceURI, String DOCUMENT ME! localName, String DOCUMENT ME! rawName, String DOCUMENT ME! value)Implements org. |
| public void | addAttribute(String namespaceURI, String localName, String rawName, String value, boolean isNamespaceDeclaration)
Implements org. Note this class has no support for resolving namespaces and such support may be added later (see XmlNode and namespaces methids) |
| public void | ensureAttributesCapacity(int minCapacity)
Implements org. |
| public int | getAttributeCount()
Implements org. |
| public String | getAttributeLocalName(int index)
Implements org. |
| public String | getAttributeNamespaceUri(int index)
Implements org. |
| public String | getAttributePrefix(int index)
Implements org. |
| public String | getAttributeRawName(int index)
Implements org. |
| public String | getAttributeValue(int index)
Implements org. |
| public String | getAttributeValueFromName(String namespaceURI, String localName)
Implements org. |
| public String | getAttributeValueFromRawName(String rawName)
Implements org. |
| public DocumentFactory | |
| public Element | |
| public String | getLocalName()
Implements org. |
| public String | getNamespaceUri()
Implements org. |
| public String | getPrefix()
Implements org. |
| public String | getRawName()
Implements org. |
| public boolean | isAttributeNamespaceDeclaration(int index)
Implements org. |
| public void | modifyTag(String
maybe null then default "" namespace is used namespaceURI, String may be null then rawName is used lName, String actual attribute name MUST be not null
if it is null exception MUST be thrown rawName)Implements org. |
| public boolean | removeAttributeByName(String s, String s1)
Implements org. |
| public boolean | removeAttributeByRawName(String s)
Implements org. |
| public void | |
| public void | resetStartTag()
Implements org. |
| public void | |
| public void |
| element | back to summary |
|---|---|
| private Element element The element being constructed | |
| factory | back to summary |
|---|---|
| private DocumentFactory factory The factory used to create new elements | |
| ProxyXmlStartTag | back to summary |
|---|---|
| public ProxyXmlStartTag() | |
| ProxyXmlStartTag | back to summary |
|---|---|
| public ProxyXmlStartTag(Element element) | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String namespaceURI, String localName, String rawName, String value) throws XmlPullParserException Implements org. parameters modeled after SAX2 attribute approach
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String namespaceURI, String localName, String rawName, String value, boolean isNamespaceDeclaration) throws XmlPullParserException Implements org. Doc from org. Parameter isNamespaceDeclaration if true indicates that attribute is related to namespace management and may be ignored by normal processing Note this class has no support for resolving namespaces and such support may be added later (see XmlNode and namespaces methids) | |
| ensureAttributesCapacity | back to summary |
|---|---|
| public void ensureAttributesCapacity(int minCapacity) throws XmlPullParserException Implements org. Doc from org. Pre-allocate if necessary tag data structure to hold at least minCapacity attributes . | |
| getAttributeCount | back to summary |
|---|---|
| public int getAttributeCount() Implements org. Doc from org. Returns the number of attributes on the current element | |
| getAttributeLocalName | back to summary |
|---|---|
| public String getAttributeLocalName(int index) Implements org. Doc from org. Returns the localname of the specified attribute if namespaces enabled or just attribute name if namespaces disabled. Returns null if invalid index. | |
| getAttributeNamespaceUri | back to summary |
|---|---|
| public String getAttributeNamespaceUri(int index) Implements org. Doc from org. Returns the namespace URI of the specified attribute number index (starts from 0). (meaningful only if namespaces enabled) Returns null if invalid index. | |
| getAttributePrefix | back to summary |
|---|---|
| public String getAttributePrefix(int index) Implements org. Doc from org. Returns the prefix of the specified attribute Returns null if invalid index or if element has no prefix. | |
| getAttributeRawName | back to summary |
|---|---|
| public String getAttributeRawName(int index) Implements org. Doc from org. Returns the raw name of the specified attribute Returns null if invalid index. | |
| getAttributeValue | back to summary |
|---|---|
| public String getAttributeValue(int index) Implements org. Doc from org. Returns the given attributes value Returns null if invalid index. | |
| getAttributeValueFromName | back to summary |
|---|---|
| public String getAttributeValueFromName(String namespaceURI, String localName) Implements org. Doc from org. Returns the given attributes value | |
| getAttributeValueFromRawName | back to summary |
|---|---|
| public String getAttributeValueFromRawName(String rawName) Implements org. Doc from org. Returns the given attributes value Returns null if no attribute with rawName. | |
| getDocumentFactory | back to summary |
|---|---|
| public DocumentFactory getDocumentFactory() | |
| getElement | back to summary |
|---|---|
| public Element getElement() | |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Implements org. Doc from org. Returns the local name of the current element | |
| getNamespaceUri | back to summary |
|---|---|
| public String getNamespaceUri() Implements org. Doc from org. Returns the namespace URI of the current element Returns null if not applicable | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Implements org. Doc from org. Returns the prefix of the current element or null if elemet has no prefix. | |
| getRawName | back to summary |
|---|---|
| public String getRawName() Implements org. Doc from org. Returns the raw name (prefix + ':' + localName) of the current element | |
| isAttributeNamespaceDeclaration | back to summary |
|---|---|
| public boolean isAttributeNamespaceDeclaration(int index) Implements org. Doc from org. Return true if attribute at index is namespace declaration such as xmlns='...' or xmlns:prefix='...' | |
| modifyTag | back to summary |
|---|---|
| public void modifyTag(String namespaceURI, String lName, String rawName) Implements org. Doc from org. Modify tag to have namespace URI, localName and rawName. Note setting modeled after SAX2 startTag | |
| removeAttributeByName | back to summary |
|---|---|
| public boolean removeAttributeByName(String s, String s1) throws XmlPullParserException Implements org. Doc from org. This method tries to remove attribute identified by namespace uti and local name.
| |
| removeAttributeByRawName | back to summary |
|---|---|
| public boolean removeAttributeByRawName(String s) throws XmlPullParserException Implements org. Doc from org. This method tries to remove attribute identified by raw name.
| |
| removeAttributes | back to summary |
|---|---|
| public void removeAttributes() throws XmlPullParserException Implements org. remove all atribute
| |
| resetStartTag | back to summary |
|---|---|
| public void resetStartTag() Implements org. Doc from org. Clear all Tag state to default values. | |
| resetTag | back to summary |
|---|---|
| public void resetTag() Implements org. Doc from org. Clear all Tag state to default values. | |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory) | |