it.unimo.dbgroup.momis.odli3
Class ThesRelation

java.lang.Object
  extended byit.unimo.dbgroup.momis.odli3.MomisObject
      extended byit.unimo.dbgroup.momis.odli3.ThesRelation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AttributeRel, AttrIntRel, InterfaceRel

public abstract class ThesRelation
extends MomisObject
implements java.io.Serializable

Oggetto per descrivere una relazione terminologica. memorizza:
nomeSorgente1, nomeClasse1, tipoDiRelazione, nomeSorgente2, nomeClasse2

See Also:
Serialized Form

Field Summary
protected  boolean _extensionalRelation
          True if the relation is extensional, false means intensional.
protected  java.lang.String _iName1
          Nome della classe 1.
protected  java.lang.String _iName2
          Nome della classe 2.
private  TypeContainer _parentContainer
          References the TypeContainer that contains this object.
protected  java.lang.String _relType
          Tipo di relazione: SYN, BT, NT o RT .
protected  java.lang.String _sName1
          Nome del sorgente 1.
protected  java.lang.String _sName2
          Nome del sorgente 2.
protected  boolean _validated
          True if the relation has been validated by ODB-Tools.
 
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
ThesRelation()
           
 
Method Summary
 java.lang.Object clone()
          method to clone the current object (only in children instances).
 void control(TypeContainer container)
          Resolves the Relation.
 boolean equalElements(java.lang.Object relat)
          Return True if two thesRelations are defined between the same two elements.
 java.lang.String getDottedName1()
          Returns the dotted name for the first term in the relation.
 java.lang.String getDottedName2()
          Returns the dotted name for the second term in the relation.
 boolean getIsExtensionalRelation()
          Returns true if this relation is Extensional, false if intensional.
 TypeContainer getParent()
          Setes the parent container.
 java.lang.String getRelType()
          Returns the type of relation (rt, bt, nt, syn);
 boolean getValidated()
          Retruns True if the relation has been validated by ODB-Tools.
 void loadFromXML(org.xml.sax.Attributes attrib)
          Load the object from an xml tag.
 void setIsExtensionalRelation(boolean extensionalRelation)
          Setes the isExtensional flag.
 void setParent(TypeContainer parentContainer)
          Setes the parent container.
 void setValidated()
          Sets the validated flag to true.
 void setValidated(boolean validated)
          Set the validation property.
 java.lang.String toArtemis()
          Generates a list of thesaurus relations for the ARTEMIS module.
 java.lang.String toOdl()
          Returns the ODLi3 description.
 java.lang.String 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_parentContainer

private TypeContainer _parentContainer
References the TypeContainer that contains this object.


_relType

protected java.lang.String _relType
Tipo di relazione: SYN, BT, NT o RT .


_sName1

protected java.lang.String _sName1
Nome del sorgente 1.


_sName2

protected java.lang.String _sName2
Nome del sorgente 2.


_iName1

protected java.lang.String _iName1
Nome della classe 1.


_iName2

protected java.lang.String _iName2
Nome della classe 2.


_validated

protected boolean _validated
True if the relation has been validated by ODB-Tools.


_extensionalRelation

protected boolean _extensionalRelation
True if the relation is extensional, false means intensional. Extensional relations are created and managed by the module SIDesigner.EXTM

Constructor Detail

ThesRelation

public ThesRelation()
Method Detail

control

public void control(TypeContainer container)
             throws OdlException
Resolves the Relation. Starting from names retrieves the involved Objects. This is an abstract function, the real resolution is performed in each of the specialized Thes Relation classes.

Throws:
OdlException

clone

public java.lang.Object clone()
method to clone the current object (only in children instances).


getRelType

public java.lang.String getRelType()
Returns the type of relation (rt, bt, nt, syn);


getValidated

public boolean getValidated()
Retruns True if the relation has been validated by ODB-Tools.


setValidated

public void setValidated(boolean validated)
Set the validation property. Such property must be True if the relation has been validated by ODB-Tools.


toArtemis

public java.lang.String toArtemis()
Generates a list of thesaurus relations for the ARTEMIS module. Returns a string in the follwing format:
 S1.Class.Att1a  ,bt   ,S2.Class.Att2b            ,0;
 
Where an attribute is identified as:
SOURCEname.INTERFACEname.ATTRIBUTEname
the last number, null, 0 or 1, means
null: relation between interfaces
0: attribute relation not validated
1: attribute relation validated


getDottedName1

public java.lang.String getDottedName1()
Returns the dotted name for the first term in the relation.


getDottedName2

public java.lang.String getDottedName2()
Returns the dotted name for the second term in the relation.


setParent

public void setParent(TypeContainer parentContainer)
Setes the parent container.


getParent

public TypeContainer getParent()
Setes the parent container.


toOdl

public java.lang.String toOdl()
Returns the ODLi3 description.


toString

public java.lang.String toString()

setValidated

public void setValidated()
Sets the validated flag to true.


equalElements

public boolean equalElements(java.lang.Object relat)
Return True if two thesRelations are defined between the same two elements.


setIsExtensionalRelation

public void setIsExtensionalRelation(boolean extensionalRelation)
Setes the isExtensional flag. True menans the relation is extensional, false means the relation is intesional.


getIsExtensionalRelation

public boolean getIsExtensionalRelation()
Returns true if this relation is Extensional, false if intensional.


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