com.ontotext.wsmo4j.ontology
Class ConceptImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.ontology.OntologyElementImpl
          extended by com.ontotext.wsmo4j.ontology.ConceptImpl
All Implemented Interfaces:
org.omwg.ontology.Concept, org.omwg.ontology.OntologyElement, org.omwg.ontology.Type, org.wsmo.common.Entity

public class ConceptImpl
extends OntologyElementImpl
implements org.omwg.ontology.Concept


Constructor Summary
ConceptImpl(org.wsmo.common.Identifier thisID, WsmoFactoryImpl factory)
           
 
Method Summary
 void addInstance(org.omwg.ontology.Instance instance)
           
 void addSubConcept(org.omwg.ontology.Concept subConcept)
           
 void addSuperConcept(org.omwg.ontology.Concept superConcept)
           
 org.omwg.ontology.Attribute createAttribute(org.wsmo.common.Identifier id)
           
 boolean equals(Object object)
           
 Set<org.omwg.ontology.Attribute> findAttributes(org.wsmo.common.Identifier id)
           
 Set<org.omwg.ontology.Attribute> listAttributes()
           
 Set<org.omwg.ontology.Instance> listInstances()
           
 Set<org.omwg.ontology.Concept> listSubConcepts()
           
 Set<org.omwg.ontology.Concept> listSuperConcepts()
           
 void removeAttribute(org.omwg.ontology.Attribute attribute)
           
 void removeAttribute(org.wsmo.common.Identifier identifier)
           
 void removeInstance(org.omwg.ontology.Instance instance)
           
 void removeSubConcept(org.omwg.ontology.Concept subConcept)
           
 void removeSuperConcept(org.omwg.ontology.Concept superConcept)
           
 
Methods inherited from class com.ontotext.wsmo4j.ontology.OntologyElementImpl
getOntology, setOntology
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omwg.ontology.OntologyElement
getOntology, setOntology
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

ConceptImpl

public ConceptImpl(org.wsmo.common.Identifier thisID,
                   WsmoFactoryImpl factory)
Method Detail

listSuperConcepts

public Set<org.omwg.ontology.Concept> listSuperConcepts()
                                                 throws org.wsmo.common.exception.SynchronisationException
Specified by:
listSuperConcepts in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException

addSuperConcept

public void addSuperConcept(org.omwg.ontology.Concept superConcept)
                     throws org.wsmo.common.exception.SynchronisationException,
                            org.wsmo.common.exception.InvalidModelException
Specified by:
addSuperConcept in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeSuperConcept

public void removeSuperConcept(org.omwg.ontology.Concept superConcept)
                        throws org.wsmo.common.exception.SynchronisationException,
                               org.wsmo.common.exception.InvalidModelException
Specified by:
removeSuperConcept in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listSubConcepts

public Set<org.omwg.ontology.Concept> listSubConcepts()
                                               throws org.wsmo.common.exception.SynchronisationException
Specified by:
listSubConcepts in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException

addSubConcept

public void addSubConcept(org.omwg.ontology.Concept subConcept)
                   throws org.wsmo.common.exception.SynchronisationException,
                          org.wsmo.common.exception.InvalidModelException
Specified by:
addSubConcept in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeSubConcept

public void removeSubConcept(org.omwg.ontology.Concept subConcept)
                      throws org.wsmo.common.exception.SynchronisationException,
                             org.wsmo.common.exception.InvalidModelException
Specified by:
removeSubConcept in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listInstances

public Set<org.omwg.ontology.Instance> listInstances()
                                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
listInstances in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException

addInstance

public void addInstance(org.omwg.ontology.Instance instance)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
addInstance in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeInstance

public void removeInstance(org.omwg.ontology.Instance instance)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeInstance in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listAttributes

public Set<org.omwg.ontology.Attribute> listAttributes()
                                                throws org.wsmo.common.exception.SynchronisationException
Specified by:
listAttributes in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException

findAttributes

public Set<org.omwg.ontology.Attribute> findAttributes(org.wsmo.common.Identifier id)
                                                throws org.wsmo.common.exception.SynchronisationException
Specified by:
findAttributes in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException

createAttribute

public org.omwg.ontology.Attribute createAttribute(org.wsmo.common.Identifier id)
                                            throws org.wsmo.common.exception.InvalidModelException
Specified by:
createAttribute in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.InvalidModelException

removeAttribute

public void removeAttribute(org.wsmo.common.Identifier identifier)
Specified by:
removeAttribute in interface org.omwg.ontology.Concept

removeAttribute

public void removeAttribute(org.omwg.ontology.Attribute attribute)
                     throws org.wsmo.common.exception.SynchronisationException,
                            org.wsmo.common.exception.InvalidModelException
Specified by:
removeAttribute in interface org.omwg.ontology.Concept
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

equals

public boolean equals(Object object)
Overrides:
equals in class EntityImpl


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.