|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.unimo.dbgroup.momis.odli3.MomisObject
it.unimo.dbgroup.momis.odli3.Attribute
Descrive un'attributo locale o globale, semplice o complesso.
| Field Summary | |
private IntBody |
_belongsTo
oggetto IntBody: rappresenta l'interface body a cui l'attributo appartiene |
private boolean |
_isOptional
True if an attribute is optional. |
private java.lang.String |
_name
Attribute name |
private OntologyAnnotation |
_ontologyAnnotation
contain a reference to the OntologyAnnotation Object. |
static java.util.Comparator |
COMPARE_ON_DOTTED_NAME
Comparator used to Sort arrays. |
static java.util.Comparator |
COMPARE_ON_NAME
Comparator used to Sort arrays. |
| 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 | |
Attribute()
Constructor. |
|
| Method Summary | |
void |
control()
Controlla a posteriori la coerenza del contenuto degli attributi |
java.lang.String |
getDottedName()
Return the dotted name of this Attribute: |
IntBody |
getIntBody()
|
Interface |
getInterface()
Returns the interface this Attribute belongs to. |
static java.util.Vector |
getMatchingAttribute(java.util.Vector vatt1,
java.util.Vector vatt2)
Attribute type matching algorithm. |
java.lang.String |
getName()
Get the name of the attribute. |
OntologyAnnotation |
getOntologyAnnotation()
Retrieve the "annotation" for this element |
boolean |
getOptionality()
Returns true if the attribute is optional attribute (es: name?). |
Schema |
getSchema()
Returns the interface this Attribute belongs to. |
Type |
getType()
Get the type for this attribute. |
private void |
initVars()
|
void |
setIntBody(IntBody belongsToIntBody)
|
void |
setName(java.lang.String v)
sets the name of the attribute. |
void |
setOntologyAnnotation(OntologyAnnotation ontologyAnnotation)
sets the "annotation" for this element |
void |
setOptionality(boolean isOptional)
Sets the optionality attribute. |
java.lang.String |
toOdl()
Returns the Odl description. |
java.lang.String |
toOlcdAttributes(TranslationMap tm,
TranslationMap tmName)
Returns the OLCD description. |
| 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 |
public static final java.util.Comparator COMPARE_ON_NAME
public static final java.util.Comparator COMPARE_ON_DOTTED_NAME
private java.lang.String _name
private IntBody _belongsTo
private boolean _isOptional
private OntologyAnnotation _ontologyAnnotation
| Constructor Detail |
public Attribute()
| Method Detail |
private void initVars()
public java.lang.String getName()
getName in interface AttributeInterfacepublic void setName(java.lang.String v)
setName in interface AttributeInterfacepublic java.lang.String getDottedName()
SourceName.ClassName.AttributeName
getDottedName in interface AttributeInterfacepublic Interface getInterface()
getInterface in interface AttributeInterfacepublic Schema getSchema()
public java.lang.String toOdl()
toOdl in interface AttributeInterfacepublic boolean getOptionality()
getOptionality in interface AttributeInterfacepublic void setOptionality(boolean isOptional)
setOptionality in interface AttributeInterface
public java.lang.String toOlcdAttributes(TranslationMap tm,
TranslationMap tmName)
toOlcdAttributes in interface AttributeInterface
public static java.util.Vector getMatchingAttribute(java.util.Vector vatt1,
java.util.Vector vatt2)
NOT YET IMPLEMENTED We have to implement a full type-matching in ODL-I3 classes.Verifica che tra i due vettori di attributi vi sia corrispondenza di tipo per almeno uno degli attributi.
vatt1 - Vector of attributes for the first Interface.vatt2 - Vector of attributes for the second Interface.
public void control()
throws OdlException
E' un metodo vuoto perche' ogni sottoclasse lo implementa in modo diverso.
control in interface AttributeInterfaceOdlExceptionpublic Type getType()
Each descendant class should implement this method.
getType in interface AttributeInterfacepublic IntBody getIntBody()
getIntBody in interface AttributeInterfacepublic void setIntBody(IntBody belongsToIntBody)
setIntBody in interface AttributeInterfacepublic OntologyAnnotation getOntologyAnnotation()
getOntologyAnnotation in interface OntologyAnnotableElementpublic void setOntologyAnnotation(OntologyAnnotation ontologyAnnotation)
setOntologyAnnotation in interface OntologyAnnotableElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||