com.sun.tools.xjc.model
Class SymbolSpace

java.lang.Object
  extended by com.sun.tools.xjc.model.SymbolSpace

public class SymbolSpace
extends java.lang.Object

Symbol space for ID/IDREF. In XJC, the whole ID space is considered to be splitted into one or more "symbol space". For an IDREF to match an ID, we impose additional restriction to the one stated in the XML rec.

That is, XJC'll require that the IDREF belongs to the same symbol space as the ID. Having this concept allows us to assign more specific type to IDREF.

See the design document for detail.


Constructor Summary
SymbolSpace(com.sun.codemodel.JCodeModel _codeModel)
           
 
Method Summary
 com.sun.codemodel.JType getType()
          Gets the Java type of this symbol space.
 void setType(com.sun.codemodel.JType _type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolSpace

public SymbolSpace(com.sun.codemodel.JCodeModel _codeModel)
Method Detail

getType

public com.sun.codemodel.JType getType()
Gets the Java type of this symbol space.

A symbol space is said to have a Java type X if all classes pointed by IDs belonging to this symbol space are assignable to X.


setType

public void setType(com.sun.codemodel.JType _type)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object