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

java.lang.Object
  extended by com.sun.tools.xjc.reader.RawTypeSet.Ref
Direct Known Subclasses:
RawTypeSetBuilder.CClassRef, RawTypeSetBuilder.CElementInfoRef, RawTypeSetBuilder.WildcardRef, RawTypeSetBuilder.XmlTypeRef
Enclosing class:
RawTypeSet

public abstract static class RawTypeSet.Ref
extends Object

A reference to something.

A RawTypeSet.Ref can be either turned into CTypeRef to form an element property, or Element to form a reference property.


Constructor Summary
RawTypeSet.Ref()
           
 
Method Summary
protected abstract  RawTypeSet.Mode 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 abstract  ID id()
          When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.
protected abstract  boolean isListOfValues()
           
protected abstract  void toElementRef(CReferencePropertyInfo prop)
           
protected abstract  CTypeRef toTypeRef(CElementPropertyInfo ep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawTypeSet.Ref

public RawTypeSet.Ref()
Method Detail

toTypeRef

protected abstract CTypeRef toTypeRef(CElementPropertyInfo ep)
Parameters:
ep - the property to which the returned CTypeRef will be added to.

toElementRef

protected abstract void toElementRef(CReferencePropertyInfo prop)

canBeType

protected abstract RawTypeSet.Mode canBeType(RawTypeSet parent)
Can this RawTypeSet.Ref be a type ref?

Parameters:
parent -
Returns:
false to veto.

isListOfValues

protected abstract boolean isListOfValues()

id

protected abstract ID id()
When this RawTypeSet binds to a CElementPropertyInfo, this method is used to determine if the property is ID or not.


getExpectedMimeType

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.