it.unimo.dbgroup.momis.odli3
Class SimpleAttribute

java.lang.Object
  extended byit.unimo.dbgroup.momis.odli3.MomisObject
      extended byit.unimo.dbgroup.momis.odli3.Attribute
          extended byit.unimo.dbgroup.momis.odli3.SimpleAttribute
All Implemented Interfaces:
AttributeInterface, OntologyAnnotableElement, java.io.Serializable
Direct Known Subclasses:
GlobalSimpleAttribute

public class SimpleAttribute
extends Attribute
implements java.io.Serializable

Descrive un'attributo semplice o complesso

See Also:
Serialized Form

Field Summary
private  int _fixArraySize
          dimensione d'array
private  boolean _flagReadonly
          true se e' di sola lettura
private  Type _type
          tipo dell'attributo: puo' essere tipo-valore o tipo-classe
private  java.lang.String unknownType
          nome del tipo dell'attributo, non ancora definito (variabile di comodo)
 
Fields inherited from class it.unimo.dbgroup.momis.odli3.Attribute
COMPARE_ON_DOTTED_NAME, COMPARE_ON_NAME
 
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
SimpleAttribute()
          basic constructor
SimpleAttribute(java.lang.String n, java.lang.Object t, boolean fro, int fas)
          il costruttore deve specificare tutte le grandezze
 
Method Summary
 int getFixArraySize()
           
 boolean getFlagReadonly()
           
 Type getType()
          Returns the Type of this attribute.
 void loadFromXML(org.xml.sax.Attributes attrib)
          Load the object from an xml tag.
 void setFixArraySize(int v)
           
 void setFlagReadonly(boolean v)
           
 void setType(Type v)
           
 java.lang.String toOdl()
          Odl Representation.
 java.lang.String toOlcdAttributes(TranslationMap tm, TranslationMap tmName)
          Returns the OLCD description.
 java.lang.String toString()
          Returns a short description.
 
Methods inherited from class it.unimo.dbgroup.momis.odli3.Attribute
control, getDottedName, getIntBody, getInterface, getMatchingAttribute, getName, getOntologyAnnotation, getOptionality, getSchema, setIntBody, setName, setOntologyAnnotation, setOptionality
 
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, wait, wait, wait
 

Field Detail

_flagReadonly

private boolean _flagReadonly
true se e' di sola lettura


_fixArraySize

private int _fixArraySize
dimensione d'array


unknownType

private java.lang.String unknownType
nome del tipo dell'attributo, non ancora definito (variabile di comodo)


_type

private Type _type
tipo dell'attributo: puo' essere tipo-valore o tipo-classe

Constructor Detail

SimpleAttribute

public SimpleAttribute()
basic constructor


SimpleAttribute

public SimpleAttribute(java.lang.String n,
                       java.lang.Object t,
                       boolean fro,
                       int fas)
il costruttore deve specificare tutte le grandezze

Parameters:
n - nome dell'attributo
t - tipo dell'attributo: se gia' definito e' un oggetto Type, altrimenti e' una stringa.
fro - true se e' di sola lettura
fas - dimensione d'array
Method Detail

toOdl

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

Specified by:
toOdl in interface AttributeInterface
Overrides:
toOdl in class Attribute

toOlcdAttributes

public java.lang.String toOlcdAttributes(TranslationMap tm,
                                         TranslationMap tmName)
Returns the OLCD description.

Specified by:
toOlcdAttributes in interface AttributeInterface
Overrides:
toOlcdAttributes in class Attribute

toString

public java.lang.String toString()
Returns a short description.


getType

public Type getType()
Returns the Type of this attribute.

Specified by:
getType in interface AttributeInterface
Overrides:
getType in class Attribute

getFlagReadonly

public boolean getFlagReadonly()

setFlagReadonly

public void setFlagReadonly(boolean v)

getFixArraySize

public int getFixArraySize()

setFixArraySize

public void setFixArraySize(int v)

setType

public void setType(Type v)

loadFromXML

public void loadFromXML(org.xml.sax.Attributes attrib)
                 throws java.lang.Exception
Load the object from an xml tag.

Throws:
java.lang.Exception


Universita' di Modena e Reggio Emilia