Package org.dom4j.xpp
Class ProxyXmlStartTag
java.lang.Object
org.dom4j.xpp.ProxyXmlStartTag
- All Implemented Interfaces:
org.gjt.xpp.XmlStartTag
,org.gjt.xpp.XmlTag
ProxyXmlStartTag
implements the XPP XmlSmartTag
interface while creating a dom4j Element
underneath.- Author:
- James Strachan, Maarten Coene, Wolfgang Baer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String namespaceURI, String localName, String rawName, String value) parameters modeled after SAX2 attribute approachvoid
addAttribute
(String namespaceURI, String localName, String rawName, String value, boolean isNamespaceDeclaration) void
ensureAttributesCapacity
(int minCapacity) int
getAttributeLocalName
(int index) getAttributeNamespaceUri
(int index) getAttributePrefix
(int index) getAttributeRawName
(int index) getAttributeValue
(int index) getAttributeValueFromName
(String namespaceURI, String localName) getAttributeValueFromRawName
(String rawName) boolean
isAttributeNamespaceDeclaration
(int index) void
boolean
removeAttributeByName
(String namespaceURI, String localName) boolean
removeAttributeByRawName
(String rawName) void
void
Deprecated.void
void
resetTag()
void
setDocumentFactory
(DocumentFactory documentFactory)
-
Constructor Details
-
ProxyXmlStartTag
public ProxyXmlStartTag() -
ProxyXmlStartTag
-
-
Method Details
-
resetStartTag
public void resetStartTag()- Specified by:
resetStartTag
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCount
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeNamespaceUri
- Specified by:
getAttributeNamespaceUri
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeLocalName
- Specified by:
getAttributeLocalName
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributePrefix
- Specified by:
getAttributePrefix
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeRawName
- Specified by:
getAttributeRawName
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValueFromRawName
- Specified by:
getAttributeValueFromRawName
in interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValueFromName
- Specified by:
getAttributeValueFromName
in interfaceorg.gjt.xpp.XmlStartTag
-
isAttributeNamespaceDeclaration
public boolean isAttributeNamespaceDeclaration(int index) - Specified by:
isAttributeNamespaceDeclaration
in interfaceorg.gjt.xpp.XmlStartTag
-
addAttribute
public void addAttribute(String namespaceURI, String localName, String rawName, String value) throws org.gjt.xpp.XmlPullParserException parameters modeled after SAX2 attribute approach- Specified by:
addAttribute
in interfaceorg.gjt.xpp.XmlStartTag
- Parameters:
namespaceURI
- DOCUMENT ME!localName
- DOCUMENT ME!rawName
- DOCUMENT ME!value
- DOCUMENT ME!- Throws:
org.gjt.xpp.XmlPullParserException
- DOCUMENT ME!
-
addAttribute
public void addAttribute(String namespaceURI, String localName, String rawName, String value, boolean isNamespaceDeclaration) throws org.gjt.xpp.XmlPullParserException - Specified by:
addAttribute
in interfaceorg.gjt.xpp.XmlStartTag
- Throws:
org.gjt.xpp.XmlPullParserException
-
ensureAttributesCapacity
public void ensureAttributesCapacity(int minCapacity) throws org.gjt.xpp.XmlPullParserException - Specified by:
ensureAttributesCapacity
in interfaceorg.gjt.xpp.XmlStartTag
- Throws:
org.gjt.xpp.XmlPullParserException
-
removeAtttributes
public void removeAtttributes() throws org.gjt.xpp.XmlPullParserExceptionDeprecated.UseremoveAttributes()
instead.Remove all atributes.- Throws:
org.gjt.xpp.XmlPullParserException
-
removeAttributes
public void removeAttributes() throws org.gjt.xpp.XmlPullParserException- Specified by:
removeAttributes
in interfaceorg.gjt.xpp.XmlStartTag
- Throws:
org.gjt.xpp.XmlPullParserException
-
getLocalName
- Specified by:
getLocalName
in interfaceorg.gjt.xpp.XmlTag
-
getNamespaceUri
- Specified by:
getNamespaceUri
in interfaceorg.gjt.xpp.XmlTag
-
getPrefix
- Specified by:
getPrefix
in interfaceorg.gjt.xpp.XmlTag
-
getRawName
- Specified by:
getRawName
in interfaceorg.gjt.xpp.XmlTag
-
modifyTag
- Specified by:
modifyTag
in interfaceorg.gjt.xpp.XmlTag
-
resetTag
public void resetTag()- Specified by:
resetTag
in interfaceorg.gjt.xpp.XmlTag
-
removeAttributeByName
public boolean removeAttributeByName(String namespaceURI, String localName) throws org.gjt.xpp.XmlPullParserException - Specified by:
removeAttributeByName
in interfaceorg.gjt.xpp.XmlStartTag
- Throws:
org.gjt.xpp.XmlPullParserException
-
removeAttributeByRawName
- Specified by:
removeAttributeByRawName
in interfaceorg.gjt.xpp.XmlStartTag
- Throws:
org.gjt.xpp.XmlPullParserException
-
getDocumentFactory
-
setDocumentFactory
-
getElement
-
removeAttributes()
instead.