Package com.sun.tools.xjc.model
Class CAttributePropertyInfo
- java.lang.Object
-
- com.sun.tools.xjc.model.CPropertyInfo
-
- com.sun.tools.xjc.model.CAttributePropertyInfo
-
- All Implemented Interfaces:
CCustomizable,com.sun.xml.bind.v2.model.annotation.AnnotationSource,com.sun.xml.bind.v2.model.core.AttributePropertyInfo<NType,NClass>,com.sun.xml.bind.v2.model.core.NonElementRef<NType,NClass>,com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
public final class CAttributePropertyInfo extends CPropertyInfo implements com.sun.xml.bind.v2.model.core.AttributePropertyInfo<NType,NClass>
AttributePropertyInfofor the compiler.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeUsetype-
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization
-
-
Constructor Summary
Constructors Constructor Description CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, QName typeName, boolean required)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Vaccept(CPropertyVisitor<V> visitor)<R,P>
Raccept(CPropertyVisitor2<R,P> visitor, P p)CAdaptergetAdapter()MimeTypegetExpectedMimeType()QNamegetSchemaType()com.sun.tools.xjc.model.CSingleTypePropertyInfogetSource()CNonElementgetTarget()QNamegetXmlName()com.sun.xml.bind.v2.model.core.IDid()booleanisOptionalPrimitive()Returns true if this property needs to represent null just for the purpose of representing an absence of the property.booleanisRequired()booleanisUnboxable()An optional attribute can never be unboxable, for we need null to represent the absence.com.sun.xml.bind.v2.model.core.PropertyKindkind()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.annotation.AnnotationSource
hasAnnotation, readAnnotation
-
-
-
-
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()
-
getXmlName
public QName getXmlName()
-
isUnboxable
public boolean isUnboxable()
An optional attribute can never be unboxable, for we need null to represent the absence.- Overrides:
isUnboxablein classCPropertyInfo
-
isOptionalPrimitive
public boolean isOptionalPrimitive()
Description copied from class:CPropertyInfoReturns true if this property needs to represent null just for the purpose of representing an absence of the property.- Overrides:
isOptionalPrimitivein classCPropertyInfo
-
accept
public <V> V accept(CPropertyVisitor<V> visitor)
- Specified by:
acceptin classCPropertyInfo
-
accept
public <R,P> R accept(CPropertyVisitor2<R,P> visitor, P p)
- Specified by:
acceptin classCPropertyInfo
-
kind
public final com.sun.xml.bind.v2.model.core.PropertyKind kind()
-
getSchemaType
public QName getSchemaType()
-
id
public final com.sun.xml.bind.v2.model.core.ID id()
-
getExpectedMimeType
public final MimeType getExpectedMimeType()
-
ref
public final List<? extends CTypeInfo> ref()
- Specified by:
refin interfacecom.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>- Specified by:
refin classCPropertyInfo
-
getTarget
public final CNonElement getTarget()
-
getAdapter
public final CAdapter getAdapter()
- Specified by:
getAdapterin interfacecom.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>- Specified by:
getAdapterin classCPropertyInfo
-
getSource
public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
-
-