org.codehaus.stax2.validation
public interface AttributeContainer
Modifier and Type | Method and Description |
---|---|
int |
addDefaultAttribute(java.lang.String localName,
java.lang.String uri,
java.lang.String prefix,
java.lang.String value)
Method that can be used to add a new attribute value for an attribute
that was not yet contained by the container, as part of using attribute
default value mechanism.
|
int |
getAttributeCount() |
int getAttributeCount()
int addDefaultAttribute(java.lang.String localName, java.lang.String uri, java.lang.String prefix, java.lang.String value)
Note: caller has to ensure that the addition would not introduce a duplicate; attribute container implementation is not required to do any validation on attribute name (local name, prefix, uri) or value.