|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Domain
A domain provides a named space in which to define concepts and their relations to each other, and also to project concepts in different domains to each other through a mapping across domains.
Method Summary | |
---|---|
Concept |
createConcept(java.lang.String name,
java.lang.String accession,
java.lang.String definition)
Create a new concept in this domain with the specified name, accession, and definition (optional operation). |
Relation |
createRelation(java.lang.String name,
Concept source,
Concept target)
Create a new relation in this domain between concepts source and target with the
specified name (optional operation). |
Authority |
getAuthority()
Return the authority for this domain. |
java.util.Set<Concept> |
getConcepts()
Return the set of all concepts in this domain. |
java.util.Set<Mapping> |
getMappings()
Return the set of all mappings for this domain. |
java.lang.String |
getName()
Return the name of this domain. |
java.util.Set<Relation> |
getRelations()
Return the set of all relations in this domain. |
java.util.Set<Mapping> |
inMappings()
Return the set of in mappings for this domain, that is those mappings that have this domain as the target. |
java.util.Set<Mapping> |
outMappings()
Return the set of out mappings for this domain, that is those mappings that have this domain as the source. |
Method Detail |
---|
java.lang.String getName()
java.util.Set<Concept> getConcepts()
java.util.Set<Relation> getRelations()
java.util.Set<Mapping> inMappings()
java.util.Set<Mapping> outMappings()
java.util.Set<Mapping> getMappings()
Authority getAuthority()
Concept createConcept(java.lang.String name, java.lang.String accession, java.lang.String definition)
name
- concept nameaccession
- concept accessiondefinition
- concept definition
java.lang.UnsupportedOperationException
- if the
createConcept
method is not supported
by this DomainRelation createRelation(java.lang.String name, Concept source, Concept target)
source
and target
with the
specified name (optional operation). Only one relation
may exist between the same source and target with the same
name within this domain. The source and target concepts
must not be null.
name
- relation namesource
- relation source concepttarget
- relation target concept
java.lang.UnsupportedOperationException
- if the
createRelation
method is not supported
by this Domain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |