public class AttributeImpl extends DummyEvent implements Attribute
fLocationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
AttributeImpl() |
AttributeImpl(QName qname,
String value,
String nonNormalizedvalue,
String type,
boolean isSpecified) |
AttributeImpl(String name,
String value) |
AttributeImpl(String prefix,
String name,
String value) |
AttributeImpl(String prefix,
String uri,
String localPart,
String value,
String type) |
AttributeImpl(String prefix,
String uri,
String localPart,
String value,
String nonNormalizedvalue,
String type,
boolean isSpecified) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDTDType()
Gets the type of this attribute, default is "CDATA
|
QName |
getName() |
String |
getNonNormalizedValue() |
String |
getValue() |
protected void |
init() |
boolean |
isSpecified() |
void |
setAttributeType(String attributeType) |
void |
setName(QName name) |
void |
setNonNormalizedValue(String nonNormalizedvalue) |
void |
setSpecified(boolean isSpecified)
is this attribute is specified in the instance document
|
void |
setValue(String value) |
String |
toString() |
protected void |
writeAsEncodedUnicodeEx(Writer writer)
Helper method in order to expose IOException.
|
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic AttributeImpl()
public AttributeImpl(String prefix, String uri, String localPart, String value, String type)
public AttributeImpl(String prefix, String uri, String localPart, String value, String nonNormalizedvalue, String type, boolean isSpecified)
public void setName(QName name)
public void setValue(String value)
public void setNonNormalizedValue(String nonNormalizedvalue)
public String getNonNormalizedValue()
public void setAttributeType(String attributeType)
public String getDTDType()
getDTDType in interface Attributepublic void setSpecified(boolean isSpecified)
public boolean isSpecified()
isSpecified in interface Attributeprotected void writeAsEncodedUnicodeEx(Writer writer) throws IOException
DummyEventwriteAsEncodedUnicodeEx in class DummyEventwriter - The writer that will output the dataIOException - if there is an IO errorprotected void init()
Copyright © 2018–2021 mhoffrogge. All rights reserved.