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.
- Version:
- $Revision: 1.8 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ElementThe element being constructedprivate DocumentFactoryThe factory used to create new elements -
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 s, String s1) booleanvoidremove all atributevoidvoidresetTag()voidsetDocumentFactory(DocumentFactory documentFactory)
-
Field Details
-
element
The element being constructed -
factory
The factory used to create new elements
-
-
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
-
removeAttributeByName
- 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
-
removeAttributes
public void removeAttributes() throws org.gjt.xpp.XmlPullParserExceptionremove all atribute- Specified by:
removeAttributesin interfaceorg.gjt.xpp.XmlStartTag- Throws:
org.gjt.xpp.XmlPullParserException- DOCUMENT ME!
-
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
-
getDocumentFactory
-
setDocumentFactory
-
getElement
-