public class RelationImpl<Out extends Entity,In extends Entity> extends Object implements Relation<Out,In>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
additionalProperties |
protected static Set<String> |
allowedAdditionalKeys
Used to allow to have an additional property starting with '_' or '@'
|
protected Header |
header |
protected RelationProperty |
relationProperty |
protected Out |
source |
protected In |
target |
HEADER_PROPERTY, NAME, RELATION_PROPERTY, SOURCE_PROPERTY, TARGET_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
RelationImpl() |
protected |
RelationImpl(Out source,
In target,
RelationProperty relationProperty) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAdditionalProperties()
Return all properties.
|
Object |
getAdditionalProperty(String key)
Return the value of the given property.
|
Header |
getHeader() |
RelationProperty |
getRelationProperty() |
Out |
getSource() |
In |
getTarget() |
void |
setAdditionalProperties(Map<String,Object> additionalProperties)
Set all properties, replacing existing ones
|
void |
setAdditionalProperty(String key,
Object value)
Set the value of the given property.
|
protected void |
setRelationProperty(RelationProperty relationProperty) |
protected void |
setSource(Out source) |
protected void |
setTarget(In target) |
String |
toString() |
protected Header header
protected RelationProperty relationProperty
protected RelationImpl()
protected RelationImpl(Out source, In target, RelationProperty relationProperty)
public Header getHeader()
public Out getSource()
protected void setSource(Out source)
public In getTarget()
protected void setTarget(In target)
public RelationProperty getRelationProperty()
protected void setRelationProperty(RelationProperty relationProperty)
public Map<String,Object> getAdditionalProperties()
Relationpublic void setAdditionalProperties(Map<String,Object> additionalProperties)
Relationpublic Object getAdditionalProperty(String key)
Relationpublic void setAdditionalProperty(String key, Object value)
RelationCopyright © 2016. All Rights Reserved.