|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.att.gs.codip.resource.AbstractResource | +--com.att.gs.codip.ograph.imp.OGResourceImp
Field Summary | |
protected java.util.ArrayList |
EMPTY_MAP
|
Fields inherited from class com.att.gs.codip.resource.AbstractResource |
delineatedType, isSingleTyped |
Constructor Summary | |
protected |
OGResourceImp()
|
protected |
OGResourceImp(OGOntology anOntology)
|
|
OGResourceImp(java.lang.String theID,
OGOntology anOntology)
|
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. |
protected void |
copyRDF(edu.unika.aifb.rdf.api.model.Resource theRDF)
|
java.lang.String |
getComment()
Getter method for this resource's comment string. |
java.lang.String |
getLabel()
Getter method for this resource's label string. |
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. |
boolean |
isType(OGResource theType)
|
OGPropInstance |
lookupPropInstance(java.lang.Object theID)
Looks for a matching property in this resource. |
protected void |
morphID(java.lang.String theURI)
|
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. |
protected void |
resourceInitialization(java.lang.String theID,
OGOntology anOntology)
|
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. |
void |
setType(OGResource newType)
|
java.lang.String |
toString()
|
java.util.Iterator |
types()
Provides an iterator over the list of multi-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 |
getID, getLocalName, getNamespace, getURI |
Methods inherited from interface com.att.gs.codip.resource.LogicalResource |
getType, isLiteralType, isType, setType |
Field Detail |
protected final java.util.ArrayList EMPTY_MAP
Constructor Detail |
protected OGResourceImp()
protected OGResourceImp(OGOntology anOntology)
public OGResourceImp(java.lang.String theID, OGOntology anOntology)
Method Detail |
protected void resourceInitialization(java.lang.String theID, OGOntology anOntology)
public OGOntology getOntology()
OGResource
getOntology
in interface OGResource
protected void copyRDF(edu.unika.aifb.rdf.api.model.Resource theRDF)
protected void morphID(java.lang.String theURI)
public java.lang.String toString()
toString
in class java.lang.Object
public void setLabel(java.lang.String theLabel)
OGResource
setLabel
in interface OGResource
theLabel
- The label of this resource.public java.lang.String getLabel()
OGResource
getLabel
in interface OGResource
public void setComment(java.lang.String theComment)
OGResource
setComment
in interface OGResource
theComment
- The comment for this resource.public java.lang.String getComment()
OGResource
getComment
in interface OGResource
public void setType(OGResource newType)
public boolean containsType(OGResource theType)
OGResource
containsType
in interface OGResource
public boolean isType(OGResource theType)
public void addType(OGResource theType)
OGResource
addType
in interface OGResource
public void removeType(OGResource theType)
OGResource
removeType
in interface OGResource
public java.util.Iterator types()
OGResource
types
in interface OGResource
public OGPropInstance lookupPropInstance(java.lang.Object theID)
OGResource
lookupPropInstance
in interface OGResource
theID
- The ID of the sought property.
public OGPropInstance addNewPropInstance(OGResource newPropType, OGResource theObject)
OGResource
addNewPropInstance
in interface OGResource
newPropType
- The type of the property instance.theObject
- The object of the property instance.
public void addPropInstance(OGPropInstance thePropInstance)
OGResource
addPropInstance
in interface OGResource
public void removePropInstance(OGPropInstance thePropInstance)
OGResource
removePropInstance
in interface OGResource
thePropInstance
- The property to remove from the resource.public OGPropInstance getPropInstance(java.lang.Object theID)
OGResource
getPropInstance
in interface OGResource
theID
- The ID of the sought property.
public OGPropInstance[] getPropInstances()
OGResource
getPropInstances
in interface OGResource
public boolean containsPropInstance(java.lang.Object theID)
OGResource
containsPropInstance
in interface OGResource
theID
- The ID of the sought property.
public java.util.Iterator propInstances()
OGResource
propInstances
in interface OGResource
public java.util.Iterator propInstances(OGResource aType)
OGResource
propInstances
in interface OGResource
aType
- The type of the sought properties.
public java.util.Collection getPropInstances(OGResource aType)
OGResource
getPropInstances
in interface OGResource
aType
- The type of the sought properties.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |