public class DataEntity extends Entity<DataEntity.Blueprint<?>,DataEntity.Update>
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<DataRole extends DataEntity.Role> |
static interface |
DataEntity.Role
An interface a Data entity role must implement.
|
static class |
DataEntity.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>ID_PROPERTY, properties| Constructor and Description |
|---|
DataEntity(CanonicalPath owner,
DataEntity.Role role,
StructuredData value) |
DataEntity(CanonicalPath owner,
DataEntity.Role 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.
|
DataEntity.Role |
getRole() |
StructuredData |
getValue() |
AbstractElement.Updater<DataEntity.Update,? extends AbstractElement<?,DataEntity.Update>> |
update() |
appendToString, toStringequals, getId, getPath, getProperties, hashCode, valueOrDefaultpublic DataEntity(CanonicalPath owner, DataEntity.Role role, StructuredData value)
public DataEntity(CanonicalPath owner, DataEntity.Role role, StructuredData value, Map<String,Object> properties)
public DataEntity(CanonicalPath path, StructuredData value, Map<String,Object> properties)
public StructuredData getValue()
public DataEntity.Role getRole()
public <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
AbstractElementaccept in class AbstractElement<DataEntity.Blueprint<?>,DataEntity.Update>R - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorpublic AbstractElement.Updater<DataEntity.Update,? extends AbstractElement<?,DataEntity.Update>> update()
update in class AbstractElement<DataEntity.Blueprint<?>,DataEntity.Update>Copyright © 2015 Red Hat, Inc.. All rights reserved.