|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String id,
java.lang.String name,
java.lang.String addForms)
|
|
Schema(java.lang.String id,
java.lang.String name,
java.lang.String addForms,
int furtherHops,
TimeModel defaultTm,
java.lang.String unit)
|
|
Schema(java.lang.String id,
java.lang.String name,
java.lang.String addForms,
java.lang.String furtherHops,
java.lang.String defaultTm,
java.lang.String unit)
Public Constructor |
Method Summary | |
---|---|
void |
addEntity(java.lang.String key,
Entity e)
adding an entity to the schema |
void |
addMapping(java.lang.String key,
java.util.Map<java.lang.String,java.lang.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()
|
java.lang.String |
getDefaultUnit()
|
int |
getEdgesCount()
|
java.util.HashMap<java.lang.String,Entity> |
getEntities()
|
Entity |
getEntity(java.lang.String key)
returns an entity to a specified key |
int |
getFurtherHops()
|
java.lang.String |
getID()
|
static Schema |
getInstance()
|
java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String key)
|
java.lang.String |
getMappedString(java.lang.String mapId,
java.lang.String key)
returns a maped string to a given key |
java.lang.String |
getMappedString(java.lang.String mapId,
java.lang.String key,
Resource resource)
returns a maped string to a given key |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getMappings()
|
java.lang.String |
getName()
|
java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(Entity start,
Entity end)
|
java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(Entity start,
Entity end,
int maxHopsMoreThanSP)
|
java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(java.lang.String start,
java.util.List<java.lang.String> end)
|
java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> |
getPossiblePaths(java.lang.String start,
java.util.List<java.lang.String> end,
int maxHopsMoreThanSP)
|
com.groiss.reporting.data.impl.RelationGraph |
getRelationGraph()
|
java.util.List<com.groiss.reporting.data.impl.Relation> |
getRelations(Entity start)
|
java.util.List<com.groiss.reporting.data.impl.Relation> |
getTempRelations()
|
void |
setDefaultTimemodel(TimeModel defaultTimemodel)
|
void |
setDefaultUnit(java.lang.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(java.lang.String id, java.lang.String name, java.lang.String addForms, java.lang.String furtherHops, java.lang.String defaultTm, java.lang.String unit) throws java.lang.NumberFormatException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.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
java.lang.ClassNotFoundException
- timemodel class was not found
java.lang.IllegalAccessException
- imtemodel class was not instantiatable
java.lang.InstantiationException
- imtemodel class was not instantiatable
java.lang.NumberFormatException
- furtherHops was not parseablepublic Schema(java.lang.String id, java.lang.String name, java.lang.String addForms, int furtherHops, TimeModel defaultTm, java.lang.String unit)
public Schema(java.lang.String id, java.lang.String name, java.lang.String addForms)
Method Detail |
---|
public boolean getAddForms()
public java.lang.String getID()
public java.lang.String getName()
public void addEntity(java.lang.String key, Entity e)
key
- the id of the entitye
- the entitypublic Entity getEntity(java.lang.String key)
key
- the specified key
public java.util.HashMap<java.lang.String,Entity> getEntities()
public void addRelation(com.groiss.reporting.data.impl.Relation r)
public void buildRelationGraph()
public java.util.List<com.groiss.reporting.data.impl.Relation> getRelations(Entity start)
public int getEdgesCount()
public void addMapping(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> map)
key
- - the mapping idmap
- - the mappingpublic java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String key)
key
- - the mapping id
public java.lang.String getMappedString(java.lang.String mapId, java.lang.String key)
mapId
- - the mapping to usekey
- - the key
public java.lang.String getMappedString(java.lang.String mapId, java.lang.String key, Resource resource)
mapId
- - the mapping to usekey
- - the keyresource
- the resouce to localize
public com.groiss.reporting.data.impl.RelationGraph getRelationGraph()
public java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(Entity start, Entity end)
public java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(java.lang.String start, java.util.List<java.lang.String> end)
public java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(Entity start, Entity end, int maxHopsMoreThanSP)
public java.util.List<java.util.List<com.groiss.reporting.data.impl.Relation>> getPossiblePaths(java.lang.String start, java.util.List<java.lang.String> end, int maxHopsMoreThanSP)
public TimeModel getDefaultTimemodel()
public java.lang.String getDefaultUnit()
public int getFurtherHops()
public org.jdom.Element getAsDomElement()
public void setDefaultTimemodel(TimeModel defaultTimemodel)
public void setDefaultUnit(java.lang.String defaultUnit)
public void setFurtherHops(int furtherHops)
public java.util.List<com.groiss.reporting.data.impl.Relation> getTempRelations()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMappings()
public static Schema getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |