com.att.gs.codip.ograph.imp
Class OGClassImp

java.lang.Object
  |
  +--com.att.gs.codip.resource.AbstractResource
        |
        +--com.att.gs.codip.ograph.imp.OGResourceImp
              |
              +--com.att.gs.codip.ograph.imp.OGClassImp
All Implemented Interfaces:
LogicalResource, OGClass, OGResource

public class OGClassImp
extends OGResourceImp
implements OGClass


Field Summary
 
Fields inherited from class com.att.gs.codip.ograph.imp.OGResourceImp
EMPTY_MAP
 
Fields inherited from class com.att.gs.codip.resource.AbstractResource
delineatedType, isSingleTyped
 
Constructor Summary
protected OGClassImp(OGOntology anOntology)
           
  OGClassImp(java.lang.String theID, OGOntology anOntology)
           
 
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 class com.att.gs.codip.ograph.imp.OGResourceImp
addNewPropInstance, addPropInstance, addType, containsPropInstance, containsType, copyRDF, getComment, getLabel, getOntology, getPropInstance, getPropInstances, getPropInstances, isType, lookupPropInstance, morphID, propInstances, propInstances, removePropInstance, removeType, resourceInitialization, setComment, setLabel, setType, toString, types
 
Methods inherited from class com.att.gs.codip.resource.AbstractResource
equals, getID, getLocalName, getNamespace, getType, getURI, isLiteralType, isType, resourceInitialization, setID, setLocalName, setNamespace, setType, setURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

OGClassImp

protected OGClassImp(OGOntology anOntology)

OGClassImp

public OGClassImp(java.lang.String theID,
                  OGOntology anOntology)
Method Detail

lookupSubClassOf

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

Specified by:
lookupSubClassOf in interface OGClass
Parameters:
theID - The ID of the sought super class.
Returns:
The matching class if found, otherwise returns void.

addSubClassOf

public void addSubClassOf(OGClass theClass)
Description copied from interface: OGClass
Adds the provided class to the class's subClassOf collection. *

Specified by:
addSubClassOf in interface OGClass
Parameters:
theClass - The super class to add to the subClassOf collection.

removeSubClassOf

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

Specified by:
removeSubClassOf in interface OGClass
Parameters:
theClass - The super class to remove from the subClassOf collection.

getSubClassOf

public OGClass getSubClassOf(java.lang.Object theID)
Description copied from interface: OGClass
Looks for the provided super class in the class's subClassOf collection. *

Specified by:
getSubClassOf in interface OGClass
Parameters:
theID - The ID of the super class to get.
Returns:
The matching class if found, otherwise returns void.

getSubClassOf

public OGClass[] getSubClassOf()
Description copied from interface: OGClass
Accessor for the read only indexed bean property, "subClassOf"

Specified by:
getSubClassOf in interface OGClass
Returns:
The super classes of this class as an array.

containsSubClassOf

public boolean containsSubClassOf(java.lang.Object theID)
Description copied from interface: OGClass
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.

Specified by:
containsSubClassOf in interface OGClass
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()
Description copied from interface: OGClass
Provides a iterator for the all of the class's super classes. Only this class's direct super classes are included.

Specified by:
subClassOf in interface OGClass
Returns:
An iterator over all the class's direct super classes.

subClassOf

public java.util.Iterator subClassOf(OGResource aType)
Description copied from interface: OGClass
Looks for a super class in the subClassOf collection of this resource that is a particular type.

Specified by:
subClassOf in interface OGClass
Parameters:
aType - The type of the sought classes.
Returns:
An iterator over some the resource's super classes.


CODIP AT&T Government Solutions, Inc.