Package org.ametys.odf.xslt
Class ProgramElement
DOM layer on structure of
Program
.-
Field Summary
Fields inherited from class org.ametys.odf.xslt.AbstractODFElement
_depth, _odfHelper
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
ConstructorDescriptionProgramElement
(Program program, int depth, ODFHelper odfHelper) Constructor.ProgramElement
(Program program, int depth, AbstractODFElement<?> parent, ODFHelper odfHelper) Constructor.ProgramElement
(Program program, ODFHelper odfHelper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,
AmetysAttribute> Returns a Map<name, value> corresponding to the attributes.Methods inherited from class org.ametys.odf.xslt.AbstractODFElement
_getNextSibling, _getProgramPartChildren, getFirstChild, getNextSibling, hasChildNodes
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
-
Constructor Details
-
ProgramElement
Constructor.- Parameters:
program
- the underlyingProgram
.odfHelper
- ODFHelper to resolve children easily
-
ProgramElement
Constructor.- Parameters:
program
- the underlyingProgram
.depth
- Set to positive number to get child subprograms structure until given depth. Set negative number to get all child subprograms structureodfHelper
- ODFHelper to resolve children easily
-
ProgramElement
public ProgramElement(Program program, int depth, AbstractODFElement<?> parent, ODFHelper odfHelper) Constructor.- Parameters:
program
- the underlyingProgram
.depth
- Set to positive value to get children subprogram structureparent
- Parent of the element. Always be nullodfHelper
- ODFHelper to resolve children easily
-
-
Method Details
-
getTagName
- Specified by:
getTagName
in interfaceElement
- Overrides:
getTagName
in classAbstractAmetysElement
-
_lookupAttributes
Description copied from class:AbstractAmetysElement
Returns a Map<name, value> corresponding to the attributes.- Overrides:
_lookupAttributes
in classAbstractODFElement<Program>
- Returns:
- the name/value pairs
-