Class SymbolSpace


  • public class SymbolSpace
    extends 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
    • 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)