com.sun.tools.xjc.model

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.

Constructor Summary
SymbolSpace(JCodeModel _codeModel)
Method Summary
JTypegetType()
Gets the Java type of this symbol space.
voidsetType(JType _type)
StringtoString()

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 String toString()