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

    Author:
    Kohsuke KAWAGUCHI
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JType getType()
      Gets the Java type of this symbol space.
      void setType​(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​(JCodeModel _codeModel)
    • Method Detail

      • getType

        public 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​(JType _type)
      • toString

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