public static class Builder.AdvancedWithBuffer<ResourceType,Datatype,T extends Builder.AdvancedWithBuffer<ResourceType,Datatype,T>> extends Builder.Advanced<ResourceType,Datatype,T>
Builder.Advanced.BetweenWithWildcard<TT>| Constructor and Description |
|---|
AdvancedWithBuffer() |
| Modifier and Type | Method and Description |
|---|---|
T |
addTransformationForAttributeValue(String elementName,
String attributeName,
StringTransform transform) |
T |
overrideNamespace(String namespace) |
T |
renameElement(no.acando.xmltordf.Builder.XmlPath path,
String to) |
T |
renameElement(String elementFrom,
String to) |
T |
renameElement(String elementFrom,
StringTransformTwoValue transform) |
T |
setBuffer(int size) |
T |
simpleTypePolicy(SimpleTypePolicy policy) |
addComplexElementTransformAtEndOfElement, addComplexElementTransformAtStartOfElement, autoAttributeNamespace, autoTypeLiterals, compositeId, convertComplexElementsWithOnlyAttributesAndSimpleTypeChildrenToPredicate, convertComplexElementsWithOnlyAttributesToPredicate, forceMixedContent, insertPredicate, invertPredicate, mapTextInAttributeToUri, mapTextInElementToUri, resolveAsQnameInAttributeValue, setBaseNamespace, setDatatype, skipElement, useElementAsPredicate, uuidBasedIdInsteadOfBlankNodes, xsiTypeSupportpublic T setBuffer(int size)
size - size of buffer *default: 1000*public 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.