public class AbstractProjection extends Object implements Projection
| Constructor and Description |
|---|
AbstractProjection(String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Projection child) |
void |
addProperty(ProjectionProperty property) |
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() |
public List<Projection> getChildren()
ProjectionIf there is no children empty (zero length) array is returned.
getChildren in interface Projectionpublic String getType()
getType in interface Projectionpublic String getName()
ProjectionDifferent 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.
getName in interface Projectionpublic Collection<ProjectionProperty> getProperties()
ProjectionAn 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.
getProperties in interface Projectionpublic ProjectionProperty getProperty(String propertyName)
ProjectiongetProperty in interface ProjectionpropertyName - name of property to be foundpublic Object getPropertyValue(String propertyName)
ProjectionNote that null can mean that such property exists but its value is null.
getPropertyValue in interface ProjectionpropertyName - name of propertypublic void addChild(Projection child)
public void addProperty(ProjectionProperty property)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.