|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dishevelled.vocabulary.simple.SimpleMapping
public class SimpleMapping
Simple implementation of the Mapping interface.
Field Summary | |
---|---|
private Authority |
authority
Authority. |
private java.util.Set<Projection> |
projections
Set of projections. |
private Domain |
source
Source domain. |
private Domain |
target
Target domain. |
Constructor Summary | |
---|---|
SimpleMapping(Authority authority,
SimpleDomain source,
SimpleDomain target)
Create a new mapping with the specified authority, source domain, and target domain. |
Method Summary | |
---|---|
(package private) void |
addProjection(SimpleProjection projection)
Add the specified projection. |
Projection |
createProjection(java.lang.String name,
Concept source,
Concept target,
java.util.Set<Evidence> evidence)
Create a new projection in this mapping between concepts source and target
with the specified name (optional operation). |
Authority |
getAuthority()
Return the authority for this mapping. |
java.util.Set<Projection> |
getProjections()
Return the set of all projections in this mapping. |
Domain |
getSource()
Return the source domain of this mapping. |
Domain |
getTarget()
Return the target domain of this mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Domain source
private final Domain target
private final java.util.Set<Projection> projections
private final Authority authority
Constructor Detail |
---|
SimpleMapping(Authority authority, SimpleDomain source, SimpleDomain target)
authority
,
source
, and target
must not be null.
authority
- authoritysource
- source domaintarget
- target domainMethod Detail |
---|
public Domain getSource()
Mapping
getSource
in interface Mapping
Mapping
public Domain getTarget()
Mapping
getTarget
in interface Mapping
Mapping
public java.util.Set<Projection> getProjections()
Mapping
getProjections
in interface Mapping
Mapping
public Authority getAuthority()
Mapping
getAuthority
in interface Mapping
Mapping
void addProjection(SimpleProjection projection)
projection
- projection to addpublic Projection createProjection(java.lang.String name, Concept source, Concept target, java.util.Set<Evidence> evidence)
Mapping
source
and target
with the specified name (optional operation). The
source concept must be within the source domain of
this mapping, and the target domain must be within
the target domain of this mapping. Only one projection
may exist between the same source and target with
the same name within this mapping. The source and
target concepts must not be null.
createProjection
in interface Mapping
name
- projection namesource
- projection source concepttarget
- projection target conceptevidence
- set of evidence
Mapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |