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

pack-priv Class AnyTypeImpl<T, C>

extends Object
implements NonElement<T, C>
Class Inheritance
All Implemented Interfaces
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.RuntimeAnyTypeImpl
Imports
org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.model.core.NonElement, .TypeInfo, org.glassfish.jaxb.core.v2.model.nav.Navigator, org.glassfish.jaxb.core.v2.runtime.Location, jakarta.xml.bind.annotation.XmlIDREF, javax.xml.namespace.QName

TypeInfo implementation for xs:anyType.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final T

Constructor Summary

AccessConstructor and Description
public
AnyTypeImpl(Navigator<T, C, ?, ?> nav)

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?

xs:anyType can be referenced from XmlIDREF.

public Location
getLocation()

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

Gets the location object that this object points to.

public T
getType()

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

Gets the underlying Java type that object represents.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeback to summary
private final T type

Constructor Detail

AnyTypeImplback to summary
public AnyTypeImpl(Navigator<T, C, ?, ?> nav)

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?

xs:anyType can be referenced from XmlIDREF.

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 T getType()

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

Doc from org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Gets the underlying Java type that object represents.

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