public class JProperty extends JMapped
Modifier and Type | Field and Description |
---|---|
static int |
NOT_SET
magic number representing a value, which is not set
|
Constructor and Description |
---|
JProperty(JClass clazz,
String name,
URI mappedTo)
constructor without cardinalities
|
JProperty(JClass clazz,
String name,
URI mappedTo,
int minCardinality,
int maxCardinality)
constructor with all parameters
|
Modifier and Type | Method and Description |
---|---|
void |
addType(JClass type) |
void |
fixRanges(JModel jm)
fix the list of JClasses which use this property, in case it is out of
date
|
JClass |
getFirstType()
for veloctiy
|
JProperty |
getInverse() |
JClass |
getJClass() |
int |
getMaxCardinality() |
int |
getMinCardinality() |
Collection<JClass> |
getTypes() |
boolean |
hasInverse() |
boolean |
isConsistent()
apply consistency checks to this JProperty.
|
void |
setInverse(JProperty inverse) |
void |
setMaxCardinality(int max) |
void |
setMinCardinality(int min) |
String |
toDebug() |
String |
toReport() |
dotfree, equals, getComment, getMappedTo, getN3Name, getName, getPlainName, hashCode, setComment, toString
public static final int NOT_SET
public JProperty(JClass clazz, String name, URI mappedTo, int minCardinality, int maxCardinality)
clazz
- - JClass which is the domain of this JPropertyname
- of the JPropertymappedTo
- is the URI to which this JProperty is mapped tominCardinality
- of the JPropertymaxCardinality
- of the JPropertypublic Collection<JClass> getTypes()
public void addType(JClass type)
type
- is added to the list of JClasses having this JProperty as a
rangepublic JClass getFirstType()
public int getMaxCardinality()
public int getMinCardinality()
public void setMinCardinality(int min)
public void setMaxCardinality(int max)
public boolean isConsistent()
public JClass getJClass()
public void fixRanges(JModel jm)
jm
- is the JModel in which JClasses using this JProperty are
searched forpublic JProperty getInverse()
public boolean hasInverse()
public void setInverse(JProperty inverse)
public String toReport()
Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.