uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm
Class RegistryDomainModelSupport

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModelSupport
All Implemented Interfaces:
RegistryDomainModel
Direct Known Subclasses:
RegistryDomainModelJenaImpl

public abstract class RegistryDomainModelSupport
extends Object
implements RegistryDomainModel

This is a support class used to implement a registry domain model.

Author:
Uwe Radetzki

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
RegistryDomainModelSupport()
           
 
Method Summary
protected  void addRelationship(String fromConcept, String relationship, String toConcept)
           
abstract  boolean containsConcept(String concept)
          Checks if a concept exists in the domain model.
 boolean containsRelationship(String fromConcept, String relationship, String toConcept)
           
abstract  Set<String> getConcepts()
          Get all concepts of the domain model.
 String getInverseRelationship(String relationship)
          Get the inverse relationship of a relationship (owl:inverseOf).
 Set<String> getRelationships(String fromConcept, String toConcept)
           
 boolean hasInverseRelationship(String relationship)
           
 boolean relationshipExists(String relationship)
           
protected  void setInverseRelationhip(String relationship, String inverseOf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModel
getHierarchyRootConcepts, getIncomingRelationships, getOutgoingRelationships, getRelationships, getSubConcepts, getSuperConcepts, getXmlRepresentation, isSubConceptOf
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

RegistryDomainModelSupport

public RegistryDomainModelSupport()
Method Detail

containsConcept

public abstract boolean containsConcept(String concept)
Description copied from interface: RegistryDomainModel
Checks if a concept exists in the domain model.

Specified by:
containsConcept in interface RegistryDomainModel

getConcepts

public abstract Set<String> getConcepts()
Description copied from interface: RegistryDomainModel
Get all concepts of the domain model.

Specified by:
getConcepts in interface RegistryDomainModel

addRelationship

protected void addRelationship(String fromConcept,
                               String relationship,
                               String toConcept)

containsRelationship

public boolean containsRelationship(String fromConcept,
                                    String relationship,
                                    String toConcept)
Specified by:
containsRelationship in interface RegistryDomainModel

getInverseRelationship

public String getInverseRelationship(String relationship)
Description copied from interface: RegistryDomainModel
Get the inverse relationship of a relationship (owl:inverseOf).

Specified by:
getInverseRelationship in interface RegistryDomainModel

hasInverseRelationship

public boolean hasInverseRelationship(String relationship)
Specified by:
hasInverseRelationship in interface RegistryDomainModel

setInverseRelationhip

protected void setInverseRelationhip(String relationship,
                                     String inverseOf)

getRelationships

public Set<String> getRelationships(String fromConcept,
                                    String toConcept)
Specified by:
getRelationships in interface RegistryDomainModel

relationshipExists

public boolean relationshipExists(String relationship)


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.