com.sun.tools.xjc.reader
Class RawTypeSet.XmlTypeRef

java.lang.Object
  extended by com.sun.tools.xjc.reader.RawTypeSet.Ref
      extended by com.sun.tools.xjc.reader.RawTypeSet.XmlTypeRef
Enclosing class:
RawTypeSet

public static final class RawTypeSet.XmlTypeRef
extends RawTypeSet.Ref

References to a type. Could be global or local.


Field Summary
 CCustomizations custs
           
 com.sun.xml.xsom.XmlString defaultValue
           
 javax.xml.namespace.QName elementName
           
 org.xml.sax.Locator locator
           
 boolean nillable
           
 com.sun.xml.xsom.XSComponent source
           
 TypeUse target
           
 
Constructor Summary
RawTypeSet.XmlTypeRef(javax.xml.namespace.QName elementName, TypeUse target, boolean nillable, com.sun.xml.xsom.XmlString defaultValue, com.sun.xml.xsom.XSComponent source, CCustomizations custs, org.xml.sax.Locator loc)
           
RawTypeSet.XmlTypeRef(javax.xml.namespace.QName elementName, com.sun.xml.xsom.XSType target, boolean nillable, com.sun.xml.xsom.XmlString defaultValue)
           
RawTypeSet.XmlTypeRef(com.sun.xml.xsom.XSElementDecl decl)
           
 
Method Summary
protected  boolean canBeType(RawTypeSet parent)
          Can this RawTypeSet.Ref be a type ref?
protected  javax.activation.MimeType getExpectedMimeType()
          When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property has an associated expected MIME type or not.
protected  com.sun.xml.bind.v2.model.core.ID id()
          When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.
protected  boolean isListOfValues()
           
protected  void toElementRef(CReferencePropertyInfo prop)
          The whole type set can be later bound to a reference property, in which case we need to generate additional code to wrap this type reference into an element class.
protected  CTypeRef toTypeRef(CElementPropertyInfo ep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementName

public final javax.xml.namespace.QName elementName

target

public final TypeUse target

locator

public final org.xml.sax.Locator locator

source

public final com.sun.xml.xsom.XSComponent source

custs

public final CCustomizations custs

nillable

public final boolean nillable

defaultValue

public final com.sun.xml.xsom.XmlString defaultValue
Constructor Detail

RawTypeSet.XmlTypeRef

public RawTypeSet.XmlTypeRef(javax.xml.namespace.QName elementName,
                             TypeUse target,
                             boolean nillable,
                             com.sun.xml.xsom.XmlString defaultValue,
                             com.sun.xml.xsom.XSComponent source,
                             CCustomizations custs,
                             org.xml.sax.Locator loc)

RawTypeSet.XmlTypeRef

public RawTypeSet.XmlTypeRef(javax.xml.namespace.QName elementName,
                             com.sun.xml.xsom.XSType target,
                             boolean nillable,
                             com.sun.xml.xsom.XmlString defaultValue)

RawTypeSet.XmlTypeRef

public RawTypeSet.XmlTypeRef(com.sun.xml.xsom.XSElementDecl decl)
Method Detail

toTypeRef

protected CTypeRef toTypeRef(CElementPropertyInfo ep)
Specified by:
toTypeRef in class RawTypeSet.Ref
Parameters:
ep - the property to which the returned CTypeRef will be added to.

toElementRef

protected void toElementRef(CReferencePropertyInfo prop)
The whole type set can be later bound to a reference property, in which case we need to generate additional code to wrap this type reference into an element class. This method generates such an element class and returns it.

Specified by:
toElementRef in class RawTypeSet.Ref

canBeType

protected boolean canBeType(RawTypeSet parent)
Description copied from class: RawTypeSet.Ref
Can this RawTypeSet.Ref be a type ref?

Specified by:
canBeType in class RawTypeSet.Ref
Returns:
false to veto.

isListOfValues

protected boolean isListOfValues()
Specified by:
isListOfValues in class RawTypeSet.Ref

id

protected com.sun.xml.bind.v2.model.core.ID id()
Description copied from class: RawTypeSet.Ref
When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.

Specified by:
id in class RawTypeSet.Ref

getExpectedMimeType

protected javax.activation.MimeType getExpectedMimeType()
Description copied from class: RawTypeSet.Ref
When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property has an associated expected MIME type or not.

Overrides:
getExpectedMimeType in class RawTypeSet.Ref