com.sun.tools.xjc.model
Class CAttributePropertyInfo

java.lang.Object
  extended by com.sun.tools.xjc.model.CPropertyInfo
      extended by com.sun.tools.xjc.model.CAttributePropertyInfo
All Implemented Interfaces:
CCustomizable, AnnotationSource, AttributePropertyInfo<NType,NClass>, NonElementRef<NType,NClass>, PropertyInfo<NType,NClass>

public final class CAttributePropertyInfo
extends CPropertyInfo
implements AttributePropertyInfo<NType,NClass>

AttributePropertyInfo for the compiler.

Author:
Kohsuke Kawaguchi

Field Summary
protected  TypeUse type
           
 
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization
 
Constructor Summary
CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, QName typeName, boolean required)
           
 
Method Summary
<V> V
accept(CPropertyVisitor<V> visitor)
           
 CAdapter getAdapter()
           
 MimeType getExpectedMimeType()
           
 QName getSchemaType()
           
 com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
           
 CNonElement getTarget()
           
 QName getXmlName()
           
 ID id()
           
 boolean isOptionalPrimitive()
          Returns true if this property needs to represent null just for the purpose of representing an absence of the property.
 boolean isRequired()
           
 boolean isUnboxable()
          An optional attribute can never be unboxable, for we need null to represent the absence.
 PropertyKind kind()
           
 List<? extends CTypeInfo> ref()
           
 
Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo
collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, needsExplicitTypeName, parent, readAnnotation, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.AttributePropertyInfo
getAdapter, getTarget
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.PropertyInfo
displayName, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, parent, ref
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationSource
hasAnnotation, readAnnotation
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElementRef
getSource
 

Field Detail

type

protected final TypeUse type
Constructor Detail

CAttributePropertyInfo

public CAttributePropertyInfo(String name,
                              XSComponent source,
                              CCustomizations customizations,
                              Locator locator,
                              QName attName,
                              TypeUse type,
                              @Nullable
                              QName typeName,
                              boolean required)
Parameters:
type - Represents the bound type of this attribute.
typeName - XML Schema type name of this attribute. Optional for other schema languages.
Method Detail

isRequired

public boolean isRequired()
Specified by:
isRequired in interface AttributePropertyInfo<NType,NClass>

getXmlName

public QName getXmlName()
Specified by:
getXmlName in interface AttributePropertyInfo<NType,NClass>

isUnboxable

public boolean isUnboxable()
An optional attribute can never be unboxable, for we need null to represent the absence.

Overrides:
isUnboxable in class CPropertyInfo

isOptionalPrimitive

public boolean isOptionalPrimitive()
Description copied from class: CPropertyInfo
Returns true if this property needs to represent null just for the purpose of representing an absence of the property.

Overrides:
isOptionalPrimitive in class CPropertyInfo

accept

public <V> V accept(CPropertyVisitor<V> visitor)
Specified by:
accept in class CPropertyInfo

kind

public final PropertyKind kind()
Specified by:
kind in interface PropertyInfo<NType,NClass>

getSchemaType

public QName getSchemaType()

id

public final ID id()

getExpectedMimeType

public final MimeType getExpectedMimeType()

ref

public final List<? extends CTypeInfo> ref()
Specified by:
ref in interface PropertyInfo<NType,NClass>
Specified by:
ref in class CPropertyInfo

getTarget

public final CNonElement getTarget()

getAdapter

public final CAdapter getAdapter()
Specified by:
getAdapter in interface PropertyInfo<NType,NClass>
Specified by:
getAdapter in class CPropertyInfo

getSource

public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.