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 ofAttrfor an AmetysObject's metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private String_localNameprivate String_namespaceprivate Element_ownerElementprivate String_qNameprivate 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 StringgetLocalName()StringgetName()StringgetNamespaceURI()StringgetNodeName()shortgetNodeType()StringgetNodeValue()ElementgetOwnerElement()TypeInfogetSchemaTypeInfo()booleangetSpecified()StringgetTextContent()StringgetValue()booleanisId()voidsetValue(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:
getNodeTypein interfaceNode
-
getSpecified
public boolean getSpecified()
- Specified by:
getSpecifiedin interfaceAttr
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValuein interfaceNode- Overrides:
getNodeValuein classAbstractAmetysNode- Throws:
DOMException
-
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElementin interfaceAttr
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode- Overrides:
getLocalNamein classAbstractAmetysNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode- Overrides:
getNamespaceURIin classAbstractAmetysNode
-
setValue
public void setValue(String value) throws DOMException
- Specified by:
setValuein interfaceAttr- Throws:
DOMException
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfoin interfaceAttr
-
-