public class MappingTarget extends Object
| Constructor and Description |
|---|
MappingTarget(EntityType target)
Creates a new empty
MappingTarget |
MappingTarget(String identifier,
EntityType target,
Collection<EntityMapping> entityMappings)
Creates a new instance of MappingTarget.
|
| Modifier and Type | Method and Description |
|---|---|
EntityMapping |
addSource(EntityType source)
Adds a new
EntityMapping to this target for a certain source. |
boolean |
equals(Object obj) |
Collection<EntityMapping> |
getEntityMappings() |
String |
getIdentifier() |
EntityMapping |
getMappingForSource(String source) |
Set<String> |
getMissingTargetAttributeNames() |
String |
getName() |
EntityType |
getTarget() |
int |
hashCode() |
boolean |
hasMappingFor(String name) |
boolean |
hasSelfReferences() |
void |
removeIdentifiers() |
void |
removeSource(String source) |
void |
setIdentifier(String identifier) |
String |
toString() |
public MappingTarget(EntityType target)
MappingTargetpublic MappingTarget(String identifier, EntityType target, Collection<EntityMapping> entityMappings)
public String getIdentifier()
public void removeIdentifiers()
public EntityType getTarget()
public EntityMapping getMappingForSource(String source)
public EntityMapping addSource(EntityType source)
EntityMapping to this target for a certain source.source - EntityType for the source entity that is mapped to this targetEntityMappingpublic void setIdentifier(String identifier)
public String getName()
public Collection<EntityMapping> getEntityMappings()
public void removeSource(String source)
public boolean hasMappingFor(String name)
public boolean hasSelfReferences()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.