public class ClassNameBuilder extends IdentifierBuilder
| Modifier and Type | Method and Description |
|---|---|
com.squareup.javapoet.ClassName |
className(ResourceObject resource,
OntGenerationConfig config)
Returns the JavaPoet class name object for the resource.
|
static ClassNameBuilder |
forObjectRepository(ObjectConnection connection)
Returns a builder object that operates on the connected repository.
|
static ClassNameBuilder |
forObjectRepository(ObjectRepository repository)
Returns a builder object that operates on the given repository.
|
com.squareup.javapoet.TypeSpec |
interfaceSpec(ResourceObject resource,
OntGenerationConfig config)
Generates a JavaPoet type spec for an empty interface representing the resource.
|
capitalizedIdentifier, capitalizedPluralIdentifier, lowercaseIdentifier, lowercasePluralIdentifier, packageNamepublic static ClassNameBuilder forObjectRepository(ObjectRepository repository) throws org.openrdf.repository.RepositoryException
repository - The repository to use, e.g. for name disambiguation.org.openrdf.repository.RepositoryException - Thrown if an error occurs while opening a connection to the repository.public static ClassNameBuilder forObjectRepository(ObjectConnection connection)
connection - A connection to the repository to use, e.g. for name disambiguation.public com.squareup.javapoet.ClassName className(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
config - The configuration object specifying the language preference.resource - The class resource to get a class name for.org.openrdf.repository.RepositoryException - Thrown if an error occurs while querying the repository.public com.squareup.javapoet.TypeSpec interfaceSpec(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
config - The configuration object specifying the language preference.resource - The class resource to get a class name for.TypeSpec.toBuilder() on it.org.openrdf.repository.RepositoryException - Thrown if an error occurs while querying the repository.Copyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.