|
|||||||||||
| 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
it.unimo.dbgroup.momis.odli3.Relationship
Descrive un'attributo complesso (aggregazione binaria o relationship)
| Field Summary | |
java.util.Vector |
inverse
insieme di oggetti Relationship che rappresentano le relazioni inverse |
private java.lang.String |
invName
Nome della relazione inversa |
java.util.Vector |
orderBy
|
Interface |
target
Interfaccia di appartenenza dell'oggetto puntato dalla relationship |
private java.lang.String |
targName
nome dell'interface di appartenenza dell'oggetto puntato dalla relationship |
Type |
type
se e' TypeToSolve indica che l'aggregazione e' semplice, non collezione se non e' null indica il tipo di collezione: set, list, bag o array |
| 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 | |
Relationship(java.lang.String nome,
java.lang.String targetName,
java.lang.String inverseRelationName,
Type typeNew)
Constructor. |
|
| Method Summary | |
boolean |
compare(Relationship r)
analizza la Relationship passata e controlla se e' l'inversa della corrente |
void |
control()
controlla a posteriori che esista la classe dell'inversa e l'inversa stessa, nonche' il fatto che entrambe si invochino a vicenda come relazioni inverse. |
Type |
getType()
Returns the Type of this relationship attribute. |
java.lang.String |
toOdl()
Odl Representation. |
java.lang.String |
toOlcdAttributes(TranslationMap tm,
TranslationMap tmName)
OLCD Representation. |
java.lang.String |
toString()
Returns a short description. |
| Methods inherited from class it.unimo.dbgroup.momis.odli3.Attribute |
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 |
public java.util.Vector inverse
(possono essere piu' di una perche' ogni interfaccia ha piu' implementazioni)
public Interface target
public Type type
public java.util.Vector orderBy
private java.lang.String invName
private java.lang.String targName
| Constructor Detail |
public Relationship(java.lang.String nome,
java.lang.String targetName,
java.lang.String inverseRelationName,
Type typeNew)
nome - nome della relationshiptargetName - nome della classe dell'inversainverseRelationName - nome della relationship inversa| Method Detail |
public void control()
throws OdlException
control in interface AttributeInterfacecontrol in class AttributeOdlExceptionpublic boolean compare(Relationship r)
r - relationship da controllare
public Type getType()
getType in interface AttributeInterfacegetType in class Attributepublic java.lang.String toOdl()
toOdl in interface AttributeInterfacetoOdl in class Attributepublic java.lang.String toString()
public java.lang.String toOlcdAttributes(TranslationMap tm,
TranslationMap tmName)
toOlcdAttributes in interface AttributeInterfacetoOlcdAttributes in class Attribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||