| Constructor and Description |
|---|
Fast() |
| Modifier and Type | Method and Description |
|---|---|
T |
addTransformationForAttributeValue(String elementName,
String attributeName,
StringTransform transform) |
XmlToRdfFast |
build() |
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 |
simpleTypePolicy(SimpleTypePolicy policy) |
public XmlToRdfFast build()
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.