public final class CAttributePropertyInfo extends CPropertyInfo implements AttributePropertyInfo<NType,NClass>
AttributePropertyInfo for the compiler.| Modifier and Type | Field and Description |
|---|---|
protected TypeUse |
type |
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization| Constructor and Description |
|---|
CAttributePropertyInfo(String name,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
Locator locator,
QName attName,
TypeUse type,
QName typeName,
boolean required) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
accept(CPropertyVisitor<V> visitor) |
<R,P> R |
accept(CPropertyVisitor2<R,P> visitor,
P p) |
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() |
collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, needsExplicitTypeName, parent, readAnnotation, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdapter, getTargetdisplayName, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, parent, refhasAnnotation, readAnnotationgetSourceprotected final TypeUse type
public CAttributePropertyInfo(String name, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, @Nullable QName typeName, boolean required)
type - Represents the bound type of this attribute.typeName - XML Schema type name of this attribute. Optional for other schema languages.public boolean isRequired()
isRequired in interface AttributePropertyInfo<NType,NClass>public QName getXmlName()
getXmlName in interface AttributePropertyInfo<NType,NClass>public boolean isUnboxable()
isUnboxable in class CPropertyInfopublic boolean isOptionalPrimitive()
CPropertyInfoisOptionalPrimitive in class CPropertyInfopublic <V> V accept(CPropertyVisitor<V> visitor)
accept in class CPropertyInfopublic <R,P> R accept(CPropertyVisitor2<R,P> visitor, P p)
accept in class CPropertyInfopublic final PropertyKind kind()
kind in interface PropertyInfo<NType,NClass>public QName getSchemaType()
public final ID id()
public final MimeType getExpectedMimeType()
public final List<? extends CTypeInfo> ref()
ref in interface PropertyInfo<NType,NClass>ref in class CPropertyInfopublic final CNonElement getTarget()
public final CAdapter getAdapter()
getAdapter in interface PropertyInfo<NType,NClass>getAdapter in class CPropertyInfopublic final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
Copyright © 2015 Oracle Corporation. All Rights Reserved.