Package 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.- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsFields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization
-
Constructor Summary
ConstructorsConstructorDescriptionCValuePropertyInfo
(String name, XSComponent source, CCustomizations customizations, Locator locator, TypeUse type, QName typeName) -
Method Summary
Modifier and TypeMethodDescription<V> V
accept
(CPropertyVisitor<V> visitor) <R,
P> R accept
(CPropertyVisitor2<R, P> visitor, P p) final CAdapter
final MimeType
Expected MIME type, if any.The effective value ofXmlSchemaType
annotation, if any.final com.sun.tools.xjc.model.CSingleTypePropertyInfo
final CNonElement
final ID
id()
Returns the IDness of the value of this element.final PropertyKind
kind()
Gets the kind of this property.ref()
List ofTypeInfo
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, isOptionalPrimitive, isUnboxable, 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.annotation.AnnotationSource
hasAnnotation, readAnnotation
Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElementRef
getSource, 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.core.ValuePropertyInfo
getAdapter
-
Field Details
-
type
-
-
Constructor Details
-
CValuePropertyInfo
public CValuePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, TypeUse type, QName typeName)
-
-
Method Details
-
kind
Description copied from interface:PropertyInfo
Gets the kind of this property.- Specified by:
kind
in interfacePropertyInfo<NType,
NClass> - Returns:
- always non-null.
-
accept
- Specified by:
accept
in classCPropertyInfo
-
accept
- Specified by:
accept
in classCPropertyInfo
-
getSchemaType
Description copied from interface:PropertyInfo
The effective value ofXmlSchemaType
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 ofXmlSchemaType
(namely when this returns non-null, it overrides the type names of all types that are in this property.) -
id
Description copied from interface:PropertyInfo
Returns the IDness of the value of this element. -
getExpectedMimeType
Description copied from interface:PropertyInfo
Expected MIME type, if any. -
ref
Description copied from interface:PropertyInfo
List ofTypeInfo
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 interfacePropertyInfo<NType,
NClass> - Specified by:
ref
in classCPropertyInfo
- Returns:
- non-null read-only collection.
-
getTarget
-
getAdapter
- Specified by:
getAdapter
in interfacePropertyInfo<NType,
NClass> - Specified by:
getAdapter
in classCPropertyInfo
- Returns:
- null if the property is not adapted.
-
getSource
public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
-