Class Document
java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.composer.model.CompositeElement
com.aquima.interactions.composer.model.Document
- All Implemented Interfaces:
ICompositeElement
,IDocument
,IElement
,Serializable
This class defines the root element of a runtime document.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDocument
(DocumentDefinition definition) Constructs the document model from a document definition.protected
Constructs the document model with the specified name.Constructs the document model with the specified name and description.Constructs the document model with the specified name and contents. -
Method Summary
Methods inherited from class com.aquima.interactions.composer.model.CompositeElement
accept, addElement, addElements, equalsContent, getContentStyle, getElement, getElement, getElementCount, getElements, insertElement, removeAllElements, removeElement, replaceElementWithElements, setContentStyle, setElements, toString
Methods inherited from class com.aquima.interactions.composer.model.Element
addPresentationStyle, evaluateTsl, getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, getVisibilityCondition, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setFocus, setParent, setPresentationStyle, setPresentationStyles, setPresentationStyles, setProperty, setReadonly, setReadonlyInheritFromParent, setRuntimeKey, setVisibilityCondition, setVisible
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aquima.interactions.composer.ICompositeElement
accept, equalsContent, getContentStyle, getElement, getElement, getElementCount, getElements
Methods inherited from interface com.aquima.interactions.composer.IElement
getName, getParent, getPresentationStyles, getProperty, getPropertyKeys, getRuntimeKey, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setProperty
-
Constructor Details
-
Document
Constructs the document model with the specified name.- Parameters:
name
- The name of the document.
-
Document
Constructs the document model with the specified name and description.- Parameters:
name
- The name of the document.description
- The description of the document.
-
Document
Constructs the document model from a document definition.- Parameters:
definition
- The definition that should be used to create the model from.
-
Document
Constructs the document model with the specified name and contents.- Parameters:
name
- The name of the document.description
- The description of the document.elements
- The contents of the document.
-
Document
-
-
Method Details
-
getDescription
This method returns the description of the document.- Specified by:
getDescription
in interfaceIDocument
- Returns:
- the description of the document, may be null.
-
equals
- Overrides:
equals
in classCompositeElement
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCompositeElement
-
duplicate
Description copied from interface:IElement
This method should clone the element and return the cloned element. The duplicate method should usually make a deep copy of the element, with the exception of members that are not mutable (and thus can safely be shared between multiple copies). The properties of an element are considered to be non-mutable, and will thus by default be copied.
-