public static class Builder.Advanced<ResourceType,DataType,T extends Builder.Advanced<ResourceType,DataType,T>> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Builder.Advanced.BetweenWithWildcard<TT> |
| Constructor and Description |
|---|
Advanced() |
public T mapTextInElementToUri(String elementName, String from, ResourceType to)
elementName - Full URI of element namefrom - Original text inside elementto - New resourcepublic T mapTextInAttributeToUri(String elementName, String attributeName, String from, ResourceType to)
public T convertComplexElementsWithOnlyAttributesToPredicate(boolean enabled)
enabled - true for enabledpublic T autoAttributeNamespace(boolean enabled)
enabled - true for enabled *default: true*public T setBaseNamespace(String namespace, Builder.AppliesTo which)
namespace - The namespacewhich - Should the namespace apply to element, attributes or bothpublic T convertComplexElementsWithOnlyAttributesAndSimpleTypeChildrenToPredicate(boolean enabled)
enabled - true for enabledpublic T autoTypeLiterals(boolean enabled)
enabled - true for enabledpublic Builder.Advanced.BetweenWithWildcard<T> insertPredicate(String predicate)
predicate - The string value of the predicate to insert between a give parent and child.public Builder.Advanced.BetweenWithWildcard<T> invertPredicate(String predicate)
predicate - The fully URI of the predicate to be inverted.public T skipElement(String elementName)
elementName - The fully URI of the element.public T useElementAsPredicate(String elementName)
elementName - The fully URI of the element.public T forceMixedContent(String elementName)
elementName - The fully URI of the element.public CompositeId<T> compositeId(String elementName)
elementName - The fully URI of the element.public T uuidBasedIdInsteadOfBlankNodes(boolean enabled)
enabled - true for enabledpublic T setDatatype(String element, DataType datatype)
element - Full URI of elementdatatype - Datatype to use. A string when using getAdvancedBuilderStream(), RDFDatatype for Jena and IRI for Sesame.public T addComplexElementTransformAtEndOfElement(String element, ComplexClassTransform transform)
element - Full URI of elementtransform - Function that can transform an Elementpublic T addComplexElementTransformAtStartOfElement(String element, ComplexClassTransform transform)
element - Full URI of elementtransform - Function that can transform an Elementpublic T resolveAsQnameInAttributeValue(boolean enabled)
enabled - true for enabledpublic T xsiTypeSupport(boolean enabled)
enabled - true for enabledpublic T overrideNamespace(String namespace)
namespace - Override all namespaces with this namespacepublic T renameElement(String elementFrom, String to)
elementFrom - The full URI of the element in the XML fileto - The new full URIpublic T renameElement(no.acando.xmltordf.Builder.XmlPath path,
String to)
path - The path, where the last element is the one to rename. Create a path with Builder.createPath("", "", ...)to - The new full URIpublic T renameElement(String elementFrom, StringTransformTwoValue transform)
elementFrom - The full URI of the element in the XML filetransform - a function that takes the namespace and element name as attributes and returns a new string.public T simpleTypePolicy(SimpleTypePolicy policy)
policy - Either SimpleTypePolicy.compact or SimpleTypePolicy.expandpublic T addTransformationForAttributeValue(String elementName, String attributeName, StringTransform transform)
elementName - The element name (full URI)attributeName - The attribute name (full URI)transform - A function for transforming the value. Eg v -> v.toUpperCase()Copyright © 2016. All rights reserved.