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

java.lang.Object
  |
  +--com.att.gs.codip.resource.AbstractResource
        |
        +--com.att.gs.codip.ograph.imp.OGResourceImp
              |
              +--com.att.gs.codip.ograph.imp.OGPropertyImp
All Implemented Interfaces:
LogicalResource, OGProperty, OGResource
Direct Known Subclasses:
OGPropInstanceImp

public class OGPropertyImp
extends OGResourceImp
implements OGProperty


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 OGPropertyImp(OGOntology anOntology)
           
  OGPropertyImp(java.lang.String theID, OGOntology anOntology)
           
 
Method Summary
 void addSubPropertyOf(OGProperty theProperty)
          Adds the provided property to the property's subPropertyOf collection.
 boolean containsSubPropertyOf(java.lang.Object theID)
          Looks for a super property in this property whose ID matches the provided ID.
 OGProperty[] getSubPropertyOf()
          Accessor for the read only indexed bean property, "subPropertyOf"
 OGProperty getSubPropertyOf(java.lang.Object theID)
          Looks for the provided super property in the property's subPropertyOf collection.
 OGProperty lookupSubPropertyOf(java.lang.Object theID)
          Looks for super properties of this property.
 boolean pInstance()
          Determines if this property is a defintion or an instances based on the values of its subject and object attributes.
 void removeSubPropertyOf(OGProperty theProperty)
          Removes the provided property from the property's subPropertyOf collection.
 java.util.Iterator subPropertyOf()
          Provides a iterator for the all of the property's super properties.
 java.util.Iterator subPropertyOf(OGResource aType)
          Looks for a super propery in the subPropertyOf 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

OGPropertyImp

protected OGPropertyImp(OGOntology anOntology)

OGPropertyImp

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

pInstance

public boolean pInstance()
Description copied from interface: OGProperty
Determines if this property is a defintion or an instances based on the values of its subject and object attributes.

Specified by:
pInstance in interface OGProperty

lookupSubPropertyOf

public OGProperty lookupSubPropertyOf(java.lang.Object theID)
Description copied from interface: OGProperty
Looks for super properties of this property. Searches this property's subPropertyOf recursively for a super property whose ID matches the provided ID.

Specified by:
lookupSubPropertyOf in interface OGProperty
Parameters:
theID - The ID of the sought super property.
Returns:
The matching property if found, otherwise returns void.

addSubPropertyOf

public void addSubPropertyOf(OGProperty theProperty)
Description copied from interface: OGProperty
Adds the provided property to the property's subPropertyOf collection. *

Specified by:
addSubPropertyOf in interface OGProperty
Parameters:
theProperty - The super property to add to the subPropertyOf collection.

removeSubPropertyOf

public void removeSubPropertyOf(OGProperty theProperty)
Description copied from interface: OGProperty
Removes the provided property from the property's subPropertyOf collection. *

Specified by:
removeSubPropertyOf in interface OGProperty
Parameters:
theProperty - The super property to remove from the subPropertyOf collection.

getSubPropertyOf

public OGProperty getSubPropertyOf(java.lang.Object theID)
Description copied from interface: OGProperty
Looks for the provided super property in the property's subPropertyOf collection. *

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

getSubPropertyOf

public OGProperty[] getSubPropertyOf()
Description copied from interface: OGProperty
Accessor for the read only indexed bean property, "subPropertyOf"

Specified by:
getSubPropertyOf in interface OGProperty
Returns:
The super properties of this class as an array.

containsSubPropertyOf

public boolean containsSubPropertyOf(java.lang.Object theID)
Description copied from interface: OGProperty
Looks for a super property in this property whose ID matches the provided ID. The super property must be in this property's subPropertyOf collection, that is it must be a direct super property.

Specified by:
containsSubPropertyOf in interface OGProperty
Parameters:
theID - The ID of the sought super property.
Returns:
true if the super property exists in the subPropertyOf collection.

subPropertyOf

public java.util.Iterator subPropertyOf()
Description copied from interface: OGProperty
Provides a iterator for the all of the property's super properties. Only this property's direct super properties are included.

Specified by:
subPropertyOf in interface OGProperty
Returns:
An iterator over all the property's direct super properties.

subPropertyOf

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

Specified by:
subPropertyOf in interface OGProperty
Parameters:
aType - The type of the sought properties.
Returns:
An iterator over some the resource's super properties.


CODIP AT&T Government Solutions, Inc.