public class TypeInferrer extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.xmlbeans.XmlAnySimpleType |
expandTypeForValue(String value,
org.apache.xmlbeans.XmlAnySimpleType baseType)
Given a value and a type, a new type will be returned that validates
values for both the given type, and the new value.
|
static org.apache.xmlbeans.XmlAnySimpleType |
getBlankType()
Get the XmlAnySimpleType that describes a simple value that is empty.
|
static org.apache.xmlbeans.XmlAnySimpleType |
getType(String typeName)
Get the instance of the XmlAnySimpleType with the type xs:
|
static org.apache.xmlbeans.XmlAnySimpleType |
inferSimpleType(String value)
Given a simple value, infers the type of the value.
|
static boolean |
validateSimpleType(String value,
org.apache.xmlbeans.XmlAnySimpleType type)
Validates a string against an XmlAnySimpleType.
|
public static org.apache.xmlbeans.XmlAnySimpleType getType(String typeName)
typeName
- public static org.apache.xmlbeans.XmlAnySimpleType getBlankType()
public static org.apache.xmlbeans.XmlAnySimpleType expandTypeForValue(String value, org.apache.xmlbeans.XmlAnySimpleType baseType)
value
- The new value to expand the type for.baseType
- The type to be expanded.public static org.apache.xmlbeans.XmlAnySimpleType inferSimpleType(String value)
value
- The value to assign a type to.public static boolean validateSimpleType(String value, org.apache.xmlbeans.XmlAnySimpleType type)
value
- The value to validate.type
- The XmlAnySimpleType to validate against.Copyright © 2019. All Rights Reserved.