Class MetadataElement
- java.lang.Object
-
- org.ametys.core.util.dom.AbstractAmetysNode
-
- org.ametys.core.util.dom.AbstractAmetysElement
-
- org.ametys.core.util.dom.AbstractWrappingAmetysElement<String>
-
- org.ametys.plugins.repository.dom.MetadataElement
-
public class MetadataElement extends AbstractWrappingAmetysElement<String>
DOM layer on top if aFilehierarchy.
-
-
Field Summary
Fields Modifier and Type Field Description private String_defaultValue(package private) CompositeMetadata_metadataHolder-
Fields inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
_object
-
Fields inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_parent
-
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
-
-
Constructor Summary
Constructors Constructor Description MetadataElement(String metadataName, CompositeMetadata metadataHolder)Constructor.MetadataElement(String metadataName, CompositeMetadata metadataHolder, String defaultValue)Constructor.MetadataElement(String metadataName, CompositeMetadata metadataHolder, CompositeMetadataElement parent)Constructor.MetadataElement(String metadataName, CompositeMetadata metadataHolder, CompositeMetadataElement parent, String defaultValue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,AmetysAttribute>_lookupAttributes()Returns a Map<name, value> corresponding to the attributes.NodegetFirstChild()NodegetNextSibling()StringgetTagName()booleanhasChildNodes()-
Methods inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
getWrappedObject
-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNodeName, getNodeType, getParentNode, getSchemaTypeInfo, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, 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, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Field Detail
-
_metadataHolder
CompositeMetadata _metadataHolder
-
_defaultValue
private String _defaultValue
-
-
Constructor Detail
-
MetadataElement
public MetadataElement(String metadataName, CompositeMetadata metadataHolder)
Constructor.- Parameters:
metadataName- the name of underlying metadatametadataHolder- the parentCompositeMetadata
-
MetadataElement
public MetadataElement(String metadataName, CompositeMetadata metadataHolder, String defaultValue)
Constructor.- Parameters:
metadataName- the name of underlying metadatametadataHolder- the parentCompositeMetadatadefaultValue- the default value
-
MetadataElement
public MetadataElement(String metadataName, CompositeMetadata metadataHolder, CompositeMetadataElement parent)
Constructor.- Parameters:
metadataName- the name of underlying metadatametadataHolder- the parentCompositeMetadataparent- the parentElement.
-
MetadataElement
public MetadataElement(String metadataName, CompositeMetadata metadataHolder, CompositeMetadataElement parent, String defaultValue)
Constructor.- Parameters:
metadataName- the name of underlying metadatametadataHolder- the parentCompositeMetadataparent- the parentElement.defaultValue- the default value
-
-
Method Detail
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement- Overrides:
getTagNamein classAbstractAmetysElement
-
_lookupAttributes
protected Map<String,AmetysAttribute> _lookupAttributes()
Description copied from class:AbstractAmetysElementReturns a Map<name, value> corresponding to the attributes.- Specified by:
_lookupAttributesin classAbstractAmetysElement- Returns:
- the name/value pairs
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode- Overrides:
hasChildNodesin classAbstractAmetysNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode- Overrides:
getFirstChildin classAbstractAmetysNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode- Overrides:
getNextSiblingin classAbstractAmetysNode
-
-