public interface Projection
The Projection can be considered as one of many Views of any object.
A Projection shows some properties of actual artifact and can hides others, that are not relevant to domain of the Projection.
Also Projection can have own hierarchy of sub elements which can be completely different from hierarchy of physical artifact.
Child of the Projection is Projection that allows multiple views on each element depending on its position in hierarchy. But that can lead to extreme memory allocation also. This feature should be used with care.
| Modifier and Type | Method and Description |
|---|---|
List<Projection> |
getChildren()
Direct children of the projection.
|
String |
getName()
Logical name of data.
|
Collection<ProjectionProperty> |
getProperties()
Projection specific properties of the artifact.
|
ProjectionProperty |
getProperty(String propertyName)
Get property of the artifact by name.
|
Object |
getPropertyValue(String propertyName)
Get raw value of property.
|
String |
getType() |
String getName()
Different projections can have different names and the name of a projection can differ from name of an artifact.
The logical name of a projection should reflect its meaning in specific domain.
String getType()
Collection<ProjectionProperty> getProperties()
An artifact can have a lot of properties and not all of them can exist in the projection. It is possible that a projection will have no properties even if the artifact has some.
If there is no properties empty (zero length) array is returned.
ProjectionProperty getProperty(String propertyName)
propertyName - name of property to be foundObject getPropertyValue(String propertyName)
Note that null can mean that such property exists but its value is null.
propertyName - name of propertyList<Projection> getChildren()
If there is no children empty (zero length) array is returned.
Copyright © 2004–2019 OpenL Tablets. All rights reserved.