edu.unika.aifb.daml
Class DAMLPropertyImpl

edu.unika.aifb.daml.DAMLResourceImpl
  |
  +--edu.unika.aifb.daml.DAMLPropertyImpl

public class DAMLPropertyImpl
extends DAMLResourceImpl
implements DAMLProperty


Fields inherited from class edu.unika.aifb.daml.DAMLResourceImpl
_m, _o, _this, isCore

Method Summary
 voidaddSubPropertyOf(DAMLProperty theProperty)
          Adds the provided property to the property's subPropertyOf collection.
 booleancontainsSubPropertyOf(Object theID)
          Looks for a super property in this property whose ID matches the provided ID.
 DAMLResourcegetObject()
          Getter method for this properties object resource.
 DAMLResourcegetSubject()
          Getter method for this properties subject resource.
 DAMLPropertygetSubPropertyOf(Object theID)
          Looks for the provided super property in the property's subPropertyOf collection.
 DAMLProperty[]getSubPropertyOf()
          Accessor for the read only indexed bean property, "subPropertyOf"
 DAMLPropertylookupSubPropertyOf(Object theID)
          Looks for super properties of this property.
 booleanpInstance()
           
 voidremoveSubPropertyOf(DAMLProperty theProperty)
          Removes the provided property from the property's subPropertyOf collection.
 voidsetObject(DAMLResource theObject)
          Setter method for this properties object resource.
 voidsetSubject(DAMLResource theSubject)
          Setter method for this properties subject resource.
 IteratorsubPropertyOf()
          Provides a iterator for the all of the property's super properties.
 IteratorsubPropertyOf(DAMLResource aType)
          Looks for a super property in the subPropertyOf collection of this resource that is a particular type.

Methods inherited from class edu.unika.aifb.daml.DAMLResourceImpl
addProperty, containsProperty, getComment, getID, getLabel, getLocalName, getNamespace, getOntology, getProperties, getProperties, getProperty, getRDFResource, getType, getURI, lookupProperty, properties, properties, removeComment, removeProperty, setComment, setLabel, setType

Method Detail

addSubPropertyOf

public void addSubPropertyOf(DAMLProperty theProperty)
Adds the provided property to the property's subPropertyOf collection. *
Parameters:
theProperty - The super property to add to the subPropertyOf collection.

containsSubPropertyOf

public boolean containsSubPropertyOf(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.

getObject

public DAMLResource getObject()
Getter method for this properties object resource.
returns The resource that is the value of this property if this is an instance.

getSubject

public DAMLResource getSubject()
Getter method for this properties subject resource.
returns The resource that has this property if this is an instance.

getSubPropertyOf

public DAMLProperty getSubPropertyOf(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 DAML property if found, otherwise returns void.

getSubPropertyOf

public DAMLProperty[] getSubPropertyOf()
Accessor for the read only indexed bean property, "subPropertyOf"
Returns: The super properties of this class as an array.

lookupSubPropertyOf

public DAMLProperty lookupSubPropertyOf(Object theID)
Looks for super properties of this property. Searches this property's subPropertyOf for a super property whose ID matches the provided ID. Same as getSubPropertyOf
Parameters:
theID - The ID of the sought super property.
Returns: The matching DAML property if found, otherwise returns void.

pInstance

public boolean pInstance()
Returns: true if this is an instance of a property.

removeSubPropertyOf

public void removeSubPropertyOf(DAMLProperty theProperty)
Removes the provided property from the property's subPropertyOf collection. *
Parameters:
theProperty - The super property to remove from the subPropertyOf collection.

setObject

public void setObject(DAMLResource theObject)
Setter method for this properties object resource. Attention! If the subject is unset, it throws a NullPointerException.
Parameters:
theObject - The resource that is the value of this property.

setSubject

public void setSubject(DAMLResource theSubject)
Setter method for this properties subject resource.
Parameters:
theSubject - The resource that has this property.

subPropertyOf

public 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 Iterator subPropertyOf(DAMLResource aType)
Looks for a super property 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.