Package de.esoco.data.element
Klasse EntityDataElement
java.lang.Object
de.esoco.lib.property.AbstractStringProperties
de.esoco.lib.property.StringProperties
de.esoco.data.element.DataElement<List<DataElement<?>>>
de.esoco.data.element.ListDataElement<DataElement<?>>
de.esoco.data.element.DataElementList
de.esoco.data.element.EntityDataElement
- Alle implementierten Schnittstellen:
de.esoco.lib.model.DataModel<DataElement<?>>
,de.esoco.lib.property.HasProperties
,de.esoco.lib.property.MutableProperties
,Serializable
,Iterable<DataElement<?>>
A data element implementation that holds the attributes of an entity.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.esoco.data.element.DataElement
DataElement.CopyMode, DataElement.Flag
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
The name of the attribute data element containing the childVon Klasse geerbte Felder de.esoco.data.element.DataElement
ALLOWED_VALUES_CHANGED, ANONYMOUS_ELEMENT_PREFIX, DISPLAY_FLAGS, HIDDEN_URL, INPUT_FLAGS, INTERACTION_URL, ITEM_ALL_RESOURCE, ITEM_NEW_RESOURCE, ITEM_RESOURCE_PREFIX, PATH_SEPARATOR_CHAR, SERVER_PROPERTIES
-
Konstruktorübersicht
KonstruktorBeschreibungEntityDataElement
(String name, String resourceId, String childPrefix, List<DataElement<?>> attributes, Set<DataElement.Flag> flags) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy
(DataElement.CopyMode mode, de.esoco.lib.property.PropertyName<?>... copyProperties) Returns a copy of this data element that contains all or a subset of it's current state.protected String
Overridden to return the simple name of the entity class.protected EntityDataElement
Returns a new instance of the respective data element sub-type on which it is invoked.Von Klasse geerbte Methoden de.esoco.data.element.DataElementList
add, add, add, add, addElement, copyValue, findChild, findDataElement, getBoolean, getChildList, getDataElements, getDate, getElement, getElementAt, getElementHierarchy, getInt, getList, getString, init, markAsChanged, removeElement, replaceElement, set, setElement, toDebugString, toHierarchyString, updateValue
Von Klasse geerbte Methoden de.esoco.data.element.ListDataElement
addAll, addAllowedValues, addElement, clear, containsElement, getAllowedValues, getElement, getElementCount, getElementIndex, getElements, getElementValidator, getValue, getValueHashCode, hasEqualValueAs, iterator, toString
Von Klasse geerbte Methoden de.esoco.data.element.DataElement
checkImmutable, checkValidValue, copyAttributes, createItemName, createItemResource, createResourceId, equals, getName, getParent, getPath, getResourceId, getRoot, getSimpleName, getValidator, hashCode, isImmutable, isModified, isOptional, isSelected, isValidValue, readFrom, removeProperty, setModified, setProperty, setSelected, setStringValue, setValidator, setValue, valuesEqual, writeTo
Von Klasse geerbte Methoden de.esoco.lib.property.StringProperties
clearFlag, clearProperties, setFlag, setProperties, setProperty, setProperty
Von Klasse geerbte Methoden de.esoco.lib.property.AbstractStringProperties
convertCollection, convertMap, convertValue, ensurePropertyMapExists, findValue, getIntProperty, getProperty, getPropertyCount, getPropertyMap, getPropertyNames, hasEqualProperties, hasFlag, hasProperty, parseCollection, parseMap, parseValue, setPropertyMap
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden de.esoco.lib.property.HasProperties
getIntProperty, getProperty, getPropertyCount, getPropertyNames, hasFlag, hasProperty
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Felddetails
-
CHILDREN_ELEMENT
The name of the attribute data element containing the child- Siehe auch:
-
-
Konstruktordetails
-
EntityDataElement
public EntityDataElement(String name, String resourceId, String childPrefix, List<DataElement<?>> attributes, Set<DataElement.Flag> flags) Creates a new instance.- Parameter:
name
- The name of this data elementresourceId
- The resource to label the data element withchildPrefix
- The prefix string for child elementsattributes
- The child elements that represent the entity attributes (including children)flags
- The optional flags for this data element
-
-
Methodendetails
-
copy
public EntityDataElement copy(DataElement.CopyMode mode, de.esoco.lib.property.PropertyName<?>... copyProperties) Returns a copy of this data element that contains all or a subset of it's current state. Always copied are the name andflags
. Never copied is the parent reference because upon copying typically a reference to a copied parent needs to be set. The further data the copy contains depends on the copy mode:DataElement.CopyMode.FULL
: The copy contains all data (except the parent reference).DataElement.CopyMode.FLAT
: likeDataElement.CopyMode.FULL
but without sub-ordinate data elements.DataElement.CopyMode.PROPERTIES
: The copy contains only the properties but not the element value and attributes.DataElement.CopyMode.PLACEHOLDER
: The copy contains only the element name to serve as a placeholder.
The copy instance is created by invoking
DataElement.newInstance()
which has the recommendation to overwrite the return type to the concrete subtype to prevent the need for casting by the invoking code. For the same reason it is recommended that subclasses also override this method with the concrete return type and cast the result ofsuper.copy()
to that type.- Setzt außer Kraft:
copy
in KlasseDataElementList
- Parameter:
mode
- The copy modecopyProperties
- An optional list of properties to copy. If not provided all properties will be copied (unless the mode isDataElement.CopyMode.PLACEHOLDER
)- Gibt zurück:
- The copied instance
-
getChildResourceIdPrefix
Overridden to return the simple name of the entity class.- Setzt außer Kraft:
getChildResourceIdPrefix
in KlasseDataElementList
- Gibt zurück:
- The child resource id prefix
- Siehe auch:
-
newInstance
Returns a new instance of the respective data element sub-type on which it is invoked. This is needed for GWT which doesn't support reflection. Used byDataElement.copy(CopyMode, PropertyName...)
for cloning an instance. Implementations should overwrite the return type with their concrete type to prevent the need for casting by the invoking code.- Setzt außer Kraft:
newInstance
in KlasseDataElementList
- Gibt zurück:
- The new instance
-