com.ge.grc.acuity
Class MissingProperty

java.lang.Object
  extended bycom.ge.grc.acuity.MissingProperty

public class MissingProperty
extends java.lang.Object

Class to encapsulate the important information associated with a missing Property. This class is used by the AcuityController class to return information to a client.

Version:
$Revision: 1.2 $ Last modified on $Date: 2006/09/08 22:38:45 $
Author:
crapo

Constructor Summary
MissingProperty()
           
 
Method Summary
protected  boolean addRangeClass(com.hp.hpl.jena.rdf.model.Resource r)
           
 boolean checkForSpecialProperties(AcuityController ac)
          Call this method to check for any special properties for this missing property.
protected  java.util.List getAssociatedActions()
           
 int getCardinalityRestriction()
          Call this method to get the cardinality restiction on the missing property.
 InteractionObject getInterationObject()
           
 int getMaxCardinalityRestriction()
          Call this method to get the maximum cardinality restriction of the missing property.
 int getMinCardinalityRestriction()
          Call this method to get the minimum cardinality restriction of the missing property.
 com.hp.hpl.jena.ontology.OntProperty getPredicate()
           
 java.util.List getRangeResources()
          Call this method to get the range of the MissingProperties as a List of Resources
 com.hp.hpl.jena.rdf.model.Resource[] getRangeResourcesAsArray()
          Call this method to get an array of the URIs of the Classes which are the range.
 com.hp.hpl.jena.ontology.Individual getSubject()
           
 boolean isAskUser()
           
 boolean isAutoInstantiate()
           
protected  void setAskUser(boolean bAskUser)
           
protected  void setAssociatedActions(java.util.List associatedActions)
           
protected  void setAutoInstantiate(boolean bAutoInstantiate)
           
 void setCardinalityRestriction(int cardinalityRestriction)
          Method to set the cardinality restriction of a missing property.
 void setInterationObject(InteractionObject interationObject)
           
 void setMaxCardinalityRestriction(int maxCardinalityRestriction)
          Method to set the maximum cardinality restriction of a missing property.
 void setMinCardinalityRestriction(int minCardinalityRestriction)
          Method to set the minimum cardinality restriction of a missing property.
protected  void setPredicate(com.hp.hpl.jena.ontology.OntProperty predicate)
           
protected  void setRangeResources(java.util.List rangeClasses)
           
protected  void setSubject(com.hp.hpl.jena.ontology.Individual subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissingProperty

public MissingProperty()
Method Detail

setSubject

protected void setSubject(com.hp.hpl.jena.ontology.Individual subject)
Parameters:
subject - The subject to set.

getSubject

public com.hp.hpl.jena.ontology.Individual getSubject()
Returns:
Returns the subject.

setPredicate

protected void setPredicate(com.hp.hpl.jena.ontology.OntProperty predicate)
Parameters:
predicate - The predicate to set.

getPredicate

public com.hp.hpl.jena.ontology.OntProperty getPredicate()
Returns:
Returns the predicate.

setAskUser

protected void setAskUser(boolean bAskUser)
Parameters:
bAskUser - The bAskUser to set.

isAskUser

public boolean isAskUser()
Returns:
Returns the bAskUser.

setAutoInstantiate

protected void setAutoInstantiate(boolean bAutoInstantiate)
Parameters:
bAutoInstantiate - The bAutoInstantiate to set.

isAutoInstantiate

public boolean isAutoInstantiate()
Returns:
Returns the bAutoInstantiate.

getRangeResourcesAsArray

public com.hp.hpl.jena.rdf.model.Resource[] getRangeResourcesAsArray()
                                                              throws AcuityException
Call this method to get an array of the URIs of the Classes which are the range.

Returns:
- array of range OntClass URIs
Throws:
AcuityException

getRangeResources

public java.util.List getRangeResources()
Call this method to get the range of the MissingProperties as a List of Resources

Returns:
- a List of Resources in the range of the MissingProperty

setRangeResources

protected void setRangeResources(java.util.List rangeClasses)

addRangeClass

protected boolean addRangeClass(com.hp.hpl.jena.rdf.model.Resource r)
                         throws AcuityException
Throws:
AcuityException

setAssociatedActions

protected void setAssociatedActions(java.util.List associatedActions)
Parameters:
associatedActions - The associatedActions to set.

getAssociatedActions

protected java.util.List getAssociatedActions()
Returns:
Returns the associatedActions.

checkForSpecialProperties

public boolean checkForSpecialProperties(AcuityController ac)
                                  throws AcuityException
Call this method to check for any special properties for this missing property.

Returns:
- true if a set of range classes was successfully generated else false
Throws:
AcuityException

setCardinalityRestriction

public void setCardinalityRestriction(int cardinalityRestriction)
Method to set the cardinality restriction of a missing property.

Parameters:
cardinalityRestriction - - the cardinality required of the missing property

setMinCardinalityRestriction

public void setMinCardinalityRestriction(int minCardinalityRestriction)
Method to set the minimum cardinality restriction of a missing property.

Parameters:
minCardinalityRestriction - - the minimum cardinality of the missing property

getCardinalityRestriction

public int getCardinalityRestriction()
Call this method to get the cardinality restiction on the missing property.

Returns:
- the cardinality required of the missing property

getMinCardinalityRestriction

public int getMinCardinalityRestriction()
Call this method to get the minimum cardinality restriction of the missing property.

Returns:
- the minimum cardinality required of the missing property

getMaxCardinalityRestriction

public int getMaxCardinalityRestriction()
Call this method to get the maximum cardinality restriction of the missing property.

Returns:
- the maximum cardinality required of the missing property

setMaxCardinalityRestriction

public void setMaxCardinalityRestriction(int maxCardinalityRestriction)
Method to set the maximum cardinality restriction of a missing property.

Parameters:
maxCardinalityRestriction - - the maximum cardinality of the missing property

setInterationObject

public void setInterationObject(InteractionObject interationObject)
Parameters:
interationObject - The interationObject to set.

getInterationObject

public InteractionObject getInterationObject()
Returns:
Returns the interationObject.