Package org.ametys.core.util.dom
Class AbstractWrappingAmetysElement<T>
- java.lang.Object
-
- org.ametys.core.util.dom.AbstractAmetysNode
-
- org.ametys.core.util.dom.AbstractAmetysElement
-
- org.ametys.core.util.dom.AbstractWrappingAmetysElement<T>
-
- Type Parameters:
T
- the actual type of the wrapped object.
- Direct Known Subclasses:
AbstractODFElement
,AmetysObjectElement
,CompositeMetadataElement
,FileElement
,LocaleStringElement
,MetadataElement
,MultilingualStringElement
,OdfReferenceTableEntryElement
,SourceElement
,TagElement
public abstract class AbstractWrappingAmetysElement<T> extends AbstractAmetysElement
DOM layer on top if an object hierarchy.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
_object
The wrapper 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 AbstractWrappingAmetysElement(String tagName, T object)
Constructor.AbstractWrappingAmetysElement(String tagName, T object, Element parent)
Constructor.AbstractWrappingAmetysElement(T object)
Constructor.AbstractWrappingAmetysElement(T object, Element parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getWrappedObject()
Returns the wrapped object.-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_lookupAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNodeName, getNodeType, getParentNode, getSchemaTypeInfo, getTagName, 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, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, 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, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
AbstractWrappingAmetysElement
public AbstractWrappingAmetysElement(T object)
Constructor.- Parameters:
object
- the underlying object.
-
AbstractWrappingAmetysElement
public AbstractWrappingAmetysElement(String tagName, T object)
Constructor.- Parameters:
tagName
- the tag name.object
- the underlying object.
-
AbstractWrappingAmetysElement
public AbstractWrappingAmetysElement(T object, Element parent)
Constructor.- Parameters:
object
- the underlying object.parent
- the parentElement
.
-
AbstractWrappingAmetysElement
public AbstractWrappingAmetysElement(String tagName, T object, Element parent)
Constructor.- Parameters:
tagName
- the tag name.object
- the underlying object.parent
- the parentElement
.
-
-
Method Detail
-
getWrappedObject
public T getWrappedObject()
Returns the wrapped object.- Returns:
- the wrapped object.
-
-