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 TypeMethodDescriptionvoidaddAttribute(String namespaceURI, String localName, String rawName, String value) parameters modeled after SAX2 attribute approachvoidaddAttribute(String namespaceURI, String localName, String rawName, String value, boolean isNamespaceDeclaration) voidensureAttributesCapacity(int minCapacity) intgetAttributeLocalName(int index) getAttributeNamespaceUri(int index) getAttributePrefix(int index) getAttributeRawName(int index) getAttributeValue(int index) getAttributeValueFromName(String namespaceURI, String localName) getAttributeValueFromRawName(String rawName) booleanisAttributeNamespaceDeclaration(int index) voidbooleanremoveAttributeByName(String namespaceURI, String localName) booleanremoveAttributeByRawName(String rawName) voidvoidDeprecated.voidvoidresetTag()voidsetDocumentFactory(DocumentFactory documentFactory)
-
Constructor Details
-
ProxyXmlStartTag
public ProxyXmlStartTag() -
ProxyXmlStartTag
-
-
Method Details
-
resetStartTag
public void resetStartTag()- Specified by:
resetStartTagin interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCountin interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeNamespaceUri
- Specified by:
getAttributeNamespaceUriin interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeLocalName
- Specified by:
getAttributeLocalNamein interfaceorg.gjt.xpp.XmlStartTag
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeRawName
- Specified by:
getAttributeRawNamein interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValueFromRawName
- Specified by:
getAttributeValueFromRawNamein interfaceorg.gjt.xpp.XmlStartTag
-
getAttributeValueFromName
- Specified by:
getAttributeValueFromNamein interfaceorg.gjt.xpp.XmlStartTag
-
isAttributeNamespaceDeclaration
public boolean isAttributeNamespaceDeclaration(int index) - Specified by:
isAttributeNamespaceDeclarationin 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:
addAttributein 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:
addAttributein interfaceorg.gjt.xpp.XmlStartTag- Throws:
org.gjt.xpp.XmlPullParserException
-
ensureAttributesCapacity
public void ensureAttributesCapacity(int minCapacity) throws org.gjt.xpp.XmlPullParserException - Specified by:
ensureAttributesCapacityin 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:
removeAttributesin interfaceorg.gjt.xpp.XmlStartTag- Throws:
org.gjt.xpp.XmlPullParserException
-
getLocalName
- Specified by:
getLocalNamein interfaceorg.gjt.xpp.XmlTag
-
getNamespaceUri
- Specified by:
getNamespaceUriin interfaceorg.gjt.xpp.XmlTag
-
getPrefix
- Specified by:
getPrefixin interfaceorg.gjt.xpp.XmlTag
-
getRawName
- Specified by:
getRawNamein interfaceorg.gjt.xpp.XmlTag
-
modifyTag
- Specified by:
modifyTagin interfaceorg.gjt.xpp.XmlTag
-
resetTag
public void resetTag()- Specified by:
resetTagin interfaceorg.gjt.xpp.XmlTag
-
removeAttributeByName
public boolean removeAttributeByName(String namespaceURI, String localName) throws org.gjt.xpp.XmlPullParserException - Specified by:
removeAttributeByNamein interfaceorg.gjt.xpp.XmlStartTag- Throws:
org.gjt.xpp.XmlPullParserException
-
removeAttributeByRawName
- Specified by:
removeAttributeByRawNamein interfaceorg.gjt.xpp.XmlStartTag- Throws:
org.gjt.xpp.XmlPullParserException
-
getDocumentFactory
-
setDocumentFactory
-
getElement
-
removeAttributes()instead.