Module com.sun.xml.bind
Class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.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 org.glassfish.jaxb.core.v2.model.core.NonElement
ANYTYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuiltinLeafInfoImpl(TypeT type, QName... typeNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Element<TypeT,ClassDeclT>asElement()Deprecated.always return null at this level.booleancanBeReferencedByIDREF()Deprecated.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.QNamegetElementName()Deprecated.always return null at this level.LocationgetLocation()TypeTgetType()A reference to the representation of the type.QNamegetTypeName()QName[]getTypeNames()Returns all the type names recognized by this bean info.LocatablegetUpstream()booleanisElement()Deprecated.always return false at this level.booleanisSimpleType()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.core.BuiltinLeafInfo
getTypeName
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
getLocation, getUpstream
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.core.NonElement
isSimpleType
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
-
-
-
-
Method Detail
-
getTypeNames
public final QName[] 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.- Specified by:
isElementin interfaceMaybeElement<TypeT,ClassDeclT>
-
getElementName
public final QName getElementName()
Deprecated.always return null at this level.- Specified by:
getElementNamein interfaceMaybeElement<TypeT,ClassDeclT>
-
asElement
public final Element<TypeT,ClassDeclT> asElement()
Deprecated.always return null at this level.- Specified by:
asElementin interfaceMaybeElement<TypeT,ClassDeclT>
-
createLeaves
public static <TypeT,ClassDeclT> Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>> createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
Creates all theBuiltinLeafInfoImpls as specified in the spec.LeafInfos are all defined by the spec.
-
getType
public TypeT 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
public QName getTypeName()
- Specified by:
getTypeNamein interfaceNonElement<TypeT,ClassDeclT>
-
getUpstream
public Locatable getUpstream()
- Specified by:
getUpstreamin interfaceLocatable
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceLocatable
-
isSimpleType
public boolean isSimpleType()
- Specified by:
isSimpleTypein interfaceNonElement<TypeT,ClassDeclT>
-
-