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

pack-priv Class TypeRefImpl<TypeT, ClassDeclT>

extends Object
implements TypeRef<TypeT, ClassDeclT>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.core.TypeRef, org.glassfish.jaxb.core.v2.model.core.NonElementRef
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.impl.RuntimeTypeRefImpl
Imports
org.glassfish.jaxb.core.v2.model.core.NonElement, .PropertyInfo, .TypeRef, javax.xml.namespace.QName

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private String
private final QName
private final boolean
protected final ElementPropertyInfoImpl<TypeT, ClassDeclT, ?, ?>
private NonElement<TypeT, ClassDeclT>
private final TypeT

Constructor Summary

AccessConstructor and Description
public
TypeRefImpl(ElementPropertyInfoImpl<TypeT, ClassDeclT, ?, ?> owner, QName elementName, TypeT type, boolean isNillable, String defaultValue)

Method Summary

Modifier and TypeMethod and Description
private void
public String
getDefaultValue()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.getDefaultValue.

The default value for this element if any.

public PropertyInfo<TypeT, ClassDeclT>
getSource()

Implements org.glassfish.jaxb.core.v2.model.core.NonElementRef.getSource.

Gets the property which is the source of this reference.

public QName
getTagName()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.getTagName.

The associated element name.

public NonElement<TypeT, ClassDeclT>
public boolean
isNillable()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.isNillable.

Returns true if this element is nillable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultValueback to summary
private String defaultValue
elementNameback to summary
private final QName elementName
isNillableback to summary
private final boolean isNillable
ownerback to summary
protected final ElementPropertyInfoImpl<TypeT, ClassDeclT, ?, ?> owner
refback to summary
private NonElement<TypeT, ClassDeclT> ref
typeback to summary
private final TypeT type

Constructor Detail

TypeRefImplback to summary
public TypeRefImpl(ElementPropertyInfoImpl<TypeT, ClassDeclT, ?, ?> owner, QName elementName, TypeT type, boolean isNillable, String defaultValue)

Method Detail

calcRefback to summary
private void calcRef()
getDefaultValueback to summary
public String getDefaultValue()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.getDefaultValue.

Doc from org.glassfish.jaxb.core.v2.model.core.TypeRef.getDefaultValue.

The default value for this element if any. Otherwise null.

Annotations
@Override
getSourceback to summary
public PropertyInfo<TypeT, ClassDeclT> getSource()

Implements org.glassfish.jaxb.core.v2.model.core.NonElementRef.getSource.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElementRef.getSource.

Gets the property which is the source of this reference.

Annotations
@Override
getTagNameback to summary
public QName getTagName()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.getTagName.

Doc from org.glassfish.jaxb.core.v2.model.core.TypeRef.getTagName.

The associated element name.

Annotations
@Override
getTargetback to summary
public NonElement<TypeT, ClassDeclT> getTarget()

Implements org.glassfish.jaxb.core.v2.model.core.NonElementRef.getTarget.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElementRef.getTarget.

Target of the reference.

Annotations
@Override
isNillableback to summary
public boolean isNillable()

Implements org.glassfish.jaxb.core.v2.model.core.TypeRef.isNillable.

Doc from org.glassfish.jaxb.core.v2.model.core.TypeRef.isNillable.

Returns true if this element is nillable.

Annotations
@Override