|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides shared functionality of Ontology Resources.
All instances of resource have a colleciton of Properties.
The resource ID is unique and immutable once created. Currently the ID is the resources URI.
Each resource exists with in a single XML Name Space.
Method Summary | |
OGPropInstance |
addNewPropInstance(OGResource newPropType,
OGResource theObject)
Creates a property instantce and adds it to the resource. |
void |
addPropInstance(OGPropInstance thePropInstance)
Adds the provided property instance to the resource. |
void |
addType(OGResource theType)
Adds the given type to the list of multi-types. |
boolean |
containsPropInstance(java.lang.Object theID)
Checks for the existence of a property in this resource whose ID matches the provided ID. |
boolean |
containsType(OGResource theType)
Type checker for multi-types. |
java.lang.String |
getComment()
Getter method for this resource's comment string. |
java.lang.String |
getID()
Getter method for the Resources ID. |
java.lang.String |
getLabel()
Getter method for this resource's label string. |
java.lang.String |
getLocalName()
Getter method for this resource's Local Name. |
java.lang.String |
getNamespace()
Getter method for this resource's Namespace. |
OGOntology |
getOntology()
Getter method for this resource's Ontology. |
OGPropInstance |
getPropInstance(java.lang.Object theID)
Looks for a property of this resource whose ID matches the provided ID. |
OGPropInstance[] |
getPropInstances()
Accessor for the read only indexed bean property, "properties" |
java.util.Collection |
getPropInstances(OGResource aType)
Provies a Collection for all of the resource's properties that are a particular type. |
java.lang.String |
getURI()
Getter method for this resource's URI. |
OGPropInstance |
lookupPropInstance(java.lang.Object theID)
Looks for a matching property in this resource. |
java.util.Iterator |
propInstances()
Provides a iterator for the all of the resource's properties. |
java.util.Iterator |
propInstances(OGResource aType)
Looks for a property of this resource that is a particular type. |
void |
removePropInstance(OGPropInstance thePropInstance)
Removes the provided property instance from the resource. |
void |
removeType(OGResource theType)
Removes the given type from the list of multi-types. |
void |
setComment(java.lang.String theComment)
Setter method for this resource's comment string. |
void |
setLabel(java.lang.String theLabel)
Setter method for this resource's label string. |
java.util.Iterator |
types()
Provides an iterator over the list of multi-types. |
Methods inherited from interface com.att.gs.codip.resource.LogicalResource |
getType, isLiteralType, isType, setType |
Method Detail |
public java.lang.String getID()
getID
in interface LogicalResource
public void setLabel(java.lang.String theLabel)
setLabel
in interface LogicalResource
theLabel
- The label of this resource.public java.lang.String getLabel()
getLabel
in interface LogicalResource
public void setComment(java.lang.String theComment)
setComment
in interface LogicalResource
theComment
- The comment for this resource.public java.lang.String getComment()
getComment
in interface LogicalResource
public java.lang.String getURI()
getURI
in interface LogicalResource
public java.lang.String getNamespace()
getNamespace
in interface LogicalResource
public java.lang.String getLocalName()
getLocalName
in interface LogicalResource
public OGOntology getOntology()
public boolean containsType(OGResource theType)
public void addType(OGResource theType)
public void removeType(OGResource theType)
public java.util.Iterator types()
public OGPropInstance lookupPropInstance(java.lang.Object theID)
theID
- The ID of the sought property.
public OGPropInstance addNewPropInstance(OGResource newPropType, OGResource theObject)
newPropType
- The type of the property instance.theObject
- The object of the property instance.
public void addPropInstance(OGPropInstance thePropInstance)
public void removePropInstance(OGPropInstance thePropInstance)
thePropInstance
- The property to remove from the resource.public OGPropInstance getPropInstance(java.lang.Object theID)
theID
- The ID of the sought property.
public OGPropInstance[] getPropInstances()
public boolean containsPropInstance(java.lang.Object theID)
theID
- The ID of the sought property.
public java.util.Iterator propInstances()
public java.util.Iterator propInstances(OGResource aType)
aType
- The type of the sought properties.
public java.util.Collection getPropInstances(OGResource aType)
aType
- The type of the sought properties.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |