com.sun.xml.bind.v2.model.impl
Class RuntimeBuiltinLeafInfoImpl<T>
java.lang.Object
com.sun.xml.bind.v2.model.impl.LeafInfoImpl<TypeT,ClassDeclT>
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl<java.lang.reflect.Type,java.lang.Class>
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl<T>
- All Implemented Interfaces:
- Locatable, BuiltinLeafInfo<java.lang.reflect.Type,java.lang.Class>, LeafInfo<java.lang.reflect.Type,java.lang.Class>, MaybeElement<java.lang.reflect.Type,java.lang.Class>, NonElement<java.lang.reflect.Type,java.lang.Class>, TypeInfo<java.lang.reflect.Type,java.lang.Class>, RuntimeBuiltinLeafInfo, RuntimeLeafInfo, RuntimeNonElement, RuntimeTypeInfo, Location, Transducer<T>
public abstract class RuntimeBuiltinLeafInfoImpl<T>
- extends BuiltinLeafInfoImpl<java.lang.reflect.Type,java.lang.Class>
- implements RuntimeBuiltinLeafInfo, Transducer<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LEAVES
public static final java.util.Map<java.lang.reflect.Type,RuntimeBuiltinLeafInfoImpl<?>> LEAVES
- All instances of
RuntimeBuiltinLeafInfoImpl
s keyed by their type.
STRING
public static final RuntimeBuiltinLeafInfoImpl<java.lang.String> STRING
builtinBeanInfos
public static final RuntimeBuiltinLeafInfoImpl<?>[] builtinBeanInfos
- List of all
RuntimeBuiltinLeafInfoImpl
s.
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".
getClazz
public final java.lang.Class getClazz()
- Description copied from interface:
RuntimeLeafInfo
- The same as
TypeInfo.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.
- Specified by:
getClazz
in interface RuntimeLeafInfo
getTransducer
public final Transducer<T> getTransducer()
- Description copied from interface:
RuntimeLeafInfo
- This method doesn't take the reference properties defined on
RuntimeNonElementRef
into account (such as ID-ness.)
- Specified by:
getTransducer
in interface RuntimeLeafInfo
- Specified by:
getTransducer
in interface RuntimeNonElement
- Returns:
- always non-null.
- See Also:
RuntimeNonElementRef.getTransducer()
useNamespace
public boolean useNamespace()
- Description copied from interface:
Transducer
- If true, this
Transducer
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.
- Specified by:
useNamespace
in interface Transducer<T>
isDefault
public final boolean isDefault()
- Description copied from interface:
Transducer
- If this
Transducer
is the default transducer for the ValueT
,
this method returns true.
Used exclusively by OptimizedTransducedAccessorFactory.get(RuntimePropertyInfo)
- Specified by:
isDefault
in interface Transducer<T>
declareNamespace
public void declareNamespace(T o,
XMLSerializer w)
throws AccessorException
- Description copied from interface:
Transducer
- Declares the namespace URIs used in the given value to
w
.
- Specified by:
declareNamespace
in interface Transducer<T>
- Parameters:
o
- never be null.w
- may be null if !{@link #useNamespace()}
.
- Throws:
AccessorException