org.ontobox.box.box2model
Class BoxProperty

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

public class BoxProperty
extends BoxNamedEntity
implements Property

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
BoxProperty(BoxConnection con, int fn)
           
 
Method Summary
 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 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
 
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

BoxProperty

public BoxProperty(BoxConnection con,
                   int fn)
Method Detail

getDomain

public OntClass getDomain()
Description copied from interface: Property
Get property domain

Specified by:
getDomain in interface Property
Returns:
null, if domain is any object

getMinCardinality

public java.lang.Integer getMinCardinality()
Description copied from interface: Property
Get min.cardinality

Specified by:
getMinCardinality in interface Property
Returns:
null is equivalent to 0

getMaxCardinality

public java.lang.Integer getMaxCardinality()
Description copied from interface: Property
Get max.cardinality

Specified by:
getMaxCardinality in interface Property
Returns:
null is equivalent to infinity

setDomain

public void setDomain(OntClass cl)
Description copied from interface: Property
Set property domain

Specified by:
setDomain in interface Property
Parameters:
cl - domain class (may be null)