com.ontotext.wsmo4j.ontology
Class AttributeImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.ontology.AttributeImpl
All Implemented Interfaces:
org.omwg.ontology.Attribute, org.wsmo.common.Entity

public class AttributeImpl
extends EntityImpl
implements org.omwg.ontology.Attribute


Constructor Summary
AttributeImpl(org.wsmo.common.Identifier thisID, org.omwg.ontology.Concept domain)
           
 
Method Summary
 void addType(org.omwg.ontology.Type type)
           
 boolean equals(Object object)
           
 org.omwg.ontology.Concept getConcept()
           
 org.wsmo.common.Identifier getInverseOf()
           
 int getMaxCardinality()
           
 int getMinCardinality()
           
 boolean isConstraining()
           
 boolean isReflexive()
           
 boolean isSymmetric()
           
 boolean isTransitive()
           
 Set<org.omwg.ontology.Type> listTypes()
           
 void removeFromConcept()
           
 void removeType(org.omwg.ontology.Type type)
           
 void setConstraining(boolean constraining)
           
 void setInverseOf(org.wsmo.common.Identifier id)
           
 void setMaxCardinality(int max)
           
 void setMinCardinality(int min)
           
 void setReflexive(boolean reflexive)
           
 void setSymmetric(boolean symmetric)
           
 void setTransitive(boolean trans)
           
 
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.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

AttributeImpl

public AttributeImpl(org.wsmo.common.Identifier thisID,
                     org.omwg.ontology.Concept domain)
Method Detail

getConcept

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

removeFromConcept

public void removeFromConcept()
                       throws org.wsmo.common.exception.InvalidModelException
Throws:
org.wsmo.common.exception.InvalidModelException

isConstraining

public boolean isConstraining()
Specified by:
isConstraining in interface org.omwg.ontology.Attribute

setConstraining

public void setConstraining(boolean constraining)
Specified by:
setConstraining in interface org.omwg.ontology.Attribute

getMinCardinality

public int getMinCardinality()
Specified by:
getMinCardinality in interface org.omwg.ontology.Attribute

setMinCardinality

public void setMinCardinality(int min)
Specified by:
setMinCardinality in interface org.omwg.ontology.Attribute

getMaxCardinality

public int getMaxCardinality()
Specified by:
getMaxCardinality in interface org.omwg.ontology.Attribute

setMaxCardinality

public void setMaxCardinality(int max)
Specified by:
setMaxCardinality in interface org.omwg.ontology.Attribute

listTypes

public Set<org.omwg.ontology.Type> listTypes()
Specified by:
listTypes in interface org.omwg.ontology.Attribute

addType

public void addType(org.omwg.ontology.Type type)
             throws org.wsmo.common.exception.InvalidModelException
Specified by:
addType in interface org.omwg.ontology.Attribute
Throws:
org.wsmo.common.exception.InvalidModelException

removeType

public void removeType(org.omwg.ontology.Type type)
                throws org.wsmo.common.exception.InvalidModelException
Specified by:
removeType in interface org.omwg.ontology.Attribute
Throws:
org.wsmo.common.exception.InvalidModelException

isReflexive

public boolean isReflexive()
Specified by:
isReflexive in interface org.omwg.ontology.Attribute

setReflexive

public void setReflexive(boolean reflexive)
Specified by:
setReflexive in interface org.omwg.ontology.Attribute

isSymmetric

public boolean isSymmetric()
Specified by:
isSymmetric in interface org.omwg.ontology.Attribute

setSymmetric

public void setSymmetric(boolean symmetric)
Specified by:
setSymmetric in interface org.omwg.ontology.Attribute

isTransitive

public boolean isTransitive()
Specified by:
isTransitive in interface org.omwg.ontology.Attribute

setTransitive

public void setTransitive(boolean trans)
Specified by:
setTransitive in interface org.omwg.ontology.Attribute

getInverseOf

public org.wsmo.common.Identifier getInverseOf()
Specified by:
getInverseOf in interface org.omwg.ontology.Attribute

setInverseOf

public void setInverseOf(org.wsmo.common.Identifier id)
Specified by:
setInverseOf in interface org.omwg.ontology.Attribute

equals

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


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