AV
- type of attribute values created by this factorypublic abstract static class StringParseableValue.Factory<AV extends AttributeValue> extends SimpleValue.BaseFactory<AV>
Serializable
content without any extra XML attributes.instanceDatatype
AUTHZFORCE_EXTENSION_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
Factory(AttributeDatatype<AV> datatype)
Creates a datatype factory from the Java datatype implementation class and datatype identifier
|
Modifier and Type | Method and Description |
---|---|
abstract AV |
getInstance(Serializable value)
Creates attribute value from a singleton value and possibly extra XML attributes
|
AV |
getInstance(Serializable content,
Map<QName,String> otherXmlAttributes,
net.sf.saxon.s9api.XPathCompiler xPathCompiler)
Creates attribute value from a singleton value and possibly extra XML attributes
|
abstract AV |
parse(String val)
Creates attribute value from string representation
|
getInstance, getSupportedInputTypes, newInvalidInputTypeException
equals, getDatatype, getId, hashCode, toString
protected Factory(AttributeDatatype<AV> datatype)
public abstract AV parse(String val) throws IllegalArgumentException
val
- string representationSCOF_AV
IllegalArgumentException
- val not valid for this factorypublic abstract AV getInstance(Serializable value) throws IllegalArgumentException
value
- attribute value, null if original content is empty (e.g. list of JAXB (mixed) content elements is empty)F_AV
IllegalArgumentException
- if value is not valid/parseable for this factorypublic final AV getInstance(Serializable content, Map<QName,String> otherXmlAttributes, net.sf.saxon.s9api.XPathCompiler xPathCompiler) throws IllegalArgumentException
SimpleValue.BaseFactory
getInstance
in class SimpleValue.BaseFactory<AV extends AttributeValue>
content
- input raw value, null if original content is empty (e.g. list of JAXB (mixed) content elements is empty)otherXmlAttributes
- other XML attributes (mandatory); if always empty, use StringContentOnlyValueFactory
instead)xPathCompiler
- (optional) XPath compiler for compiling any XPath expression in the value, e.g. xpathExpression datatypeF_AV
IllegalArgumentException
Copyright © 2012–2020. All rights reserved.