| |
|
| java.lang.Object org.ontoware.rdfreactor.generator.java.JMapped org.ontoware.rdfreactor.generator.java.JClass
JClass | public class JClass extends JMapped (Code) | | A JClass represents a class in a JModel.
Every JClass has a name, a comment, a List of properties and inverse
properties, a List of superclasses (multiple superclasses are allowed), and
an URI to which the JClass is mapped.
Properties are represented by JProperty instances.
author: mvo |
cardinalityexception | public boolean cardinalityexception(Code) | | |
JClass | public JClass(JPackage packagge, String name, URI mappedTo)(Code) | | creating a class adds it to the package the only constructor:
Parameters: packagge - is the JPackage to which this JClass belongs Parameters: name - is the Name identyfing this JClass Parameters: mappedTo - is an URI to which this JClass should be mapped |
addSuperclass | public void addSuperclass(JClass superclass)(Code) | | |
equals | public boolean equals(Object other)(Code) | | two JClass instances are equal if they have the same name and belong to
the same JPackage
|
getCardinalityexception | public boolean getCardinalityexception()(Code) | | |
getInheritanceDistanceFrom | public int getInheritanceDistanceFrom(JClass root)(Code) | | Calculate the inheritance distance of this JClass from the given root
JClass.
Parameters: root - is a JClass the number of classes in the inheritance tree between this JClassand the given root JClass |
getSuperclass | public JClass getSuperclass()(Code) | | first superclass, null if none exists |
getSuperclasses | public List<JClass> getSuperclasses()(Code) | | all direct super-classes |
getTransitiveSuperclasses | public Set<JClass> getTransitiveSuperclasses()(Code) | | all super-classes, and their super-classes, and so on until root |
getUsedPropertyNames | public Set<String> getUsedPropertyNames()(Code) | | property names need only to be unique within a class FIXME and in all
super-classes of that class
all property names that have been used in this class or asuper-class |
hasMultiValuePropeties | public boolean hasMultiValuePropeties()(Code) | | true if this JClass has a JProperty with a cardinality greaterthen one |
isConsistent | public boolean isConsistent()(Code) | | apply consistency checks to this JClass and all instances of JProperty in
it.
A JClass is not consistent if it has more then one superclass.
true if the JClass and all its parts are consistent |
setJavaSuperclass | public void setJavaSuperclass(JClass javaSuperclass)(Code) | | Double-link
Parameters: javaSuperclass - |
throwsRDFDataException | public boolean throwsRDFDataException()(Code) | | true if the template generates code that throws aRDFDataException |
toReport | public String toReport()(Code) | | generate a verbose report of this JClass
|
|
|
|