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>
AttributePropertyInfo for the compiler.| Modifier and Type | Field | Description |
|---|---|---|
protected TypeUse |
type |
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization| Constructor | Description |
|---|---|
CAttributePropertyInfo(java.lang.String name,
XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator locator,
javax.xml.namespace.QName attName,
TypeUse type,
javax.xml.namespace.QName typeName,
boolean required) |
| Modifier and Type | Method | Description |
|---|---|---|
<V> V |
accept(CPropertyVisitor<V> visitor) |
|
<R,P> R |
accept(CPropertyVisitor2<R,P> visitor,
P p) |
|
CAdapter |
getAdapter() |
|
javax.activation.MimeType |
getExpectedMimeType() |
|
javax.xml.namespace.QName |
getSchemaType() |
|
com.sun.tools.xjc.model.CSingleTypePropertyInfo |
getSource() |
|
CNonElement |
getTarget() |
|
javax.xml.namespace.QName |
getXmlName() |
|
com.sun.xml.bind.v2.model.core.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.
|
com.sun.xml.bind.v2.model.core.PropertyKind |
kind() |
|
java.util.List<? extends CTypeInfo> |
ref() |
hasAnnotation, readAnnotationgetAdapter, getTargetcollectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, needsExplicitTypeName, parent, readAnnotation, setNameprotected final TypeUse type
public CAttributePropertyInfo(java.lang.String name,
XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator locator,
javax.xml.namespace.QName attName,
TypeUse type,
@Nullable
javax.xml.namespace.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()
public javax.xml.namespace.QName getXmlName()
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 com.sun.xml.bind.v2.model.core.PropertyKind kind()
public javax.xml.namespace.QName getSchemaType()
public final com.sun.xml.bind.v2.model.core.ID id()
public final javax.activation.MimeType getExpectedMimeType()
public final java.util.List<? extends CTypeInfo> ref()
ref in class CPropertyInfopublic final CNonElement getTarget()
public final CAdapter getAdapter()
getAdapter in class CPropertyInfopublic final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
Copyright © 2017 Oracle Corporation. All rights reserved.