Class HtmlAttributes
java.lang.Object
nu.validator.htmlparser.impl.HtmlAttributes
- All Implemented Interfaces:
Attributes
Be careful with this class. QName is the name in from HTML tokenization.
Otherwise, please refer to the interface doc.
- Version:
- $Id: AttributesImpl.java 206 2008-03-20 14:09:29Z hsivonen $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AttributeName[]static final HtmlAttributesprivate static final String[]private Stringprivate intprivate intprivate AttributeName[]private String[]private intprivate AttributeName[]private String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddAttribute(AttributeName name, String value, XmlViolationPolicy xmlnsPolicy) voidvoid(package private) voidclear(int m) (package private) voidThis is only used forAttributeNameownership transfer in the isindex case to avoid freeing custom names twice in C++.cloneAttributes(Interner interner) (package private) booleancontains(AttributeName name) (package private) voidbooleanequalsAnother(HtmlAttributes other) getAttributeName(int index) getId()intintintgetIndex(AttributeName name) Only use with a static argumentintgetLocalName(int index) getPrefix(int index) getQName(int index) getType(int index) getURI(int index) getValue(int index) getValue(AttributeName name) Only use with static argument.getXmlnsAttributeName(int index) intgetXmlnsIndex(AttributeName name) intgetXmlnsLocalName(int index) getXmlnsURI(int index) getXmlnsValue(int index) getXmlnsValue(AttributeName name) voidmerge(HtmlAttributes attributes) (package private) voidprocessNonNcNames(TreeBuilder<?> treeBuilder, XmlViolationPolicy namePolicy) (package private) voidreleaseValue(int i) This is used in C++ to release specialisindexattribute values whose ownership is not transferred.
-
Field Details
-
EMPTY_ATTRIBUTENAMES
-
EMPTY_STRINGS
-
EMPTY_ATTRIBUTES
-
mode
private int mode -
length
private int length -
names
-
values
-
idValue
-
xmlnsLength
private int xmlnsLength -
xmlnsNames
-
xmlnsValues
-
-
Constructor Details
-
HtmlAttributes
public HtmlAttributes(int mode)
-
-
Method Details
-
destructor
void destructor() -
getIndex
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getLength
public int getLength()- Specified by:
getLengthin interfaceAttributes
-
getLocalName
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
- Specified by:
getQNamein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getAttributeName
-
getURI
- Specified by:
getURIin interfaceAttributes
-
getPrefix
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
-
getId
-
getXmlnsLength
public int getXmlnsLength() -
getXmlnsLocalName
-
getXmlnsURI
-
getXmlnsValue
-
getXmlnsIndex
-
getXmlnsValue
-
getXmlnsAttributeName
-
addAttribute
void addAttribute(AttributeName name, String value, XmlViolationPolicy xmlnsPolicy) throws SAXException - Throws:
SAXException
-
clear
void clear(int m) -
releaseValue
void releaseValue(int i) This is used in C++ to release specialisindexattribute values whose ownership is not transferred. -
clearWithoutReleasingContents
void clearWithoutReleasingContents()This is only used forAttributeNameownership transfer in the isindex case to avoid freeing custom names twice in C++. -
contains
-
adjustForMath
public void adjustForMath() -
adjustForSvg
public void adjustForSvg() -
cloneAttributes
- Throws:
SAXException
-
equalsAnother
-
processNonNcNames
void processNonNcNames(TreeBuilder<?> treeBuilder, XmlViolationPolicy namePolicy) throws SAXException - Throws:
SAXException
-
merge
- Throws:
SAXException
-