public abstract class ClazzBuildingSupport extends RDFSClazzSupport implements BuildableRDFSClazz
BuildableRDFSClazz implementing basic methods
for JavaPoet class generation for this class.GET_CONNECTION, GET_RESOURCE| Constructor and Description |
|---|
ClazzBuildingSupport() |
| Modifier and Type | Method and Description |
|---|---|
String |
getJavaPackageName(OntGenerationConfig config)
Resolves a package name for a Java class representing this RDFS class.
|
com.squareup.javapoet.ClassName |
getJavaPoetClassName(OntGenerationConfig config)
Returns a JavaPoet
ClassName object of a Java class for this RDFS class. |
boolean |
hasPropertyTransitive(RDFSProperty property)
Checks whether this clazz or one of its transitive superclass closure
is the domain of a certain property.
|
addSuperclazzaddComment, addLabeldelete, getResource, getResourceAsString, getTriples, setResource, setResourceAsStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirectSuperclazzes, getIncomingProperties, getOutgoingProperties, getSubclazzes, hasParent, hasParent, isDatatype, isLiteraladdSuperclazz, getSuperclazzes, setSuperclazzesaddComment, addLabel, getComments, getLabels, setComments, setLabelsdelete, getResourceAsString, getTriples, setResource, setResourceAsStringgetObjectConnection, getResourcebuildSupportTypeSpec, buildTypeSpecpublic String getJavaPackageName(OntGenerationConfig config)
BuildableOntologyClazzgetJavaPackageName in interface BuildableOntologyClazzconfig - Configuration for the generation of Java classes.OntGenerationConfig.getBasePackage() of config) if
no package name can be extracted from the resources URI (e.g. because it is a blank node).public com.squareup.javapoet.ClassName getJavaPoetClassName(OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
BuildableOntologyClazzClassName object of a Java class for this RDFS class.
Tries to resolve a package name and a identifier name from the classes URI.
The generation of the classes name is enhanced by specifying a rdfs:label literal
for the resource with RDFSSchemaResource.setLabels(Set).
If no package name can be extracted for this resource (e.g. because it is a blank node)
then the default package is set.getJavaPoetClassName in interface BuildableOntologyClazzconfig - The configuration for building the class name
(see OntGenerationConfig.setIdentifierLanguagePreference(List)).org.openrdf.repository.RepositoryExceptionpublic boolean hasPropertyTransitive(RDFSProperty property) throws org.openrdf.repository.RepositoryException
BuildableRDFSClazzhasPropertyTransitive in interface BuildableRDFSClazzproperty - The property to check for.org.openrdf.repository.RepositoryExceptionCopyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.