public class JClass extends JMapped implements Comparable<JClass>
Modifier and Type | Field and Description |
---|---|
boolean |
cardinalityexception |
static JClass |
OWL_CLASS |
static JClass |
RDFS_CLASS |
static JClass |
RESOURCE |
static JClass |
STRING |
Constructor and Description |
---|
JClass(JPackage packagge,
String name,
URI mappedTo)
creating a class adds it to the package the only constructor:
|
Modifier and Type | Method and Description |
---|---|
void |
addSuperclass(JClass superclass) |
int |
compareTo(JClass other) |
boolean |
equals(Object other)
two JClass instances are equal if they have the same name and belong to
the same JPackage
|
boolean |
getCardinalityexception() |
String |
getDotfree() |
int |
getInheritanceDistanceFrom(JClass root)
Calculate the inheritance distance of this JClass from the given root
JClass.
|
List<JProperty> |
getInverseProperties() |
List<JProperty> |
getMissingProperties() |
List<JProperty> |
getProperties() |
JClass |
getSuperclass() |
List<JClass> |
getSuperclasses() |
Set<JClass> |
getTransitiveSuperclasses() |
Set<String> |
getUsedPropertyNames()
Property names need to be unique within a class and in all super-classes
of that class
|
boolean |
hasJavaProperty(JProperty prop)
requires the hierarchy to be flat already
|
boolean |
hasMultiValuePropeties() |
boolean |
isConsistent()
apply consistency checks to this JClass and all instances of JProperty in
it.
|
void |
setJavaSuperclass(JClass javaSuperclass)
Double-link
|
boolean |
throwsRDFDataException() |
String |
toDebug() |
String |
toReport() |
String |
toString() |
dotfree, getComment, getMappedTo, getN3Name, getName, getPlainName, hashCode, setComment
public static final JClass STRING
public static final JClass RESOURCE
public static final JClass RDFS_CLASS
public static final JClass OWL_CLASS
public boolean cardinalityexception
public Set<String> getUsedPropertyNames()
public String getDotfree()
public boolean hasMultiValuePropeties()
public boolean throwsRDFDataException()
public Set<JClass> getTransitiveSuperclasses()
public void addSuperclass(JClass superclass)
public void setJavaSuperclass(JClass javaSuperclass)
javaSuperclass
- public boolean isConsistent()
public JClass getSuperclass()
public int getInheritanceDistanceFrom(JClass root)
root
- is a JClasspublic String toReport()
public boolean equals(Object other)
public boolean getCardinalityexception()
public int compareTo(JClass other)
compareTo
in interface Comparable<JClass>
public boolean hasJavaProperty(JProperty prop)
prop
- Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.