Package org.ametys.core.util.dom
Class AmetysAttribute
- java.lang.Object
-
- org.ametys.core.util.dom.AbstractAmetysNode
-
- org.ametys.core.util.dom.AmetysAttribute
-
public class AmetysAttribute extends AbstractAmetysNode implements Attr
Implementation ofAttr
for an AmetysObject's metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private String
_localName
private String
_namespace
private Element
_ownerElement
private String
_qName
private String
_value
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalName()
String
getName()
String
getNamespaceURI()
String
getNodeName()
short
getNodeType()
String
getNodeValue()
Element
getOwnerElement()
TypeInfo
getSchemaTypeInfo()
boolean
getSpecified()
String
getTextContent()
String
getValue()
boolean
isId()
void
setValue(String value)
-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Field Detail
-
_localName
private String _localName
-
_namespace
private String _namespace
-
_ownerElement
private Element _ownerElement
-
-
Constructor Detail
-
AmetysAttribute
public AmetysAttribute(String localName, String qName, String namespaceURI, String value, Element ownerElement)
Constructor.- Parameters:
localName
- local name fir this attribute.qName
- qualified name for this attribute.namespaceURI
- namespace URI for this attribute.value
- attribute's value.ownerElement
- the ownerElement
.
-
-
Method Detail
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceNode
-
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified
in interfaceAttr
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classAbstractAmetysNode
- Throws:
DOMException
-
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElement
in interfaceAttr
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceNode
- Overrides:
getLocalName
in classAbstractAmetysNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
- Overrides:
getNamespaceURI
in classAbstractAmetysNode
-
setValue
public void setValue(String value) throws DOMException
- Specified by:
setValue
in interfaceAttr
- Throws:
DOMException
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interfaceAttr
-
-