Package org.ametys.odf.xslt
Class AbstractODFElement<T extends ProgramItem>
java.lang.Object
org.ametys.core.util.dom.AbstractAmetysNode
org.ametys.core.util.dom.AbstractAmetysElement
org.ametys.core.util.dom.AbstractWrappingAmetysElement<T>
org.ametys.odf.xslt.AbstractODFElement<T>
- Type Parameters:
T- The type of wrapped object
- Direct Known Subclasses:
ContainerElement,CourseElement,CourseListElement,ProgramElement,SubProgramElement
public abstract class AbstractODFElement<T extends ProgramItem>
extends AbstractWrappingAmetysElement<T>
DOM layer on structure of an ODF content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe children depthprotected ODFHelperThe ODF helperFields inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
_objectFields inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_parentFields 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
ConstructorsConstructorDescriptionAbstractODFElement(T odfContent, int depth, AbstractODFElement<?> parent, ODFHelper odfHelper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AmetysObject_getNextSibling(List<? extends AmetysObject> elements) The element immediately following this oneprotected List<? extends AmetysObject>_getProgramPartChildren(ProgramPart programPart) Retrieves the children of the given program partprotected Map<String,AmetysAttribute> Returns a Map<name, value> corresponding to the attributes.booleanMethods inherited from class org.ametys.core.util.dom.AbstractWrappingAmetysElement
getWrappedObjectMethods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
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, setIdAttributeNSMethods 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, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
_depth
The children depth -
_odfHelper
The ODF helper
-
-
Constructor Details
-
AbstractODFElement
public AbstractODFElement(T odfContent, int depth, AbstractODFElement<?> parent, ODFHelper odfHelper) Constructor.- Parameters:
odfContent- the underlying.depth- Depth to SAX.parent- Parent of the elementodfHelper- ODFHelper to resolve children easily
-
-
Method Details
-
hasChildNodes
- Specified by:
hasChildNodesin interfaceNode- Overrides:
hasChildNodesin classAbstractAmetysNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode- Overrides:
getFirstChildin classAbstractAmetysNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode- Overrides:
getNextSiblingin classAbstractAmetysNode
-
_getProgramPartChildren
Retrieves the children of the given program part- Parameters:
programPart- the program part- Returns:
- the children of the program part
-
_getNextSibling
The element immediately following this one- Parameters:
elements- the elements that are at the same level as the current one- Returns:
- The element immediately following this one
-
_lookupAttributes
Description copied from class:AbstractAmetysElementReturns a Map<name, value> corresponding to the attributes.- Specified by:
_lookupAttributesin classAbstractAmetysElement- Returns:
- the name/value pairs
-