|
|||||||||||
| 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.AttrIntRel
Descrive una relazione terminologica mista tra un attributo e una classe.
| Field Summary | |
private java.lang.String |
_aName2
nome del primo attributo. |
private java.util.Vector |
_attribute2
Vector di tutti gli attributi con lo stesso nome, esistenti nelle diverse implementazioni della seconda classe. |
private Interface |
_interface1
oggetto relativo alla 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 | |
AttrIntRel()
Basic constructor |
|
AttrIntRel(int producerId,
java.lang.String rel,
Interface inf,
java.util.Vector att)
The constructor specifies an interface, a Vector of attributes and the type of relation beewen them. |
|
AttrIntRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2,
java.lang.String aName2)
see initAttrIntRel |
|
AttrIntRel(int producerId,
java.lang.String rel,
java.util.Vector att,
Interface inf)
The constructor specifies an interface, a Vector of attributes and the type of relation beewen them. |
|
| Method Summary | |
java.lang.Object |
clone()
method to clone the current object. |
private void |
constructFromObjects(int producerId,
java.lang.String rel,
Interface inf,
java.util.Vector att)
Routine that initialize this instance. |
void |
control(TypeContainer container)
effettua a posteriori un controllo su tutte le relazioni tra interfacce e Attributi 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 |
getAName2()
Returns name of the second attribute. |
java.util.Vector |
getAttributes2()
Returns the Second Vector of Attributes of the relation. |
java.lang.String |
getDottedName1()
Returns the dotted name for the first interface. |
java.lang.String |
getDottedName2()
Returns the dotted name for the second attribute. |
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. |
java.lang.String |
getSName1()
Returns name of the first Source. |
java.lang.String |
getSName2()
Returns name of the second Source. |
private void |
initAttrIntRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2,
java.lang.String aName2)
Builds a relation given the full-path-name of the attributes. |
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, getRelType, 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 java.lang.String _aName2
private java.util.Vector _attribute2
| Constructor Detail |
public AttrIntRel()
public AttrIntRel(int producerId,
java.lang.String rel,
Interface inf,
java.util.Vector att)
throws OdlException
producerId - MOMIS module that produced this objectrel - relation type (bt, nt, syn, rt).inf - Inteface to be related to the attribute.att - Attribute list (as they appears in the interface)
to be related with the interface.
public AttrIntRel(int producerId,
java.lang.String rel,
java.util.Vector att,
Interface inf)
throws OdlException
producerId - MOMIS module that produced this objectrel - relation type (bt, nt, syn, rt).att - Attribute list (as they appears in the interface)
to be related with the interface.inf - Inteface to be related to the attribute.
public AttrIntRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2,
java.lang.String aName2)
throws OdlException
| Method Detail |
public java.lang.Object clone()
clone in class ThesRelation
private void constructFromObjects(int producerId,
java.lang.String rel,
Interface inf,
java.util.Vector att)
throws OdlException
OdlException
private void initAttrIntRel(int producerId,
java.lang.String rel,
java.lang.String sName1,
java.lang.String iName1,
java.lang.String sName2,
java.lang.String iName2,
java.lang.String aName2)
throws OdlException
a1 rel a2
CONSTRUCTOR TO USE IN PARSING.
Schema schema = new Schema(); // main schema
AttrIntRel ai;
ai = new AttrIntRel(MomisObject.mod_SIDes_SLIM,
"rt",
"s1", "i1",
"s2", "i2", "a2");
try {
ai.control(schema);
} catch (OdlException ex) {
// problems
}
schema.addThesRelation(a);
Instead of using this constructor use the following:
AttributeRel(int producerId, String rt,Interface inf,Vector att)
or
AttributeRel(int producerId, String rt,Vector att,Interface inf)
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 loadFromXML(org.xml.sax.Attributes attrib)
throws java.lang.Exception
loadFromXML in class ThesRelationjava.lang.Exceptionpublic Interface getInterface1()
public java.util.Vector getAttributes2()
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 getAName2()
public java.lang.String getIName2()
public java.lang.String getSName2()
public void control(TypeContainer container)
throws OdlException
control in class ThesRelationOdlExceptionpublic boolean equals(java.lang.Object relat)
public boolean equalElements(java.lang.Object relat)
equalElements in class ThesRelation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||