uk.ac.soton.itinnovation.registry.icomponent.model
Class RegistryDomainModelSupport

java.lang.Object
  extended by uk.ac.soton.itinnovation.registry.icomponent.model.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
abstract  void addConcept(String concept)
          Add a concept to the domain model.
 void addRelationship(String fromConcept, String relationship, String toConcept)
          Add a relationship between two concepts.
abstract  boolean containsConcept(String concept)
          Checks if a concept exists in the domain model.
 boolean containsRelationship(String fromConcept, String relationship, String toConcept)
           
 void dumpModel()
           
 void dumpModelToLogger()
           
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)
           
 String getXmlRepresentation()
          Get a xml string representation of the registry domain model.
 boolean hasInverseRelationship(String relationship)
           
 boolean relationshipExists(String relationship)
           
 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.registry.icomponent.model.RegistryDomainModel
addBidirectionalRelationship, addSubConcept, getHierarchyRootConcepts, getIncomingRelationships, getOutgoingRelationships, getRelationships, getSubConcepts, getSuperConcepts, isSubConceptOf
 

Field Detail

logger

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

RegistryDomainModelSupport

public RegistryDomainModelSupport()
Method Detail

addConcept

public abstract void addConcept(String concept)
Description copied from interface: RegistryDomainModel
Add a concept to the domain model.

Specified by:
addConcept in interface RegistryDomainModel

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

public void addRelationship(String fromConcept,
                            String relationship,
                            String toConcept)
Description copied from interface: RegistryDomainModel
Add a relationship between two concepts.

Specified by:
addRelationship in interface RegistryDomainModel

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

public void setInverseRelationhip(String relationship,
                                  String inverseOf)
Specified by:
setInverseRelationhip in interface RegistryDomainModel

getRelationships

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

relationshipExists

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

dumpModel

public void dumpModel()

dumpModelToLogger

public void dumpModelToLogger()

getXmlRepresentation

public String getXmlRepresentation()
Description copied from interface: RegistryDomainModel
Get a xml string representation of the registry domain model.

Specified by:
getXmlRepresentation in interface RegistryDomainModel
Returns:
xml representation


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