|
|||||||||||
| 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.ThesRelation
it.unimo.dbgroup.momis.odli3.InterfaceRel
Descrive una relazione terminologica TRA DUE CLASSI.
| Field Summary | |
private Interface |
_interface1
oggetto relativo alla prima interface. |
private Interface |
_interface2
oggetto relativo alla seconda interface. |
| Fields inherited from class it.unimo.dbgroup.momis.odli3.ThesRelation |
_extensionalRelation, _iName1, _iName2, _relType, _sName1, _sName2, _validated |
| 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 | |
InterfaceRel()
Basic constructor |
|
InterfaceRel(int producerId,
java.lang.String rel,
Interface i1,
Interface i2)
il costruttore specifica Gli attributi (due liste) e il tipo di relazione che li lega. |
|
InterfaceRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2)
see initInterfaceRel |
|
| Method Summary | |
java.lang.Object |
clone()
method to clone the current object. |
void |
control(TypeContainer container)
effettua a posteriori un controllo su tutte le relazioni tra interfacce, verificando che realmente esistano ed aggiornando i collegamenti |
boolean |
equalElements(java.lang.Object relat)
Return True if two thesRelations are defined between the same two elements. |
boolean |
equals(java.lang.Object relat)
Return True if two thesRelations represents the same information. |
java.lang.String |
getDottedName1()
Returns the dotted name for the first interface. |
java.lang.String |
getDottedName2()
Returns the dotted name for the second interface. |
Interface |
getFirstElement()
Returns The first Interface involved by the thesaurus relation |
java.lang.String |
getIName1()
Returns name of the first Interface. |
java.lang.String |
getIName2()
Returns name of the second Interface. |
Interface |
getInterface1()
Returns the First Interface of the relation. |
Interface |
getInterface2()
Returns the Second Interface of the relation. |
java.lang.String |
getRelType()
Returns relation type. |
Interface |
getSecondElement()
Returns The second Interface involved by the thesaurus relation |
java.lang.String |
getSName1()
Returns name of the first Source. |
java.lang.String |
getSName2()
Returns name of the second Source. |
private void |
initInterfaceRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2)
Builds a relation given the full-path-name of the interfaces. The relation must be read as: |
void |
loadFromXML(org.xml.sax.Attributes attrib)
Load the object from an xml tag. |
java.lang.String |
toArtemis()
Generates a list of thesaurus relations for the ARTEMIS module. |
java.lang.String |
toOdl()
Returns the ODLi3 description. |
| Methods inherited from class it.unimo.dbgroup.momis.odli3.ThesRelation |
getIsExtensionalRelation, getParent, getValidated, setIsExtensionalRelation, setParent, setValidated, setValidated, toString |
| Methods inherited from class it.unimo.dbgroup.momis.odli3.MomisObject |
getAdditionalInfo, getAdditionalInfos, getGenericProducerDescription, getProducerDescription, getProducerId, putAdditionalInfo, setProducerId |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Interface _interface1
private Interface _interface2
| Constructor Detail |
public InterfaceRel()
public InterfaceRel(int producerId,
java.lang.String rel,
Interface i1,
Interface i2)
throws OdlException
i1 rel i2
producerId - MOMIS module that produced this objectrel - relation type (bt, nt, syn, rt).i1 - First interface in the relation.
che appaiono nella relazione (quelli contenuti
nelle interfaces).i2 - rappresenta la lista dei secondi attributi
che appaiono nella relazione (quelli contenuti
nelle interfaces).
public InterfaceRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2)
throws OdlException
| Method Detail |
public java.lang.Object clone()
clone in class ThesRelation
private void initInterfaceRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2)
throws OdlException
i1 rel i2
CONSTRUCTOR TO USE IN PARSING.
Schema schema = new Schema(); // main schema
InterfaceRel ir;
ir = new InterfaceRel(MomisObject.mod_SIDes_SLIM,
"rt",
"s1", "i1",
"s2", "i2");
try {
ir.control(schema);
} catch (OdlException ex) {
// problems
}
schema.addThesRelation(ir);
Instead of using this constructor use the following:
InterfaceRel(int producerId, String rt, Interface i1, Interface i2)
il costruttore specifica il nome dei due attributi e il tipo di
relazione che li lega.
producerId - MOMIS module that produced this objectrel - relation type (BT, NT, SYN, RT).
OdlExceptionpublic java.lang.String toArtemis()
S1.Class.Att1a ,bt ,S2.Class.Att2b ,0;Where an attribute is identified as:
toArtemis in class ThesRelationpublic java.lang.String toOdl()
toOdl in class ThesRelation
public void control(TypeContainer container)
throws OdlException
control in class ThesRelationOdlException
public void loadFromXML(org.xml.sax.Attributes attrib)
throws java.lang.Exception
loadFromXML in class ThesRelationjava.lang.Exceptionpublic Interface getInterface1()
public Interface getInterface2()
public java.lang.String getDottedName1()
getDottedName1 in class ThesRelationpublic java.lang.String getDottedName2()
getDottedName2 in class ThesRelationpublic java.lang.String getIName1()
public java.lang.String getSName1()
public java.lang.String getIName2()
public java.lang.String getSName2()
public java.lang.String getRelType()
getRelType in class ThesRelationpublic boolean equals(java.lang.Object relat)
public boolean equalElements(java.lang.Object relat)
equalElements in class ThesRelationpublic Interface getFirstElement()
public Interface getSecondElement()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||