public final class DataEntity extends Entity
A data entity has an owner - the data entities are not shared amongst entities. Further, it has a role - a purpose for which the owner holds on to the data.
| Modifier and Type | Class and Description |
|---|---|
static class |
DataEntity.Blueprint<DR extends DataRole> |
| Modifier and Type | Field and Description |
|---|---|
static SegmentType |
SEGMENT_TYPE |
properties| Constructor and Description |
|---|
DataEntity(CanonicalPath owner,
DataRole role,
StructuredData value) |
DataEntity(CanonicalPath owner,
DataRole role,
StructuredData value,
Map<String,Object> properties) |
DataEntity(CanonicalPath path,
StructuredData value,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
String |
getName() |
DataRole |
getRole() |
StructuredData |
getValue() |
appendToString, entityTypeFromSegmentType, toString, typeFromSegmentTypeequals, getId, getPath, getProperties, hashCode, segmentTypeFromType, toElementClasspublic static final SegmentType SEGMENT_TYPE
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value)
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value, Map<String,Object> properties)
public DataEntity(CanonicalPath path, StructuredData value, Map<String,Object> properties)
public String getName()
public StructuredData getValue()
public DataRole getRole()
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElementR - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.