|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.Domain
public class Domain
Domain - hierarchical placement of Term Systems and Facts
| Method Summary | |
|---|---|
void |
addFacts(String name,
IFacts facts)
add facts database with name name to domain. |
void |
addFacts(Term name,
IFacts facts)
|
void |
addSystem(String name,
TermSystem system)
|
void |
addSystem(Term name,
TermSystem system)
|
Domain |
getDirectSubdomain(String name)
|
String |
getName()
return domain name. |
SortedSet<String> |
getNamesOfDirectSubdomains()
get names of direct subdomains. |
SortedSet<String> |
getNamesOfSystems()
get names of systems, registered in this domain, but not in subdomens. |
Domain |
getOrCreateDirectSubdomain(String name)
get subdomain with name name
If such subdomain does not exists - it's created. |
Domain |
getOrCreateSubdomain(String name)
get or create subdomain, which can be non-direct: i. |
Domain |
getOrCreateSubdomain(Term name)
|
Domain |
getParent()
return parent of this domain |
Domain |
getSubdomain(String name)
get subdomain, which can be non-direct: i. |
void |
removeFacts(String name)
|
void |
removeFacts(Term name)
remove facts with name name |
void |
removeSystem(String name)
|
void |
removeSystem(Term name)
|
IFacts |
resolveFacts(String name)
resolve facts. |
IFacts |
resolveFacts(Term t)
resolve facts. |
TermSystem |
resolveSystem(String name)
resolve system with name name
Note, that scope of system in this domain is determinatd by path.separators |
TermSystem |
resolveSystem(Term t)
resolve system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getName()
public Domain getParent()
public Domain getOrCreateSubdomain(Term name)
throws TermWareException
TermWareExceptionpublic Domain getOrCreateDirectSubdomain(String name)
name
If such subdomain does not exists - it's created.
public Domain getDirectSubdomain(String name)
throws InvalidDomainNameException
InvalidDomainNameException
public Domain getSubdomain(String name)
throws InvalidDomainNameException
name
can be complex name, where entries separated by /
(slash) symbol.
InvalidDomainNameExceptionpublic Domain getOrCreateSubdomain(String name)
name
can be complex name, where entries separated by /
(slash) symbol.
Note, that
public void addSystem(String name,
TermSystem system)
public void addSystem(Term name,
TermSystem system)
throws TermWareException
TermWareException
public TermSystem resolveSystem(Term t)
throws TermWareException
t - _name term.
TermWareException
public TermSystem resolveSystem(String name)
throws TermWareException
name
Note, that scope of system in this domain is determinatd by path.separators
TermWareException
public void removeSystem(Term name)
throws TermWareException
TermWareExceptionpublic void removeSystem(String name)
public IFacts resolveFacts(Term t)
throws TermWareException
t - _name term.
TermWareException
public IFacts resolveFacts(String name)
throws TermWareException
name - - name of facts database to find.
TermWareExceptionpublic SortedSet<String> getNamesOfDirectSubdomains()
public SortedSet<String> getNamesOfSystems()
public void removeFacts(Term name)
throws TermWareException
name
TermWareExceptionpublic void removeFacts(String name)
public void addFacts(String name,
IFacts facts)
name to domain.
name - - name of facts databasefacts - - instance of facts database.
public void addFacts(Term name,
IFacts facts)
throws TermWareException
TermWareException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||