com.att.gs.codip.ograph
Interface OGClass

All Superinterfaces:
LogicalResource, OGResource
All Known Implementing Classes:
OGClassImp

public interface OGClass
extends OGResource

Provides instnaces of classes.


Method Summary
 void addSubClassOf(OGClass theClass)
          Adds the provided class to the class's subClassOf collection.
 boolean containsSubClassOf(java.lang.Object theID)
          Looks for a super class in this class whose ID matches the provided ID.
 OGClass[] getSubClassOf()
          Accessor for the read only indexed bean property, "subClassOf"
 OGClass getSubClassOf(java.lang.Object theID)
          Looks for the provided super class in the class's subClassOf collection.
 OGClass lookupSubClassOf(java.lang.Object theID)
          Looks for super classes of this class.
 void removeSubClassOf(OGClass theClass)
          Removes the provided class from the class's subClassOf collection.
 java.util.Iterator subClassOf()
          Provides a iterator for the all of the class's super classes.
 java.util.Iterator subClassOf(OGResource aType)
          Looks for a super class in the subClassOf collection of this resource that is a particular type.
 
Methods inherited from interface com.att.gs.codip.ograph.OGResource
addNewPropInstance, addPropInstance, addType, containsPropInstance, containsType, getComment, getID, getLabel, getLocalName, getNamespace, getOntology, getPropInstance, getPropInstances, getPropInstances, getURI, lookupPropInstance, propInstances, propInstances, removePropInstance, removeType, setComment, setLabel, types
 
Methods inherited from interface com.att.gs.codip.resource.LogicalResource
getType, isLiteralType, isType, setType
 

Method Detail

lookupSubClassOf

public OGClass lookupSubClassOf(java.lang.Object theID)
Looks for super classes of this class. Searches this class's subClassOf recursively for a super class whose ID matches the provided ID.

Parameters:
theID - The ID of the sought super class.
Returns:
The matching class if found, otherwise returns void.

addSubClassOf

public void addSubClassOf(OGClass theClass)
Adds the provided class to the class's subClassOf collection. *

Parameters:
theClass - The super class to add to the subClassOf collection.

removeSubClassOf

public void removeSubClassOf(OGClass theClass)
Removes the provided class from the class's subClassOf collection. *

Parameters:
theClass - The super class to remove from the subClassOf collection.

getSubClassOf

public OGClass getSubClassOf(java.lang.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 class if found, otherwise returns void.

getSubClassOf

public OGClass[] getSubClassOf()
Accessor for the read only indexed bean property, "subClassOf"

Returns:
The super classes of this class as an array.

containsSubClassOf

public boolean containsSubClassOf(java.lang.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.

subClassOf

public java.util.Iterator subClassOf()
Provides a 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 java.util.Iterator subClassOf(OGResource 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.


CODIP AT&T Government Solutions, Inc.