Top Description Fields Constructors Methods
com.sun.tools.xjc.model

public Class SymbolSpace

extends Object
Class Inheritance
Imports
com.sun.codemodel.JCodeModel, .JType

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

Field Summary

Modifier and TypeField and Description
private final JCodeModel
private JType

Constructor Summary

AccessConstructor and Description
public
SymbolSpace(JCodeModel _codeModel)

Method Summary

Modifier and TypeMethod and Description
public JType
getType()

Gets the Java type of this symbol space.

public void
setType(JType _type)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

codeModelback to summary
private final JCodeModel codeModel
typeback to summary
private JType type

Constructor Detail

SymbolSpaceback to summary
public SymbolSpace(JCodeModel _codeModel)

Method Detail

getTypeback to summary
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.

setTypeback to summary
public void setType(JType _type)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override