|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.reporting.data.Schema
public class Schema
the Schema includes all Information of the DOM parsed XML Schema with comfortable accessmehtods
a schema includes
| Constructor Summary | |
|---|---|
Schema()
|
|
Schema(String id,
String name,
String addForms)
|
|
Schema(String id,
String name,
String addForms,
int furtherHops,
TimeModel defaultTm,
String unit)
|
|
Schema(String id,
String name,
String addForms,
String furtherHops,
String defaultTm,
String unit)
Public Constructor |
|
| Method Summary | |
|---|---|
void |
addEntity(String key,
Entity e)
adding an entity to the schema |
void |
addMapping(String key,
Map<String,String> map)
adds a mapping to the schema |
void |
addRelation(com.groiss.reporting.data.impl.Relation r)
|
void |
buildRelationGraph()
|
boolean |
getAddForms()
|
org.jdom.Element |
getAsDomElement()
|
TimeModel |
getDefaultTimemodel()
|
String |
getDefaultUnit()
|
int |
getEdgesCount()
|
HashMap<String,Entity> |
getEntities()
|
Entity |
getEntity(String key)
returns an entity to a specified key |
int |
getFurtherHops()
|
String |
getID()
|
static Schema |
getInstance()
|
Map<String,String> |
getMap(String key)
|
String |
getMappedString(String mapId,
String key)
returns a maped string to a given key |
Map<String,Map<String,String>> |
getMappings()
|
String |
getName()
|
List<List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(Entity start,
Entity end)
|
List<List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(Entity start,
Entity end,
int maxHopsMoreThanSP)
|
List<List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(String start,
String end)
|
List<List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(String start,
String end,
int maxHopsMoreThanSP)
|
com.groiss.reporting.data.impl.RelationGraph |
getRelationGraph()
|
List<com.groiss.reporting.data.impl.Relation> |
getRelations(Entity start)
|
List<com.groiss.reporting.data.impl.Relation> |
getTempRelations()
|
void |
setDefaultTimemodel(TimeModel defaultTimemodel)
|
void |
setDefaultUnit(String defaultUnit)
|
void |
setFurtherHops(int furtherHops)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Schema()
public Schema(String id,
String name,
String addForms,
String furtherHops,
String defaultTm,
String unit)
throws NumberFormatException,
InstantiationException,
IllegalAccessException,
ClassNotFoundException
id - the id of the schemaname - the name of the schemaaddForms - "true" if forms should be added to the schema automaticallydefaultTm - classname of reporting default timemodelfurtherHops - indicates the exitcondition of searching joins.unit - the default unit of timeintervals
ClassNotFoundException - timemodel class was not found
IllegalAccessException - imtemodel class was not instantiatable
InstantiationException - imtemodel class was not instantiatable
NumberFormatException - furtherHops was not parseable
public Schema(String id,
String name,
String addForms,
int furtherHops,
TimeModel defaultTm,
String unit)
public Schema(String id,
String name,
String addForms)
| Method Detail |
|---|
public boolean getAddForms()
public String getID()
public String getName()
public void addEntity(String key,
Entity e)
key - the id of the entitye - the entitypublic Entity getEntity(String key)
key - the specified key
public HashMap<String,Entity> getEntities()
public void addRelation(com.groiss.reporting.data.impl.Relation r)
public void buildRelationGraph()
public List<com.groiss.reporting.data.impl.Relation> getRelations(Entity start)
public int getEdgesCount()
public void addMapping(String key,
Map<String,String> map)
key - - the mapping idmap - - the mappingpublic Map<String,String> getMap(String key)
key - - the mapping id
public String getMappedString(String mapId,
String key)
mapId - - the mapping to usekey - - the key
public com.groiss.reporting.data.impl.RelationGraph getRelationGraph()
public List<List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(Entity start,
Entity end)
public List<List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(String start,
String end)
public List<List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(Entity start,
Entity end,
int maxHopsMoreThanSP)
public List<List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(String start,
String end,
int maxHopsMoreThanSP)
public TimeModel getDefaultTimemodel()
public String getDefaultUnit()
public int getFurtherHops()
public org.jdom.Element getAsDomElement()
public void setDefaultTimemodel(TimeModel defaultTimemodel)
public void setDefaultUnit(String defaultUnit)
public void setFurtherHops(int furtherHops)
public List<com.groiss.reporting.data.impl.Relation> getTempRelations()
public Map<String,Map<String,String>> getMappings()
public static Schema getInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||