public abstract class RuntimeBuiltinLeafInfoImpl<T> extends BuiltinLeafInfoImpl<Type,Class> implements RuntimeBuiltinLeafInfo, Transducer<T>
BuiltinLeafInfoImpl with a support for runtime.
In particular this class defines Transducers for the built-in types.
| Modifier and Type | Field and Description |
|---|---|
static List<RuntimeBuiltinLeafInfoImpl<?>> |
builtinBeanInfos
List of all
RuntimeBuiltinLeafInfoImpls. |
static Map<Type,RuntimeBuiltinLeafInfoImpl<?>> |
LEAVES
All instances of
RuntimeBuiltinLeafInfoImpls keyed by their type. |
static String |
MAP_ANYURI_TO_URI |
static RuntimeBuiltinLeafInfoImpl<String> |
STRING |
static String |
USE_OLD_GMONTH_MAPPING |
ANYTYPE_NAME| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeReferencedByIDREF()
Deprecated.
why are you calling a method whose return value is always known?
|
void |
declareNamespace(T o,
XMLSerializer w)
Declares the namespace URIs used in the given value to
w. |
Class |
getClazz()
The same as
TypeInfo.getType() but returns the type as a Class. |
Location |
getLocation() |
Transducer |
getTransducer()
This method doesn't take the reference properties defined on
RuntimeNonElementRef into account (such as ID-ness.) |
TypeT |
getType()
A reference to the representation of the type.
|
QName |
getTypeName() |
QName |
getTypeName(T instance)
Transducers implicitly work against a single XML type,
but sometimes (most notably
XMLGregorianCalendar,
an instance may choose different XML types. |
Locatable |
getUpstream() |
boolean |
isDefault()
If this
Transducer is the default transducer for the ValueT,
this method returns true. |
boolean |
isSimpleType() |
String |
toString() |
boolean |
useNamespace()
If true, this
Transducer doesn't declare any namespace,
and therefore Transducer.declareNamespace(Object, XMLSerializer) is no-op. |
asElement, createLeaves, getElementName, getTypeNames, isElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypeNamegetTypeNamesasElement, getElementName, isElementisSimpleTypecanBeReferencedByIDREF, getTypegetLocation, getUpstreamparse, print, writeLeafElement, writeTextpublic static final Map<Type,RuntimeBuiltinLeafInfoImpl<?>> LEAVES
RuntimeBuiltinLeafInfoImpls keyed by their type.public static final RuntimeBuiltinLeafInfoImpl<String> STRING
public static final List<RuntimeBuiltinLeafInfoImpl<?>> builtinBeanInfos
RuntimeBuiltinLeafInfoImpls.
This corresponds to the built-in Java classes that are specified to be handled differently than ordinary classes. See table 8-2 "Mapping of Standard Java classes".
public static final String MAP_ANYURI_TO_URI
public static final String USE_OLD_GMONTH_MAPPING
public final Class getClazz()
RuntimeLeafInfoTypeInfo.getType() but returns the type as a Class.
Note that the returned Class object does not necessarily represents
a class declaration. It can be primitive types.
getClazz in interface RuntimeLeafInfopublic final Transducer getTransducer()
RuntimeLeafInfoRuntimeNonElementRef into account (such as ID-ness.)getTransducer in interface RuntimeLeafInfogetTransducer in interface RuntimeNonElementRuntimeNonElementRef.getTransducer()public boolean useNamespace()
TransducerTransducer doesn't declare any namespace,
and therefore Transducer.declareNamespace(Object, XMLSerializer) is no-op.
It also means that the Transducer.parse(CharSequence) method
won't use the context parameter.useNamespace in interface Transducer<T>public final boolean isDefault()
TransducerTransducer is the default transducer for the ValueT,
this method returns true.
Used exclusively by OptimizedTransducedAccessorFactory.get(RuntimePropertyInfo)isDefault in interface Transducer<T>public void declareNamespace(T o, XMLSerializer w) throws AccessorException
Transducerw.declareNamespace in interface Transducer<T>o - never be null.w - may be null if !{@link #useNamespace()}.AccessorExceptionpublic QName getTypeName(T instance)
TransducerXMLGregorianCalendar,
an instance may choose different XML types.getTypeName in interface Transducer<T>public TypeT getType()
getType in interface TypeInfo<TypeT,ClassDeclT>public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF in interface TypeInfo<TypeT,ClassDeclT>public QName getTypeName()
getTypeName in interface NonElement<TypeT,ClassDeclT>public Locatable getUpstream()
getUpstream in interface Locatablepublic Location getLocation()
getLocation in interface Locatablepublic boolean isSimpleType()
isSimpleType in interface NonElement<TypeT,ClassDeclT>Copyright © 2015 Oracle Corporation. All Rights Reserved.