com.ontotext.wsmo4j.ontology
Class OntologyElementImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.ontology.OntologyElementImpl
All Implemented Interfaces:
org.omwg.ontology.OntologyElement, org.wsmo.common.Entity
Direct Known Subclasses:
AxiomImpl, ConceptImpl, InstanceImpl, RelationImpl, RelationInstanceImpl

public abstract class OntologyElementImpl
extends EntityImpl
implements org.omwg.ontology.OntologyElement

Title: WSMO4J

Description: WSMO API and a Reference Implementation

Copyright: Copyright (c) 2004-2005

Company: OntoText Lab. / SIRMA

Version:
1.0
Author:
not attributable

Constructor Summary
OntologyElementImpl(org.wsmo.common.Identifier id)
           
 
Method Summary
 org.omwg.ontology.Ontology getOntology()
          Retrieve the owner of the Instance.
 void setOntology(org.omwg.ontology.Ontology ontology)
          Sets a new owner of the Instance.
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, equals, 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.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

OntologyElementImpl

public OntologyElementImpl(org.wsmo.common.Identifier id)
Method Detail

getOntology

public org.omwg.ontology.Ontology getOntology()
                                       throws org.wsmo.common.exception.SynchronisationException
Retrieve the owner of the Instance.

Specified by:
getOntology in interface org.omwg.ontology.OntologyElement
Throws:
org.wsmo.common.exception.SynchronisationException

setOntology

public void setOntology(org.omwg.ontology.Ontology ontology)
                 throws org.wsmo.common.exception.InvalidModelException
Sets a new owner of the Instance.

Specified by:
setOntology in interface org.omwg.ontology.OntologyElement
Throws:
org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.SynchronisationException


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