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()
Expected MIME type, if any.
|
QName |
getSchemaType()
The effective value of
XmlSchemaType annotation, if any. |
com.sun.tools.xjc.model.CSingleTypePropertyInfo |
getSource() |
CNonElement |
getTarget() |
QName |
getXmlName()
Gets the attribute name.
|
ID |
id()
Returns the IDness of the value of this element.
|
boolean |
isOptionalPrimitive()
Returns true if this property needs to represent null
just for the purpose of representing an absence of the property.
|
boolean |
isRequired()
Returns true if this attribute is mandatory.
|
boolean |
isUnboxable()
An optional attribute can never be unboxable,
for we need null to represent the absence.
|
PropertyKind |
kind()
Gets the kind of this property.
|
List<? extends CTypeInfo> |
ref()
List of
TypeInfos that this property references. |
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()
AttributePropertyInfoisRequired in interface AttributePropertyInfo<NType,NClass>public QName getXmlName()
AttributePropertyInfogetXmlName 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()
PropertyInfokind in interface PropertyInfo<NType,NClass>public QName getSchemaType()
PropertyInfoXmlSchemaType annotation, if any.
If the property doesn't have XmlSchemaType annotation,
this method returns null.
Since a type name is a property of a Java type, not a Java property,
A schema type name of a Java type should be primarily obtained
by using NonElement.getTypeName(). This method is to correctly
implement the ugly semantics of XmlSchemaType (namely
when this returns non-null, it overrides the type names of all types
that are in this property.)
public final ID id()
PropertyInfopublic final MimeType getExpectedMimeType()
PropertyInfopublic final List<? extends CTypeInfo> ref()
PropertyInfoTypeInfos that this property references.
This allows the caller to traverse the reference graph without
getting into the details of each different property type.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 © 2018 JBoss by Red Hat. All rights reserved.