|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl<java.lang.reflect.Type,java.lang.Class>
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl<T>
public abstract class RuntimeBuiltinLeafInfoImpl<T>
BuiltinLeafInfoImpl with a support for runtime.
In particular this class defines Transducers for the built-in types.
| Field Summary | |
|---|---|
static java.util.List<RuntimeBuiltinLeafInfoImpl<?>> |
builtinBeanInfos
List of all RuntimeBuiltinLeafInfoImpls. |
static java.util.Map<java.lang.reflect.Type,RuntimeBuiltinLeafInfoImpl<?>> |
LEAVES
All instances of RuntimeBuiltinLeafInfoImpls keyed by their type. |
static java.lang.String |
MAP_ANYURI_TO_URI
|
static RuntimeBuiltinLeafInfoImpl<java.lang.String> |
STRING
|
| Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
|---|
ANYTYPE_NAME |
| Method Summary | |
|---|---|
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. |
java.lang.Class |
getClazz()
The same as TypeInfo.getType() but returns the type as a Class. |
com.sun.xml.bind.v2.runtime.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. |
javax.xml.namespace.QName |
getTypeName()
|
javax.xml.namespace.QName |
getTypeName(T instance)
Transducers implicitly work against a single XML type, but sometimes (most notably XMLGregorianCalendar,
an instance may choose different XML types. |
com.sun.xml.bind.v2.model.annotation.Locatable |
getUpstream()
|
boolean |
isDefault()
If this Transducer is the default transducer for the ValueT,
this method returns true. |
boolean |
isSimpleType()
|
java.lang.String |
toString()
|
boolean |
useNamespace()
If true, this Transducer doesn't declare any namespace,
and therefore Transducer.declareNamespace(Object, XMLSerializer) is no-op. |
| Methods inherited from class com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl |
|---|
asElement, createLeaves, getElementName, getTypeNames, isElement |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.BuiltinLeafInfo |
|---|
getTypeName |
| Methods inherited from interface com.sun.xml.bind.v2.model.runtime.RuntimeLeafInfo |
|---|
getTypeNames |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.MaybeElement |
|---|
asElement, getElementName, isElement |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
|---|
isSimpleType |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo |
|---|
canBeReferencedByIDREF, getType |
| Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable |
|---|
getLocation, getUpstream |
| Methods inherited from interface com.sun.xml.bind.v2.runtime.Transducer |
|---|
parse, print, writeLeafElement, writeText |
| Field Detail |
|---|
public static final java.util.Map<java.lang.reflect.Type,RuntimeBuiltinLeafInfoImpl<?>> LEAVES
RuntimeBuiltinLeafInfoImpls keyed by their type.
public static final RuntimeBuiltinLeafInfoImpl<java.lang.String> STRING
public static final java.util.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 java.lang.String MAP_ANYURI_TO_URI
| Method Detail |
|---|
public final java.lang.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 javax.xml.namespace.QName getTypeName(T instance)
TransducerXMLGregorianCalendar,
an instance may choose different XML types.
getTypeName in interface Transducer<T>public TypeT getType()
getType in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>public javax.xml.namespace.QName getTypeName()
getTypeName in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>public com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
getUpstream in interface com.sun.xml.bind.v2.model.annotation.Locatablepublic com.sun.xml.bind.v2.runtime.Location getLocation()
getLocation in interface com.sun.xml.bind.v2.model.annotation.Locatablepublic boolean isSimpleType()
isSimpleType in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>public java.lang.String toString()
toString in interface com.sun.xml.bind.v2.runtime.LocationtoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||