org.meta2project.model
Interface TProperty

All Superinterfaces:
AnnotatedEntity, NamedEntity, Property
All Known Implementing Classes:
BoxTProperty, DBTProperty, DebugTProperty

public interface TProperty
extends Property

Data type property (tproperty). The null range equals the String range.

Author:
Anton Malykh

Field Summary
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
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 r)
          Set range (may be null)
 
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
 

Method Detail

getRange

Type getRange()
Get the range data type for the tproperty.

Returns:
range data type

getAllValues

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

Returns:
values list (distinct)

getOwners

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.

Parameters:
value - the value to find
Returns:
object collection (distinct)

setRange

void setRange(Type r)
Set range (may be null)

Parameters:
r - range type, may be null