org.meta2project.model
Interface Property

All Superinterfaces:
AnnotatedEntity, NamedEntity
All Known Subinterfaces:
OProperty, TProperty
All Known Implementing Classes:
BoxOProperty, BoxProperty, BoxTProperty, DBOProperty, DBTProperty, DebugOProperty, DebugTProperty

public interface Property
extends NamedEntity

Base property

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
 void delete()
          Delete the property.
 OntClass getDomain()
          Get property domain
 java.lang.Integer getMaxCardinality()
          Get max.cardinality
 java.lang.Integer getMinCardinality()
          Get min.cardinality
 void setDomain(OntClass cl)
          Set property domain
 
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

getDomain

OntClass getDomain()
Get property domain

Returns:
null, if domain is any object

getMinCardinality

java.lang.Integer getMinCardinality()
Get min.cardinality

Returns:
null is equivalent to 0

getMaxCardinality

java.lang.Integer getMaxCardinality()
Get max.cardinality

Returns:
null is equivalent to infinity

delete

void delete()
Delete the property. If the property has any value, it cannot be deleted.

Specified by:
delete in interface NamedEntity

setDomain

void setDomain(OntClass cl)
Set property domain

Parameters:
cl - domain class (may be null)