|
|||||||||||
| 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.TypeContainer
it.unimo.dbgroup.momis.odli3.Interface
Descrive un'Interfaccia (classe o vista)
| Field Summary | |
private boolean |
_aggiornaAttributes_alreadyRun
|
private java.util.HashMap |
_attributes
lista di tutti gli attributi omonimi; e' un HashMap avente: key nome di attributo value Vector di attributi omonimi |
private java.util.HashMap |
_extentName
estensione/i della classe, e' un HashMap di stringhe. |
private boolean |
_flagPersistent
flag che indica se l'interface e' persistente o transiente: true e' persistente false e' transiente. |
private boolean |
_flagView
flag che indica se l'interface e' classe o vista true e' una vista false e' una classe. |
private java.util.Vector |
_foreignKey
lista delle foreign key: e' un Vector di oggetti ForeignKey. |
private java.util.Vector |
_inheritance
lista delle superclassi. |
private java.util.HashMap |
_inheritanceMap
lista delle superclassi in parsing. |
private java.util.HashMap |
_keyList
lista delle chiavi candidate: e' una HashMap di oggetti KeyList. |
private java.lang.String |
_name
nome dell'interfaccia. |
private OntologyAnnotation |
_ontologyAnnotation
contain a reference to the OntologyAnnotation Object. |
private Source |
_source
sorgente della classe in questione. |
static java.util.Comparator |
COMPARE_ON_NAME
Comparator used to Sort relationship by ordine. |
| Fields inherited from class it.unimo.dbgroup.momis.odli3.TypeContainer |
_constants, _interfaces, _sources, _structs, _thesRelations |
| 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 | |
Interface()
Constructor. |
|
Interface(java.lang.String name,
boolean flagIsAView,
boolean flagIsPersistent)
Constructor. |
|
| Method Summary | |
void |
addExtent(java.lang.String extentName)
|
void |
addForeignKey(ForeignKey fKey)
|
void |
addKey(KeyList k)
Adds a key to the list of the keys. |
void |
addToInheritanceMap(java.lang.String superClassName)
Adds an inheritance class during the parsing This is used from the schema parser. |
void |
aggiornaAttributes()
this method forces the generation of the attributes Map |
private void |
aggiornaAttributes(boolean forceExecution)
Initialize the attributes hashmap as postprocessing operation. |
void |
control()
Control and resolving routine. |
void |
controlForeignKeys()
Routine for control and resolving Foreign Keys and Attributes. |
java.util.Vector |
getAttribute(java.lang.String an)
restituisce un vector di attributi omonimi, appartenenti alle diverse IntBody restituisce null se non esistono attributi con quel nome. |
java.util.Map |
getAttributes()
Return a Map of attributes. In such Map: key: the name of the attribute value: a vector of attributes with the same name. |
Attribute[] |
getAttributesIncludingParents_sortByAttributeDottedName()
Returns all Attributes defined in this interface and in all the parents of this interface, sorted by DottedName. |
java.util.Set |
getAttributesIncludingParents()
Return a Set of Attributes including the one inherited from parent interfaces. |
java.util.Set |
getAttributeVectorsIncludingParents()
Return a Set of Vectors of attributes including the one inherited from parent interfaces. |
java.lang.String |
getDottedName()
Return the dotted name of this interface: |
java.util.HashMap |
getExtentName()
Sets the HashMap of identifier for the extension. |
boolean |
getFlagPersistent()
|
boolean |
getFlagView()
|
java.util.Vector |
getForeignKeys()
|
KeyList |
getKey(java.lang.String s)
Get a key by name. |
java.lang.Object[] |
getKeys()
Returns the array of all the Keys Of this Interface. |
java.lang.String |
getName()
Returns the name of the interface. |
OntologyAnnotation |
getOntologyAnnotation()
Retrieve the "annotation" for this element |
java.util.Vector |
getParents()
Returns all Parent classes (superclasses of this one). |
Source |
getSource()
Returns the source of the interface. |
java.lang.String |
getXmlType()
Xml Representation. |
private void |
initVars()
|
void |
loadFromXML(org.xml.sax.Attributes attrib)
Load the object from an xml tag. |
void |
setExtentName(java.util.HashMap extentName)
Sets the HashMap of identifier for the extension. |
void |
setFlagPersistent(boolean fPersistent)
|
void |
setFlagView(boolean flagView)
|
void |
setForeignKeys(java.util.Vector foreignKeys)
|
void |
setInheritanceMap(java.util.HashMap inheritance)
Sets the classes that this interface inherits from. |
void |
setName(java.lang.String name)
sets the name of the interface. |
void |
setOntologyAnnotation(OntologyAnnotation ontologyAnnotation)
sets the "annotation" for this element |
void |
setSource(Source s)
Set the source container for this interface. |
void |
setSourceTo(Source s)
aggiorna tutte le variabili che devono tenere traccia del sorgente |
java.lang.String |
toOdl()
Restituisce la descrizione Odli3 della interface. |
java.lang.String |
toOlcd(TranslationMap tm)
Returns the OLCD description for this Interface. |
java.lang.String |
toOlcdSimB(TranslationMap tm,
java.util.Map attributeMap)
Returns the OLCD description for the SIMB module for this Interface. |
java.lang.String |
toString()
String representation for the Instance. |
| 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 |
private boolean _aggiornaAttributes_alreadyRun
public static final java.util.Comparator COMPARE_ON_NAME
private java.util.HashMap _attributes
private java.lang.String _name
private java.util.HashMap _inheritanceMap
private java.util.Vector _inheritance
private Source _source
private java.util.HashMap _extentName
private java.util.HashMap _keyList
private java.util.Vector _foreignKey
private boolean _flagView
private boolean _flagPersistent
private OntologyAnnotation _ontologyAnnotation
| Constructor Detail |
public Interface(java.lang.String name,
boolean flagIsAView,
boolean flagIsPersistent)
public Interface()
| Method Detail |
private void initVars()
public java.lang.String getName()
getName in class TypeContainerpublic void setName(java.lang.String name)
public java.lang.String getDottedName()
SourceName.ClassName
public java.util.Map getAttributes()
public java.util.Set getAttributeVectorsIncludingParents()
public java.util.Set getAttributesIncludingParents()
public Attribute[] getAttributesIncludingParents_sortByAttributeDottedName()
public Source getSource()
public java.util.Vector getParents()
public void setInheritanceMap(java.util.HashMap inheritance)
public void addToInheritanceMap(java.lang.String superClassName)
public void setExtentName(java.util.HashMap extentName)
public java.util.HashMap getExtentName()
public KeyList getKey(java.lang.String s)
public java.lang.Object[] getKeys()
int i;
Object[] c = interface.getKeys();
for (i=0; i<c.length; i++) {
if (c[i] instanceof KeyList) {
KeyList kl = ((KeyList)c[i]);
//
// Here goes your code
//
} else {
// Strage case!
}
}
public void addKey(KeyList k)
throws OdlException
OdlExceptionprivate void aggiornaAttributes(boolean forceExecution)
public void aggiornaAttributes()
public void setSourceTo(Source s)
throws OdlException
s - sorgente.
OdlExceptionpublic void setSource(Source s)
setSource in class TypeContainers - sorgente.public java.util.Vector getAttribute(java.lang.String an)
an - nome dell'attributo/i da cercare
public void control()
throws OdlException
OdlException
public void controlForeignKeys()
throws OdlException
OdlExceptionpublic java.lang.String toString()
toString in class TypeContainerpublic java.lang.String toOdl()
interface.
toOdl in class TypeContainerpublic java.lang.String toOlcd(TranslationMap tm)
toOlcd in class TypeContainer
public java.lang.String toOlcdSimB(TranslationMap tm,
java.util.Map attributeMap)
toOlcdSimB in class TypeContainertm - Translation MapattributeMap - Attribute Map, describes how to sobstitute
attribute definition according to
thesaurus relations.
This method will return a virtual Interface derived from the current
one that is part of the virtual schema described in OLCD to be passed
to ODB-Tools for Thesaurus Relationships validation and inference.
public void addExtent(java.lang.String extentName)
public java.util.Vector getForeignKeys()
public void setForeignKeys(java.util.Vector foreignKeys)
public void addForeignKey(ForeignKey fKey)
public boolean getFlagView()
public void setFlagView(boolean flagView)
public boolean getFlagPersistent()
public void setFlagPersistent(boolean fPersistent)
public void loadFromXML(org.xml.sax.Attributes attrib)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getXmlType()
getXmlType in interface TypeInterfacepublic 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 | ||||||||||