org.ontobox.box.box2model
Class BoxTProperty

java.lang.Object
  extended by org.ontobox.box.box2model.BoxNamedEntity
      extended by org.ontobox.box.box2model.BoxProperty
          extended by org.ontobox.box.box2model.BoxTProperty
All Implemented Interfaces:
AnnotatedEntity, NamedEntity, Property, TProperty

public class BoxTProperty
extends BoxProperty
implements TProperty

Author:
Anton Malykh

Field Summary
 
Fields inherited from class org.ontobox.box.box2model.BoxNamedEntity
con, fn
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
Constructor Summary
BoxTProperty(BoxConnection con, int name)
           
 
Method Summary
 java.util.List<java.lang.String> getAllValues()
          Get all values of the tproperty for all objects (from all ontologies).
 java.util.Collection<OntObject> getOwners(java.lang.String value)
          Get the collection of objects, which values of this tproperty equal to the specified value at least one time.
 Type getRange()
          Get the range data type for the tproperty.
 void setRange(Type range)
          Set range (may be null)
 
Methods inherited from class org.ontobox.box.box2model.BoxProperty
getDomain, getMaxCardinality, getMinCardinality, setDomain
 
Methods inherited from class org.ontobox.box.box2model.BoxNamedEntity
delete, equals, getAnnotation, getAnnotationNames, getFullName, getName, getOntology, hashCode, putAnnotation, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.meta2project.model.Property
delete, getDomain, getMaxCardinality, getMinCardinality, setDomain
 
Methods inherited from interface org.meta2project.model.NamedEntity
getFullName, getName, getOntology, setName
 
Methods inherited from interface org.meta2project.model.AnnotatedEntity
getAnnotation, getAnnotationNames, putAnnotation
 

Constructor Detail

BoxTProperty

public BoxTProperty(BoxConnection con,
                    int name)
Method Detail

getRange

public Type getRange()
Description copied from interface: TProperty
Get the range data type for the tproperty.

Specified by:
getRange in interface TProperty
Returns:
range data type

getAllValues

public java.util.List<java.lang.String> getAllValues()
Description copied from interface: TProperty
Get all values of the tproperty for all objects (from all ontologies). If there are no such values, the method returns the empty list.

Specified by:
getAllValues in interface TProperty
Returns:
values list (distinct)

getOwners

public java.util.Collection<OntObject> getOwners(java.lang.String value)
Description copied from interface: TProperty
Get the collection of objects, which values of this tproperty equal to the specified value at least one time.

Specified by:
getOwners in interface TProperty
Parameters:
value - the value to find
Returns:
object collection (distinct)

setRange

public void setRange(Type range)
Description copied from interface: TProperty
Set range (may be null)

Specified by:
setRange in interface TProperty
Parameters:
range - range type, may be null