Package gnu.kawa.xml
Class XStringType
- java.lang.Object
-
- gnu.bytecode.Type
-
- gnu.kawa.xml.XDataType
-
- gnu.kawa.xml.XStringType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gnu.bytecode.Type
Type.NeverReturns
-
-
Field Summary
Fields Modifier and Type Field Description static XStringType
ENTITYType
static XStringType
IDREFType
static XStringType
IDType
static XStringType
languageType
static XStringType
NameType
static XStringType
NCNameType
static XStringType
NMTOKENType
static XStringType
normalizedStringType
static XStringType
tokenType
-
Fields inherited from class gnu.kawa.xml.XDataType
ANY_ATOMIC_TYPE_CODE, ANY_SIMPLE_TYPE_CODE, ANY_URI_TYPE_CODE, anyAtomicType, anySimpleType, anyURIType, BASE64_BINARY_TYPE_CODE, base64BinaryType, BOOLEAN_TYPE_CODE, booleanType, BYTE_TYPE_CODE, DATE_TIME_TYPE_CODE, DATE_TYPE_CODE, DAY_TIME_DURATION_TYPE_CODE, dayTimeDurationType, DECIMAL_ONE, DECIMAL_TYPE_CODE, decimalType, DOUBLE_ONE, DOUBLE_TYPE_CODE, DOUBLE_ZERO, doubleType, DURATION_TYPE_CODE, durationType, ENTITY_TYPE_CODE, FLOAT_ONE, FLOAT_TYPE_CODE, FLOAT_ZERO, floatType, G_DAY_TYPE_CODE, G_MONTH_DAY_TYPE_CODE, G_MONTH_TYPE_CODE, G_YEAR_MONTH_TYPE_CODE, G_YEAR_TYPE_CODE, HEX_BINARY_TYPE_CODE, hexBinaryType, ID_TYPE_CODE, IDREF_TYPE_CODE, INT_TYPE_CODE, INTEGER_TYPE_CODE, LANGUAGE_TYPE_CODE, LONG_TYPE_CODE, NAME_TYPE_CODE, NCNAME_TYPE_CODE, NEGATIVE_INTEGER_TYPE_CODE, NMTOKEN_TYPE_CODE, NON_POSITIVE_INTEGER_TYPE_CODE, NONNEGATIVE_INTEGER_TYPE_CODE, NORMALIZED_STRING_TYPE_CODE, NOTATION_TYPE_CODE, NotationType, POSITIVE_INTEGER_TYPE_CODE, QNAME_TYPE_CODE, SHORT_TYPE_CODE, STRING_TYPE_CODE, stringStringType, stringType, TIME_TYPE_CODE, TOKEN_TYPE_CODE, UNSIGNED_BYTE_TYPE_CODE, UNSIGNED_INT_TYPE_CODE, UNSIGNED_LONG_TYPE_CODE, UNSIGNED_SHORT_TYPE_CODE, UNTYPED_ATOMIC_TYPE_CODE, UNTYPED_TYPE_CODE, untypedAtomicType, untypedType, YEAR_MONTH_DURATION_TYPE_CODE, yearMonthDurationType
-
Fields inherited from class gnu.bytecode.Type
boolean_ctype, boolean_type, booleanValue_method, byte_type, byteType, char_type, charType, clone_method, double_type, doubleValue_method, errorType, float_type, floatValue_method, int_type, intType, intValue_method, java_lang_Class_type, javalangannotationAnnotationType, javalangBooleanType, javalangCharacterType, javalangClassType, javalanginvokeMethodHandleType, javalangNumberType, javalangObjectType, javalangStringType, javalangThrowableType, long_type, longType, longValue_method, neverReturnsType, nullType, number_type, objectType, pointer_type, reflectClass, short_type, shortType, string_type, throwable_type, toString_method, tostring_type, toStringType, typeArray0, void_type, voidType
-
-
Constructor Summary
Constructors Constructor Description XStringType(String name, XDataType base, int typeCode, String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cast(Object value)
boolean
isInstance(Object obj)
static XString
makeNCName(String value)
String
matches(String value)
Check if the String matches the restrictions on this type.Object
valueOf(String value)
-
Methods inherited from class gnu.kawa.xml.XDataType
castable, coerceFromObject, compare, convertValue, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, emitTestIf, getConstructor, getImplementationType, getReflectClass, makeDouble, makeFloat, print, toString
-
Methods inherited from class gnu.bytecode.Type
coerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getMaybeGenericSignature, getName, getRawType, getRealType, getSignature, getSize, getSizeInWords, getType, hashCode, isCompatibleWithValue, isCompatibleWithValue, isExisting, isInterface, isMoreSpecific, isSame, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSharedType, lowestCommonSuperType, make, make, printSignature, promote, promoteIfUnsigned, registerTypeForClass, setGenericSignature, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
Methods inherited from interface gnu.expr.TypeValue
encodeType
-
-
-
-
Field Detail
-
normalizedStringType
public static final XStringType normalizedStringType
-
tokenType
public static final XStringType tokenType
-
languageType
public static final XStringType languageType
-
NMTOKENType
public static final XStringType NMTOKENType
-
NameType
public static final XStringType NameType
-
NCNameType
public static final XStringType NCNameType
-
IDType
public static final XStringType IDType
-
IDREFType
public static final XStringType IDREFType
-
ENTITYType
public static final XStringType ENTITYType
-
-
Method Detail
-
isInstance
public boolean isInstance(Object obj)
- Overrides:
isInstance
in classXDataType
-
matches
public String matches(String value)
Check if the String matches the restrictions on this type. Assumes any normalization has been done.- Returns:
- null on success or an error message otherwise.
-
-