com.sun.tools.xjc.model
Class CSingleTypePropertyInfo

java.lang.Object
  extended by com.sun.tools.xjc.model.CPropertyInfo
      extended by com.sun.tools.xjc.model.CSingleTypePropertyInfo
All Implemented Interfaces:
CCustomizable, com.sun.xml.bind.v2.model.annotation.AnnotationSource, com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
Direct Known Subclasses:
CAttributePropertyInfo, CValuePropertyInfo

abstract class CSingleTypePropertyInfo
extends CPropertyInfo

CPropertyInfo backed by a single TypeUse.


Field Summary
protected  TypeUse type
           
 
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization
 
Constructor Summary
protected CSingleTypePropertyInfo(java.lang.String name, TypeUse type, javax.xml.namespace.QName typeName, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, org.xml.sax.Locator locator)
           
 
Method Summary
 CAdapter getAdapter()
           
 javax.activation.MimeType getExpectedMimeType()
           
 javax.xml.namespace.QName getSchemaType()
           
 CSingleTypePropertyInfo getSource()
           
 CNonElement getTarget()
           
 com.sun.xml.bind.v2.model.core.ID id()
           
 java.util.List<? extends CTypeInfo> ref()
           
 
Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo
accept, collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, isOptionalPrimitive, isUnboxable, needsExplicitTypeName, parent, readAnnotation, setName, setParent
 
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.PropertyInfo
kind
 

Field Detail

type

protected final TypeUse type
Constructor Detail

CSingleTypePropertyInfo

protected CSingleTypePropertyInfo(java.lang.String name,
                                  TypeUse type,
                                  javax.xml.namespace.QName typeName,
                                  com.sun.xml.xsom.XSComponent source,
                                  CCustomizations customizations,
                                  org.xml.sax.Locator locator)
Parameters:
typeName - XML Schema type name of this property's single value. Optional for other schema languages. This is used to determine if we should generate @XmlSchemaType annotation to improve the roundtrip.
Method Detail

getSchemaType

public javax.xml.namespace.QName getSchemaType()

id

public final com.sun.xml.bind.v2.model.core.ID id()

getExpectedMimeType

public final javax.activation.MimeType getExpectedMimeType()

ref

public final java.util.List<? extends CTypeInfo> ref()
Specified by:
ref in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
Specified by:
ref in class CPropertyInfo

getTarget

public final CNonElement getTarget()

getAdapter

public final CAdapter getAdapter()
Specified by:
getAdapter in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
Specified by:
getAdapter in class CPropertyInfo

getSource

public final CSingleTypePropertyInfo getSource()