com.ontotext.wsmo4j.common
Class EntityImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
All Implemented Interfaces:
org.wsmo.common.Entity
Direct Known Subclasses:
AttributeImpl, OntologyElementImpl, TopEntityImpl

public abstract class EntityImpl
extends Object
implements org.wsmo.common.Entity

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
EntityImpl(org.wsmo.common.Identifier thisID)
           
 
Method Summary
 void addNFPValue(org.wsmo.common.IRI key, org.wsmo.common.Identifier value)
           
 void addNFPValue(org.wsmo.common.IRI key, org.omwg.ontology.Value value)
           
 boolean equals(Object target)
           
 org.wsmo.common.Identifier getIdentifier()
           
 int hashCode()
           
 Map<org.wsmo.common.IRI,Set<Object>> listNFPValues()
           
 Set<Object> listNFPValues(org.wsmo.common.IRI key)
          Returns the list of values associated with the specified key.
 void removeNFP(org.wsmo.common.IRI key)
           
 void removeNFPValue(org.wsmo.common.IRI key, org.wsmo.common.Identifier value)
           
 void removeNFPValue(org.wsmo.common.IRI key, org.omwg.ontology.Value value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityImpl

public EntityImpl(org.wsmo.common.Identifier thisID)
Method Detail

listNFPValues

public Set<Object> listNFPValues(org.wsmo.common.IRI key)
                          throws org.wsmo.common.exception.SynchronisationException
Returns the list of values associated with the specified key.

Specified by:
listNFPValues in interface org.wsmo.common.Entity
Parameters:
key - The key of interest.
Returns:
A list of values associated with the specified key.
Throws:
org.wsmo.common.exception.SynchronisationException

listNFPValues

public Map<org.wsmo.common.IRI,Set<Object>> listNFPValues()
                                                   throws org.wsmo.common.exception.SynchronisationException
Specified by:
listNFPValues in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException

addNFPValue

public void addNFPValue(org.wsmo.common.IRI key,
                        org.wsmo.common.Identifier value)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
addNFPValue in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

addNFPValue

public void addNFPValue(org.wsmo.common.IRI key,
                        org.omwg.ontology.Value value)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
addNFPValue in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeNFPValue

public void removeNFPValue(org.wsmo.common.IRI key,
                           org.wsmo.common.Identifier value)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeNFPValue in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeNFPValue

public void removeNFPValue(org.wsmo.common.IRI key,
                           org.omwg.ontology.Value value)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeNFPValue in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeNFP

public void removeNFP(org.wsmo.common.IRI key)
               throws org.wsmo.common.exception.SynchronisationException,
                      org.wsmo.common.exception.InvalidModelException
Specified by:
removeNFP in interface org.wsmo.common.Entity
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

getIdentifier

public org.wsmo.common.Identifier getIdentifier()
Specified by:
getIdentifier in interface org.wsmo.common.Entity

equals

public boolean equals(Object target)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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