Top Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.impl

pack-priv abstract Class LeafInfoImpl<TypeT, ClassDeclT>

extends Object
implements LeafInfo<TypeT, ClassDeclT>, Location
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.runtime.Location, org.glassfish.jaxb.core.v2.model.core.LeafInfo, org.glassfish.jaxb.core.v2.model.core.MaybeElement, org.glassfish.jaxb.core.v2.model.core.NonElement, org.glassfish.jaxb.core.v2.model.core.TypeInfo, org.glassfish.jaxb.core.v2.model.annotation.Locatable
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.impl.BuiltinLeafInfoImpl
Imports
org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.model.core.LeafInfo, org.glassfish.jaxb.core.v2.runtime.Location, javax.xml.namespace.QName

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final TypeT
private final QName
typeName

Can be null for anonymous types.

Constructor Summary

AccessConstructor and Description
protected
LeafInfoImpl(TypeT type, QName typeName)

Method Summary

Modifier and TypeMethod and Description
public final boolean
canBeReferencedByIDREF()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.canBeReferencedByIDREF.

Deprecated why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

public Location
getLocation()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Gets the location object that this object points to.

public TypeT
getType()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

A reference to the representation of the type.

public QName
getTypeName()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Gets the primary XML type ANYTYPE_NAME of the class.

public Locatable
public boolean
isSimpleType()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Returns true if this maps to text in XML, without any attribute nor child elements.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

typeback to summary
private final TypeT type
typeNameback to summary
private final QName typeName

Can be null for anonymous types.

Constructor Detail

LeafInfoImplback to summary
protected LeafInfoImpl(TypeT type, QName typeName)

Method Detail

canBeReferencedByIDREFback to summary
public final boolean canBeReferencedByIDREF()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.canBeReferencedByIDREF.

Deprecated

why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

Annotations
@Override
@Deprecated
getLocationback to summary
public Location getLocation()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Doc from org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Gets the location object that this object points to. This operation could be inefficient and costly.

Annotations
@Override
getTypeback to summary
public TypeT getType()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

A reference to the representation of the type.

Annotations
@Override
getTypeNameback to summary
public QName getTypeName()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Gets 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.

Annotations
@Override
getUpstreamback to summary
public Locatable getUpstream()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Doc from org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Gets the upstream Location information.

Annotations
@Override
isSimpleTypeback to summary
public boolean isSimpleType()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Returns true if this maps to text in XML, without any attribute nor child elements.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Doc from org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Annotations
@Override