|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.makumba.providers.DataDefinitionProvider org.makumba.providers.datadefinition.makumba.MakumbaDataDefinitionFactory
public class MakumbaDataDefinitionFactory
This class is the Makumba implementation of a data definition provider, based on MDD files.
TODO refactor together with RecordInfo to build objects (and not use static methods)
Method Summary | |
---|---|
DataDefinition |
getDataDefinition(String typeName)
Gets the data definition defined by the given type. |
static DataDefinitionProvider |
getInstance()
|
DataDefinition |
getVirtualDataDefinition(String name)
|
FieldDefinition |
makeFieldDefinition(String name,
String definition)
makes a field definition from the indicated string |
FieldDefinition |
makeFieldOfType(String name,
String type)
makes a field definition with the elementary type |
FieldDefinition |
makeFieldOfType(String name,
String type,
String description)
makes a field definition identical with the given one, except for the name |
FieldDefinition |
makeFieldWithName(String name,
FieldDefinition type)
makes a field definition with the elementary type |
FieldDefinition |
makeFieldWithName(String name,
FieldDefinition type,
String description)
makes a field definition identical with the given one, except for the name and the description |
Methods inherited from class org.makumba.providers.DataDefinitionProvider |
---|
getDataDefinitionsInDefaultLocations, getDataDefinitionsInDefaultLocations, getDataDefinitionsInLocation, getFieldDefinition, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DataDefinition getDataDefinition(String typeName)
DataDefinitionProvider
getDataDefinition
in class DataDefinitionProvider
public DataDefinition getVirtualDataDefinition(String name)
getVirtualDataDefinition
in class DataDefinitionProvider
public FieldDefinition makeFieldDefinition(String name, String definition)
DataDefinitionProvider
makeFieldDefinition
in class DataDefinitionProvider
name
- the name of the fielddefinition
- the definition string, e.g. "ptr general.Person ;pointer to a person"
public FieldDefinition makeFieldOfType(String name, String type)
DataDefinitionProvider
makeFieldOfType
in class DataDefinitionProvider
name
- the name of the fieldtype
- the type of the field
public FieldDefinition makeFieldOfType(String name, String type, String description)
DataDefinitionProvider
makeFieldOfType
in class DataDefinitionProvider
name
- the name of the fieldtype
- the FieldDefinition used as model
public FieldDefinition makeFieldWithName(String name, FieldDefinition type)
DataDefinitionProvider
makeFieldWithName
in class DataDefinitionProvider
name
- the name of the fieldtype
- the elementary type of the field
public FieldDefinition makeFieldWithName(String name, FieldDefinition type, String description)
DataDefinitionProvider
makeFieldWithName
in class DataDefinitionProvider
name
- the name of the fieldtype
- the FieldDefinition used as modeldescription
- the description of the field
public static DataDefinitionProvider getInstance()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |