com.att.gs.codip.ograph
Interface OGProperty

All Superinterfaces:
LogicalResource, OGResource
All Known Subinterfaces:
OGPropInstance
All Known Implementing Classes:
OGPropertyImp, OGPropInstanceImp

public interface OGProperty
extends OGResource

Provides definitions of Property.


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 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

pInstance

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


lookupSubPropertyOf

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

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

addSubPropertyOf

public void addSubPropertyOf(OGProperty theProperty)
Adds the provided property to the property's subPropertyOf collection. *

Parameters:
theProperty - The super property to add to the subPropertyOf collection.

removeSubPropertyOf

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

Parameters:
theProperty - The super property to remove from the subPropertyOf collection.

getSubPropertyOf

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

Parameters:
theID - The ID of the super property to get.
Returns:
The matching property if found, otherwise returns void.

getSubPropertyOf

public OGProperty[] getSubPropertyOf()
Accessor for the read only indexed bean property, "subPropertyOf"

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

containsSubPropertyOf

public boolean containsSubPropertyOf(java.lang.Object theID)
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.

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()
Provides a iterator for the all of the property's super properties. Only this property's direct super properties are included.

Returns:
An iterator over all the property's direct super properties.

subPropertyOf

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

Parameters:
aType - The type of the sought properties.
Returns:
An iterator over some the resource's super properties.


CODIP AT&T Government Solutions, Inc.