it.unimo.dbgroup.momis.odli3
Class Constant

java.lang.Object
  extended byit.unimo.dbgroup.momis.odli3.MomisObject
      extended byit.unimo.dbgroup.momis.odli3.Constant
All Implemented Interfaces:
java.io.Serializable

public class Constant
extends MomisObject
implements java.io.Serializable

Descrive un valore costante

See Also:
Serialized Form

Field Summary
private  TypeContainer _parentContainer
          References the TypeContainer that contains this object.
 java.lang.String name
          nome della costante.
 BaseType type
          tipo della costante: puo' essere solo un tipo base (BaseType)
 java.lang.String value
          valore della costante: e' una stringa, quindi occorre eventualmente usare il casting
 
Fields inherited from class it.unimo.dbgroup.momis.odli3.MomisObject
mod_GenericODLParser, mod_GlobalSchema, mod_QueryManger, mod_SIDes_ARM, mod_SIDes_ARTEMIS, mod_SIDes_EXTM, mod_SIDes_JoinMap, mod_SIDes_main, mod_SIDes_SAM, mod_SIDes_SIM, mod_SIDes_SIM2, mod_SIDes_SLIM, mod_SIDes_TREdit, mod_SIDes_TUNIM
 
Constructor Summary
Constant(java.lang.String n, java.lang.String sv, BaseType bt)
          Constructor.
 
Method Summary
 java.lang.String getName()
          nome della costante.
 TypeContainer getParent()
          Setes the parent container.
 void setParent(TypeContainer parentContainer)
          Setes the parent container.
 java.lang.String toOdl()
          Odl Representation.
 
Methods inherited from class it.unimo.dbgroup.momis.odli3.MomisObject
getAdditionalInfo, getAdditionalInfos, getGenericProducerDescription, getProducerDescription, getProducerId, putAdditionalInfo, setProducerId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parentContainer

private TypeContainer _parentContainer
References the TypeContainer that contains this object.


name

public java.lang.String name
nome della costante.


value

public java.lang.String value
valore della costante: e' una stringa, quindi occorre eventualmente usare il casting


type

public BaseType type
tipo della costante: puo' essere solo un tipo base (BaseType)

Constructor Detail

Constant

public Constant(java.lang.String n,
                java.lang.String sv,
                BaseType bt)
Constructor. crea una costante con nome, valore e tipo

Parameters:
n - nome della costante
sv - valore della costante
bt - tipo della costante (tipo base)
Method Detail

setParent

public void setParent(TypeContainer parentContainer)
Setes the parent container.


getParent

public TypeContainer getParent()
Setes the parent container.


getName

public java.lang.String getName()
nome della costante.


toOdl

public java.lang.String toOdl()
Odl Representation.



Universita' di Modena e Reggio Emilia