| java.lang.Object org.ontoware.rdfreactor.generator.java.JMapped org.ontoware.rdfreactor.generator.java.JProperty
JProperty | public class JProperty extends JMapped (Code) | | A JProperty represents a property of a JClass in the JModel.
(A JProperty can be thought of as a property in the Java Bean sense.)
Every JProperty has a name, a comment, a URI to which it is Mapped in the JModel,
a List of JClasses from which it is a property, an inverse property, as well as
a minimum and maximum cardinality.
author: $Author: xamde $ version: $Id: JProperty.java,v 1.9 2006/09/11 10:07:57 xamde Exp $ |
Field Summary | |
final public static int | NOT_SET |
NOT_SET | final public static int NOT_SET(Code) | | magic number representing a value, which is not set
|
JProperty | public JProperty(JClass clazz, String name, URI mappedTo, int minCardinality, int maxCardinality)(Code) | | constructor with all parameters
Parameters: clazz - - JClass which is the domain of this JProperty Parameters: name - of the JProperty Parameters: mappedTo - is the URI to which this JProperty is mapped to Parameters: minCardinality - of the JProperty Parameters: maxCardinality - of the JProperty |
JProperty | public JProperty(JClass clazz, String name, URI mappedTo)(Code) | | constructor without cardinalities
Parameters: clazz - - JClass which is the domain of this JProperty Parameters: name - of the JProperty Parameters: mappedTo - is the URI to which this JProperty is mapped to |
addType | public void addType(JClass type)(Code) | | Parameters: type - is added to the list of JClasses having this JProperty as a range |
fixRanges | public void fixRanges(JModel jm)(Code) | | fix the list of JClasses which use this property, in case it is out of date
Parameters: jm - is the JModel in which JClasses using this JProperty are searched for |
getFirstType | public JClass getFirstType()(Code) | | for veloctiy
a random JClass of the current types |
getJClass | public JClass getJClass()(Code) | | JClass which is the domain of this JProperty |
getMaxCardinality | public int getMaxCardinality()(Code) | | |
getMinCardinality | public int getMinCardinality()(Code) | | |
hasInverse | public boolean hasInverse()(Code) | | |
isConsistent | public boolean isConsistent()(Code) | | apply consistency checks to this JProperty.
Every JProperty has to belong to at least one JClass.
true if this JProperty is consistent |
setMaxCardinality | public void setMaxCardinality(int max)(Code) | | |
setMinCardinality | public void setMinCardinality(int min)(Code) | | |
toReport | public String toReport()(Code) | | generate a verbose report of this JProperty
|
|
|