public class SchemaFactory
extends java.lang.Object
Constructor and Description |
---|
SchemaFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(int id) |
void |
addFilter(java.lang.String name) |
void |
addSchema(Schema schema) |
SchemaFactory |
copy() |
void |
copy(SchemaFactory factory) |
void |
copy(SchemaFactory factory,
java.util.List<java.lang.String> descriptors) |
void |
copy(SchemaFactory factory,
java.lang.String... descriptors)
Copies Schemas from the original factory including only descriptors
passed by the list.
|
HipoEvent |
getFilteredEvent(HipoEvent event) |
HipoNodeType |
getNodeType(java.lang.String desc) |
Schema |
getSchema(int group) |
Schema |
getSchema(java.lang.String name) |
HipoEvent |
getSchemaEvent()
returns a HipoEvent containing a bank with descriptors.
|
java.util.List<Schema> |
getSchemaList() |
boolean |
hasSchema(int group) |
boolean |
hasSchema(java.lang.String name) |
void |
initFromDirectory(java.lang.String directory) |
void |
initFromDirectory(java.lang.String env,
java.lang.String directory) |
static void |
main(java.lang.String[] args) |
java.util.List<Schema> |
readSchemaDirectory(java.lang.String directory) |
java.util.List<Schema> |
readSchemaFile(java.lang.String filename) |
void |
setFromEvent(HipoEvent event)
Reads the event and initializes the factory with Schema's
|
void |
show() |
public void addSchema(Schema schema)
public boolean hasSchema(java.lang.String name)
public boolean hasSchema(int group)
public Schema getSchema(java.lang.String name)
public java.util.List<Schema> getSchemaList()
public Schema getSchema(int group)
public SchemaFactory copy()
public void copy(SchemaFactory factory)
public void copy(SchemaFactory factory, java.lang.String... descriptors)
factory
- original SchemaFactorydescriptors
- list of descriptors to copypublic void copy(SchemaFactory factory, java.util.List<java.lang.String> descriptors)
public void show()
public void setFromEvent(HipoEvent event)
event
- HipoEventpublic HipoEvent getSchemaEvent()
public void addFilter(java.lang.String name)
public void addFilter(int id)
public HipoNodeType getNodeType(java.lang.String desc)
public void initFromDirectory(java.lang.String directory)
public void initFromDirectory(java.lang.String env, java.lang.String directory)
public java.util.List<Schema> readSchemaDirectory(java.lang.String directory)
public java.util.List<Schema> readSchemaFile(java.lang.String filename)
public static void main(java.lang.String[] args)
JHepSim. A part of HSTOOLS. version-1.2