public class IdentifierBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
capitalizedIdentifier(ResourceObject resource,
OntGenerationConfig config)
Determines a Java compliant identifier for the resource with first character in uppercase (e.g.
|
String |
capitalizedPluralIdentifier(ResourceObject resource,
OntGenerationConfig config)
Extracts a capitalized plural form for this resource.
|
static IdentifierBuilder |
forObjectRepository(ObjectConnection connection)
Returns a builder object that operates on the connected repository.
|
static IdentifierBuilder |
forObjectRepository(ObjectRepository repository)
Returns a builder object that operates on the given repository.
|
String |
lowercaseIdentifier(ResourceObject resource,
OntGenerationConfig config)
Determines a Java compliant identifier for the resource with first character in lowercase (e.g.
|
String |
lowercasePluralIdentifier(ResourceObject resource,
OntGenerationConfig config)
Extracts a plural form for this resource.
|
String |
packageName(ResourceObject object,
OntGenerationConfig config)
Determines a package name for the type generated for a URI by its hostname component.
|
public static IdentifierBuilder 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 IdentifierBuilder forObjectRepository(ObjectConnection connection)
connection - A connection to the repository to use, e.g. for name disambiguation.public String packageName(ResourceObject object, OntGenerationConfig config)
configobject - The resource for which to get the package name for.config - Configuration for Java class generation.OntGenerationConfig.getBasePackage() of config is returned.public String lowercaseIdentifier(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
resource - The resource for which to find a name.config - The configuration object specifying how names are built.org.openrdf.repository.RepositoryException - Thrown if an error occurs while querying the repository.public String capitalizedIdentifier(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
resource - The resource for which to find a name.config - The configuration object specifying how names are built.org.openrdf.repository.RepositoryException - Thrown if an error occurs while querying the repository.public String lowercasePluralIdentifier(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
resource - The resource for which to find a name.config - The configuration object specifying how names are built.lowercaseIdentifier(ResourceObject, OntGenerationConfig), but in a plural form.org.openrdf.repository.RepositoryException - Thrown if an error occurs while querying the repository.public String capitalizedPluralIdentifier(ResourceObject resource, OntGenerationConfig config) throws org.openrdf.repository.RepositoryException
resource - The resource for which to find a name.config - The configuration object specifying how names are built.capitalizedIdentifier(ResourceObject, OntGenerationConfig), but in a plural form.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.