Top Description Fields Constructors Methods
com.sun.tools.xjc.model

public final Class CAttributePropertyInfo

extends CSingleTypePropertyInfo
implements AttributePropertyInfo<NType, NClass>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo, org.glassfish.jaxb.core.v2.model.core.NonElementRef, org.glassfish.jaxb.core.v2.model.core.PropertyInfo, org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource
Imports
javax.xml.namespace.QName, com.sun.tools.xjc.model.nav.NClass, .NType, org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo, .PropertyKind, com.sun.xml.xsom.XSComponent, com.sun.istack.Nullable, org.xml.sax.Locator

AttributePropertyInfo for the compiler.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final QName
private final boolean
Inherited from com.sun.tools.xjc.model.CSingleTypePropertyInfo:
type

Constructor Summary

AccessConstructor and Description
public
CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse
Represents the bound type of this attribute.
type
,
QName
XML Schema type name of this attribute. Optional for other schema languages.
typeName
,
boolean required)

Method Summary

Modifier and TypeMethod and Description
public <V> V
public <R, P> R
public QName
public boolean
isOptionalPrimitive()

Overrides com.sun.tools.xjc.model.CPropertyInfo.isOptionalPrimitive.

Returns true if this property needs to represent null just for the purpose of representing an absence of the property.

public boolean
isRequired()

Implements org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo.isRequired.

Returns true if this attribute is mandatory.

public boolean
isUnboxable()

Overrides com.sun.tools.xjc.model.CPropertyInfo.isUnboxable.

An optional attribute can never be unboxable, for we need null to represent the absence.

public PropertyKind
kind()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.kind.

Gets the kind of this property.

Inherited from com.sun.tools.xjc.model.CSingleTypePropertyInfo:
getAdaptergetExpectedMimeTypegetSchemaTypegetSourcegetTargetidref

Field Detail

attNameback to summary
private final QName attName
isRequiredback to summary
private final boolean isRequired

Constructor Detail

CAttributePropertyInfoback to summary
public CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, QName typeName, boolean required)
Parameters
type:TypeUse

Represents the bound type of this attribute.

typeName:QName

XML Schema type name of this attribute. Optional for other schema languages.

Method Detail

acceptback to summary
public <V> V accept(CPropertyVisitor<V> visitor)

Implements abstract com.sun.tools.xjc.model.CPropertyInfo.accept.

Annotations
@Override
acceptback to summary
public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p)

Implements abstract com.sun.tools.xjc.model.CPropertyInfo.accept.

Annotations
@Override
getXmlNameback to summary
public QName getXmlName()

Implements org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo.getXmlName.

Doc from org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo.getXmlName.

Gets the attribute name.

Annotations
@Override
isOptionalPrimitiveback to summary
public boolean isOptionalPrimitive()

Overrides com.sun.tools.xjc.model.CPropertyInfo.isOptionalPrimitive.

Doc from com.sun.tools.xjc.model.CPropertyInfo.isOptionalPrimitive.

Returns true if this property needs to represent null just for the purpose of representing an absence of the property.

Annotations
@Override
isRequiredback to summary
public boolean isRequired()

Implements org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo.isRequired.

Doc from org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo.isRequired.

Returns true if this attribute is mandatory.

Annotations
@Override
isUnboxableback to summary
public boolean isUnboxable()

Overrides com.sun.tools.xjc.model.CPropertyInfo.isUnboxable.

An optional attribute can never be unboxable, for we need null to represent the absence.

Annotations
@Override
kindback to summary
public PropertyKind kind()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.kind.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.kind.

Gets the kind of this property.

Annotations
@Override