edu.unika.aifb.daml
Class DAMLClassImpl

edu.unika.aifb.daml.DAMLResourceImpl
  |
  +--edu.unika.aifb.daml.DAMLClassImpl

public class DAMLClassImpl
extends DAMLResourceImpl
implements DAMLClass


Fields inherited from class edu.unika.aifb.daml.DAMLResourceImpl
_m, _o, _this, isCore

Method Summary
 voidaddSubClassOf(DAMLClass theClass)
          Adds the provided class to the class's subClassOf collection.
 booleancontainsSubClassOf(Object theID)
          Looks for a super class in this class whose ID matches the provided ID.
 DAMLClassgetSubClassOf(Object theID)
          Looks for the provided super class in the class's subClassOf collection.
 DAMLClass[]getSubClassOf()
          Accessor for the read only indexed bean property, "subClassOf"
 DAMLClasslookupSubClassOf(Object theID)
          Looks for super classes of this class.
 voidremoveSubClassOf(DAMLClass theClass)
          Removes the provided class from the class's subClassOf collection.
 IteratorsubClassOf()
          Provides an iterator for the all of the class's super classes.
 IteratorsubClassOf(DAMLResource aType)
          Looks for a super class in the subClassOf collection of this resource that is a particular type.

Methods inherited from class edu.unika.aifb.daml.DAMLResourceImpl
addProperty, containsProperty, getComment, getID, getLabel, getLocalName, getNamespace, getOntology, getProperties, getProperties, getProperty, getRDFResource, getType, getURI, lookupProperty, properties, properties, removeComment, removeProperty, setComment, setLabel, setType

Method Detail

addSubClassOf

public void addSubClassOf(DAMLClass theClass)
Adds the provided class to the class's subClassOf collection. *
Parameters:
theClass - The super class to add to the subClassOf collection.

containsSubClassOf

public boolean containsSubClassOf(Object theID)
Looks for a super class in this class whose ID matches the provided ID. The super class must be in this class's subClassOf collection, that is it must be a direct super class.
Parameters:
theID - The ID of the sought super class.
Returns: true if the super class exists in the subClassOf collection.

getSubClassOf

public DAMLClass getSubClassOf(Object theID)
Looks for the provided super class in the class's subClassOf collection. *
Parameters:
theID - The ID of the super class to get.
Returns: The matching DAML class if found, otherwise returns void.

getSubClassOf

public DAMLClass[] getSubClassOf()
Accessor for the read only indexed bean property, "subClassOf"
Returns: The super classes of this class as an array.

lookupSubClassOf

public DAMLClass lookupSubClassOf(Object theID)
Looks for super classes of this class. Searches this class's subClassOf for a super class whose ID matches the provided ID. Same as getSubClassOf
Parameters:
theID - The ID of the sought super class.
Returns: The matching DAML class if found, otherwise returns void.

removeSubClassOf

public void removeSubClassOf(DAMLClass theClass)
Removes the provided class from the class's subClassOf collection. *
Parameters:
theClass - The super class to remove from the subClassOf collection.

subClassOf

public Iterator subClassOf()
Provides an iterator for the all of the class's super classes. Only this class's direct super classes are included.
Returns: An iterator over all the class's direct super classes.

subClassOf

public Iterator subClassOf(DAMLResource aType)
Looks for a super class in the subClassOf collection of this resource that is a particular type.
Parameters:
aType - The type of the sought classes.
Returns: An iterator over some the resource's super classes.