Top Description Fields Constructors Methods
com.sun.tools.xjc.model

pack-priv abstract Class CSingleTypePropertyInfo

extends CPropertyInfo
Class Inheritance
Known Direct Subclasses
com.sun.tools.xjc.model.CValuePropertyInfo, com.sun.tools.xjc.model.CAttributePropertyInfo
Imports
java.util.Collections, .List, jakarta.activation.MimeType, javax.xml.namespace.QName, org.glassfish.jaxb.core.v2.model.core.ID, com.sun.xml.xsom.XSComponent, org.xml.sax.Locator

CPropertyInfo backed by a single TypeUse.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final QName
protected final TypeUse
Inherited from com.sun.tools.xjc.model.CPropertyInfo:
baseTypedefaultValueinlineBinaryDatajavadoclocatorrealization

Constructor Summary

AccessConstructor and Description
protected
CSingleTypePropertyInfo(String name, TypeUse type, QName
XML Schema type name of this property's single value. Optional for other schema languages. This is used to determine if we should generate jakarta.xml.bind.annotation.XmlSchemaType annotation to improve the roundtrip.
typeName
,
XSComponent source, CCustomizations customizations, Locator locator)

Method Summary

Modifier and TypeMethod and Description
public final CAdapter
public final MimeType
public QName
public final CSingleTypePropertyInfo
public final CNonElement
public final ID
id()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.id.

Returns the IDness of the value of this element.

public final List<? extends CTypeInfo>
ref()

Implements abstract com.sun.tools.xjc.model.CPropertyInfo.ref.

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

List of TypeInfos that this property references.

Inherited from com.sun.tools.xjc.model.CPropertyInfo:
acceptacceptcollectElementNamesdisplayNamegetCustomizationsgetLocatorgetNamegetNamegetSchemaComponenthasAnnotationinlineBinaryDataisCollectionisOptionalPrimitiveisUnboxableneedsExplicitTypeNameparentreadAnnotationsetNamesetParent

Field Detail

schemaTypeback to summary
private final QName schemaType
typeback to summary
protected final TypeUse type

Constructor Detail

CSingleTypePropertyInfoback to summary
protected CSingleTypePropertyInfo(String name, TypeUse type, QName typeName, XSComponent source, CCustomizations customizations, Locator locator)
Parameters
typeName:QName

XML Schema type name of this property's single value. Optional for other schema languages. This is used to determine if we should generate jakarta.xml.bind.annotation.XmlSchemaType annotation to improve the roundtrip.

Method Detail

getAdapterback to summary
public final CAdapter getAdapter()

Implements abstract com.sun.tools.xjc.model.CPropertyInfo.getAdapter.

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.getAdapter.

Annotations
@Override
getExpectedMimeTypeback to summary
public final MimeType getExpectedMimeType()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.getExpectedMimeType.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.getExpectedMimeType.

Expected MIME type, if any.

Annotations
@Override
getSchemaTypeback to summary
public QName getSchemaType()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.getSchemaType.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.getSchemaType.

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.)

Annotations
@Override
getSourceback to summary
public final CSingleTypePropertyInfo getSource()
getTargetback to summary
public final CNonElement getTarget()
idback to summary
public final ID id()

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.id.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.id.

Returns the IDness of the value of this element.

Annotations
@Override
refback to summary
public final List<? extends CTypeInfo> ref()

Implements abstract com.sun.tools.xjc.model.CPropertyInfo.ref.

Implements org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

List of TypeInfos that this property references. This allows the caller to traverse the reference graph without getting into the details of each different property type.

Annotations
@Override