Package com.sun.xml.bind.v2.model.impl
Class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
java.lang.Object
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl<TypeT,ClassDeclT>
- All Implemented Interfaces:
Locatable,BuiltinLeafInfo<TypeT,,ClassDeclT> LeafInfo<TypeT,,ClassDeclT> MaybeElement<TypeT,,ClassDeclT> NonElement<TypeT,,ClassDeclT> TypeInfo<TypeT,,ClassDeclT> Location
- Direct Known Subclasses:
RuntimeBuiltinLeafInfoImpl
public class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
extends Object
implements BuiltinLeafInfo<TypeT,ClassDeclT>
JAXB spec designates a few Java classes to be mapped to XML types
in a way that ignores restrictions placed on user-defined beans.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Element<TypeT,ClassDeclT> Deprecated.always return null at this level.final booleanDeprecated.why are you calling a method whose return value is always known?static <TypeT,ClassDeclT>
Map<TypeT,BuiltinLeafInfoImpl<TypeT, ClassDeclT>> createLeaves(Navigator<TypeT, ClassDeclT, ?, ?> nav) Creates all theBuiltinLeafInfoImpls as specified in the spec.final QNameDeprecated.always return null at this level.Gets the location object that this object points to.getType()A reference to the representation of the type.Gets the primary XML type ANYTYPE_NAME of the class.final QName[]Returns all the type names recognized by this bean info.Gets the upstreamLocationinformation.final booleanDeprecated.always return false at this level.booleanReturns true if thisNonElementmaps to text in XML, without any attribute nor child elements.toString()Returns a human-readable string that represents this position.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.xml.bind.v2.model.core.BuiltinLeafInfo
getTypeNameMethods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstreamMethods inherited from interface com.sun.xml.bind.v2.model.core.NonElement
isSimpleTypeMethods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
-
Constructor Details
-
BuiltinLeafInfoImpl
-
-
Method Details
-
getTypeNames
Returns all the type names recognized by this bean info.- Returns:
- do not modify the returned array.
-
isElement
public final boolean isElement()Deprecated.always return false at this level.Description copied from interface:MaybeElementIf the class is bound to an element, return true.Note that when this is true, the class is bound to both an element and a type.
- Specified by:
isElementin interfaceMaybeElement<TypeT,ClassDeclT>
-
getElementName
Deprecated.always return null at this level.Description copied from interface:MaybeElementGets the element name of the class, if the class is bound to an element.- Specified by:
getElementNamein interfaceMaybeElement<TypeT,ClassDeclT> - Returns:
- non-null iff
MaybeElement.isElement().
-
asElement
Deprecated.always return null at this level.Description copied from interface:MaybeElement- Specified by:
asElementin interfaceMaybeElement<TypeT,ClassDeclT> - Returns:
- null if
MaybeElement.isElement()==false, non-null ifMaybeElement.isElement()==true.
-
getType
A reference to the representation of the type. -
canBeReferencedByIDREF
public final boolean canBeReferencedByIDREF()Deprecated.why are you calling a method whose return value is always known?Leaf-type cannot be referenced from IDREF.- Specified by:
canBeReferencedByIDREFin interfaceTypeInfo<TypeT,ClassDeclT>
-
getTypeName
Description copied from interface:NonElementGets the primary XML type ANYTYPE_NAME of the class.A Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.
- Specified by:
getTypeNamein interfaceNonElement<TypeT,ClassDeclT> - Returns:
- null if the object doesn't have an explicit type ANYTYPE_NAME (AKA anonymous.)
-
getUpstream
Description copied from interface:LocatableGets the upstreamLocationinformation.- Specified by:
getUpstreamin interfaceLocatable- Returns:
- can be null.
-
getLocation
Description copied from interface:LocatableGets the location object that this object points to. This operation could be inefficient and costly.- Specified by:
getLocationin interfaceLocatable
-
isSimpleType
public boolean isSimpleType()Description copied from interface:NonElementReturns true if thisNonElementmaps to text in XML, without any attribute nor child elements.- Specified by:
isSimpleTypein interfaceNonElement<TypeT,ClassDeclT>
-
toString
Description copied from interface:LocationReturns a human-readable string that represents this position.
-