|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.model.CPropertyInfo
com.sun.tools.xjc.model.CAttributePropertyInfo
public final class CAttributePropertyInfo
AttributePropertyInfo
for the compiler.
Field Summary | |
---|---|
protected TypeUse |
type
|
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo |
---|
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization |
Constructor Summary | |
---|---|
CAttributePropertyInfo(java.lang.String name,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator locator,
javax.xml.namespace.QName attName,
TypeUse type,
javax.xml.namespace.QName typeName,
boolean required)
|
Method Summary | ||
---|---|---|
|
accept(CPropertyVisitor<V> visitor)
|
|
CAdapter |
getAdapter()
|
|
javax.activation.MimeType |
getExpectedMimeType()
Expected MIME type, if any. |
|
javax.xml.namespace.QName |
getSchemaType()
The effective value of XmlSchemaType annotation, if any. |
|
com.sun.tools.xjc.model.CSingleTypePropertyInfo |
getSource()
|
|
CNonElement |
getTarget()
|
|
javax.xml.namespace.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 proeprty. |
|
java.util.List<? extends CTypeInfo> |
ref()
List of TypeInfo s that this property references. |
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 |
---|
protected final TypeUse type
Constructor Detail |
---|
public CAttributePropertyInfo(java.lang.String name, com.sun.xml.xsom.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.Method Detail |
---|
public boolean isRequired()
AttributePropertyInfo
isRequired
in interface AttributePropertyInfo<NType,NClass>
public javax.xml.namespace.QName getXmlName()
AttributePropertyInfo
getXmlName
in interface AttributePropertyInfo<NType,NClass>
public boolean isUnboxable()
isUnboxable
in class CPropertyInfo
public boolean isOptionalPrimitive()
CPropertyInfo
isOptionalPrimitive
in class CPropertyInfo
public <V> V accept(CPropertyVisitor<V> visitor)
accept
in class CPropertyInfo
public final PropertyKind kind()
PropertyInfo
kind
in interface PropertyInfo<NType,NClass>
public javax.xml.namespace.QName getSchemaType()
PropertyInfo
XmlSchemaType
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()
PropertyInfo
XmlID
,
XmlIDREF
public final javax.activation.MimeType getExpectedMimeType()
PropertyInfo
public final java.util.List<? extends CTypeInfo> ref()
PropertyInfo
TypeInfo
s 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 CPropertyInfo
public final CNonElement getTarget()
public final CAdapter getAdapter()
getAdapter
in interface PropertyInfo<NType,NClass>
getAdapter
in class CPropertyInfo
public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |