com.sun.tools.xjc.model
Class CValuePropertyInfo
java.lang.Object
com.sun.tools.xjc.model.CPropertyInfo
com.sun.tools.xjc.model.CValuePropertyInfo
- All Implemented Interfaces:
- CCustomizable, AnnotationSource, NonElementRef<NType,NClass>, PropertyInfo<NType,NClass>, ValuePropertyInfo<NType,NClass>
public final class CValuePropertyInfo
- extends CPropertyInfo
- implements ValuePropertyInfo<NType,NClass>
ValuePropertyInfo
implementation for XJC.
Constructor Summary |
CValuePropertyInfo(java.lang.String name,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator locator,
TypeUse type,
javax.xml.namespace.QName typeName)
|
Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo |
collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, isOptionalPrimitive, isUnboxable, needsExplicitTypeName, parent, readAnnotation, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected final TypeUse type
CValuePropertyInfo
public CValuePropertyInfo(java.lang.String name,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator locator,
TypeUse type,
javax.xml.namespace.QName typeName)
kind
public final PropertyKind kind()
- Description copied from interface:
PropertyInfo
- Gets the kind of this proeprty.
- Specified by:
kind
in interface PropertyInfo<NType,NClass>
- Returns:
- always non-null.
accept
public <V> V accept(CPropertyVisitor<V> visitor)
- Specified by:
accept
in class CPropertyInfo
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- Description copied from interface:
PropertyInfo
- The effective value of
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.)
id
public final ID id()
- Description copied from interface:
PropertyInfo
- Returns the IDness of the value of this element.
- Returns:
- always non-null
- See Also:
XmlID
,
XmlIDREF
getExpectedMimeType
public final javax.activation.MimeType getExpectedMimeType()
- Description copied from interface:
PropertyInfo
- Expected MIME type, if any.
ref
public final java.util.List<? extends CTypeInfo> ref()
- Description copied from interface:
PropertyInfo
- List of
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.
- Specified by:
ref
in interface PropertyInfo<NType,NClass>
- Specified by:
ref
in class CPropertyInfo
- Returns:
- non-null read-only collection.
getTarget
public final CNonElement getTarget()
getAdapter
public final CAdapter getAdapter()
- Specified by:
getAdapter
in interface PropertyInfo<NType,NClass>
- Specified by:
getAdapter
in class CPropertyInfo
- Returns:
- null if the property is not adapted.
getSource
public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()