org.meta2project.model.debug
Class DebugOProperty

java.lang.Object
  extended by org.meta2project.model.debug.DebugAnnotatedEntity
      extended by org.meta2project.model.debug.DebugNamedEntity
          extended by org.meta2project.model.debug.DebugOProperty
All Implemented Interfaces:
AnnotatedEntity, NamedEntity, OProperty, Property

public class DebugOProperty
extends DebugNamedEntity
implements OProperty

Author:
Anton Malykh

Field Summary
protected  OProperty oprop
           
 
Fields inherited from class org.meta2project.model.debug.DebugNamedEntity
fullName, name, session
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
Constructor Summary
DebugOProperty(DebugSession session, OProperty oprop)
           
 
Method Summary
 OntClass getDomain()
          Get property domain
 java.lang.Integer getMaxCardinality()
          Get max.cardinality
 java.lang.Integer getMinCardinality()
          Get min.cardinality
 OntClass getRange()
          Get the range class for the oproperty.
 void setDomain(OntClass cl)
          Set property domain
 void setRange(OntClass r)
          Set range class
 
Methods inherited from class org.meta2project.model.debug.DebugNamedEntity
delete, equals, getFullName, getName, getOntology, hashCode, setName
 
Methods inherited from class org.meta2project.model.debug.DebugAnnotatedEntity
getAnnotation, getAnnotationNames, putAnnotation
 
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
 

Field Detail

oprop

protected final OProperty oprop
Constructor Detail

DebugOProperty

public DebugOProperty(DebugSession session,
                      OProperty oprop)
Method Detail

getRange

public OntClass getRange()
Description copied from interface: OProperty
Get the range class for the oproperty.

Specified by:
getRange in interface OProperty
Returns:
range class

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)

setRange

public void setRange(OntClass r)
Description copied from interface: OProperty
Set range class

Specified by:
setRange in interface OProperty
Parameters:
r - range class, may be null