org.eaglei.model
Class EIClass

java.lang.Object
  extended by org.eaglei.model.EIResource
      extended by org.eaglei.model.EIOntResource
          extended by org.eaglei.model.EIClass
All Implemented Interfaces:
java.io.Serializable

public class EIClass
extends EIOntResource
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static EIClass NULL_CLASS
           
 
Fields inherited from class org.eaglei.model.EIOntResource
NO_DEFINITION
 
Constructor Summary
EIClass(EIEntity entity, boolean isInferred, boolean hasProperty, boolean hasSubClass, boolean hasSuperClass, boolean hasEquivalentClass, boolean isEagleIResource)
           
 
Method Summary
 java.util.Set<java.lang.String> getAnnotations()
           
 java.util.List<EIEquivalentClass> getEquivalentClasses()
          Gets the equivalent classes of this class.
 java.util.List<EIProperty> getProperties()
          Gets the properties of this class.
 java.util.List<EIClass> getSubClasses()
          Gets the subclasses of this class.
 EIClass getSuperClass()
          Gets the superclass of this class.
 java.util.List<EIClass> getSuperClasses()
          Gets the list of superclasses of this class.
 java.util.Map<java.lang.String,EIValueRestriction> getValueRestrictionMap()
           
 boolean hasEquivalentClass()
          Is there an EIEquivalentClass for this class.
 boolean hasProperty()
           
 boolean hasSubClass()
           
 boolean hasSuperClass()
          Indicates whether this class has a superclass.
 boolean isEagleIResource()
          Returns true if this class is an eagle-i class (a top-level resource class or a subclass of a top-level class).
 boolean isInferred()
           
 void setAnnotations(java.util.Set<java.lang.String> setAnnotationValueURI)
           
 void setEquivalentClasses(java.util.List<EIEquivalentClass> equivalentClasses)
           
 void setProperties(java.util.List<EIProperty> properties)
           
 void setSubClasses(java.util.List<EIClass> subclasses)
           
 void setSuperClass(EIClass superclass)
           
 void setSuperClasses(java.util.List<EIClass> superclasses)
           
 void setValueRestrictionMap(java.util.Map<java.lang.String,EIValueRestriction> mapValueRestrictions)
           
 
Methods inherited from class org.eaglei.model.EIOntResource
getDefinition, setDefinition
 
Methods inherited from class org.eaglei.model.EIResource
equals, getEntity, hashCode, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_CLASS

public static EIClass NULL_CLASS
Constructor Detail

EIClass

public EIClass(EIEntity entity,
               boolean isInferred,
               boolean hasProperty,
               boolean hasSubClass,
               boolean hasSuperClass,
               boolean hasEquivalentClass,
               boolean isEagleIResource)
Method Detail

isInferred

public boolean isInferred()

isEagleIResource

public boolean isEagleIResource()
Returns true if this class is an eagle-i class (a top-level resource class or a subclass of a top-level class). Returns false if this class is not an eagle-i resource class.

Returns:

hasProperty

public boolean hasProperty()

hasSubClass

public boolean hasSubClass()

hasSuperClass

public boolean hasSuperClass()
Indicates whether this class has a superclass. The "top-level" resource classes are defined as having a no superclass.

Returns:

getSuperClass

public EIClass getSuperClass()
Gets the superclass of this class. This value is lazily populated and will be null until setSuperClass() has been called. If this is a "top-level" resource class, it will always have a null superclass. Calling this method does not set the value.

Returns:
null if hasSuperClass() is false or if the superclass has not been set yet.

setSuperClass

public void setSuperClass(EIClass superclass)

getSuperClasses

public java.util.List<EIClass> getSuperClasses()
Gets the list of superclasses of this class. This value is lazily populated and will be null until setSuperClasses() has been called. If this is a "top-level" resource class, it will always have a null superclass list. Calling this method does not set the value.

Returns:
null if hasSuperClass() is false or if the superclasses have not been set yet.

setSuperClasses

public void setSuperClasses(java.util.List<EIClass> superclasses)

getSubClasses

public java.util.List<EIClass> getSubClasses()
Gets the subclasses of this class. The subclass list is lazily populated and will be null until setSubClasses() has been called. This method does not populate the list.

Returns:
null if hasSubClass is false or if the subclass list has not been set yet.

setSubClasses

public void setSubClasses(java.util.List<EIClass> subclasses)

getProperties

public java.util.List<EIProperty> getProperties()
Gets the properties of this class. The properties list is lazily populated and will be null until setProperties() has been called. This method does not populate the list.

Returns:
null if hasProperties is false or if the properties list has not been set yet.

setProperties

public void setProperties(java.util.List<EIProperty> properties)

hasEquivalentClass

public boolean hasEquivalentClass()
Is there an EIEquivalentClass for this class.

Returns:

getEquivalentClasses

public java.util.List<EIEquivalentClass> getEquivalentClasses()
Gets the equivalent classes of this class. The equivalent class list is lazily populated and will be null until setEquivalentClasses() has been called. This method does not populate the list.

Returns:
null if hasEquivalentClass is false or if the equivalent class list has not been set yet.

setEquivalentClasses

public void setEquivalentClasses(java.util.List<EIEquivalentClass> equivalentClasses)

getValueRestrictionMap

public java.util.Map<java.lang.String,EIValueRestriction> getValueRestrictionMap()

setValueRestrictionMap

public void setValueRestrictionMap(java.util.Map<java.lang.String,EIValueRestriction> mapValueRestrictions)

getAnnotations

public java.util.Set<java.lang.String> getAnnotations()

setAnnotations

public void setAnnotations(java.util.Set<java.lang.String> setAnnotationValueURI)


Copyright © 2009-2011 Eagle-I. All Rights Reserved.