|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.providers.DataDefinitionProvider
public class DataDefinitionProvider
This class is a facade for creating different kinds of DataDefinitionProviders. Its constructor knows from a Configuration (or in the future maybe through other means) which implementation to use, and provides this implementation methods to its client, without revealing the implementation used.
| Constructor Summary | |
|---|---|
DataDefinitionProvider()
|
|
| Method Summary | |
|---|---|
DataDefinition |
getDataDefinition(String typeName)
Gets the data definition defined by the given type. |
Vector<String> |
getDataDefinitionsInDefaultLocations()
gives a list of data definitions in the default locations of the data definition provider |
Vector<String> |
getDataDefinitionsInDefaultLocations(String... ignoreList)
gives a list of data definitions in the default locations of the data definition provider, ignoring those MDDs that start with any of the strings in the ignoreList |
Vector<String> |
getDataDefinitionsInLocation(String location)
gives a list of data definitions in a given location |
static FieldDefinition |
getFieldDefinition(DataDefinition dd,
String fieldName,
String lineWithDefinition)
This method finds a field definition with the given name within the given data definition. |
static DataDefinitionProvider |
getInstance()
|
DataDefinition |
getVirtualDataDefinition(String name)
Gets a virtual data definition |
FieldDefinition |
makeFieldDefinition(String name,
String definition)
makes a field definition from the indicated string FIXME this is particular to mdds |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataDefinitionProvider()
| Method Detail |
|---|
public static DataDefinitionProvider getInstance()
public DataDefinition getDataDefinition(String typeName)
DataDefinitionProviderInterface
getDataDefinition in interface DataDefinitionProviderInterfacepublic Vector<String> getDataDefinitionsInLocation(String location)
DataDefinitionProviderInterface
getDataDefinitionsInLocation in interface DataDefinitionProviderInterfacelocation - the location where the data definitions should be
public Vector<String> getDataDefinitionsInDefaultLocations()
DataDefinitionProviderInterface
getDataDefinitionsInDefaultLocations in interface DataDefinitionProviderInterfacepublic Vector<String> getDataDefinitionsInDefaultLocations(String... ignoreList)
DataDefinitionProviderInterface
getDataDefinitionsInDefaultLocations in interface DataDefinitionProviderInterfaceignoreList - a list of prefixes for MDDs to be ignored
public DataDefinition getVirtualDataDefinition(String name)
DataDefinitionProviderInterface
getVirtualDataDefinition in interface DataDefinitionProviderInterfacename - the name of the virtual data definition
public FieldDefinition makeFieldDefinition(String name,
String definition)
DataDefinitionProviderInterface
makeFieldDefinition in interface DataDefinitionProviderInterfacename - the name of the fielddefinition - the definition string
public FieldDefinition makeFieldOfType(String name,
String type)
DataDefinitionProviderInterface
makeFieldOfType in interface DataDefinitionProviderInterfacename - the name of the fieldtype - the type of the field
public FieldDefinition makeFieldOfType(String name,
String type,
String description)
DataDefinitionProviderInterface
makeFieldOfType in interface DataDefinitionProviderInterfacename - the name of the fieldtype - the FieldDefinition used as model
public FieldDefinition makeFieldWithName(String name,
FieldDefinition type)
DataDefinitionProviderInterface
makeFieldWithName in interface DataDefinitionProviderInterfacename - the name of the fieldtype - the elementary type of the field
public FieldDefinition makeFieldWithName(String name,
FieldDefinition type,
String description)
DataDefinitionProviderInterface
makeFieldWithName in interface DataDefinitionProviderInterfacename - the name of the fieldtype - the FieldDefinition used as modeldescription - the description of the field
public static final FieldDefinition getFieldDefinition(DataDefinition dd,
String fieldName,
String lineWithDefinition)
throws DataDefinitionParseError
DataDefinition.getFieldDefinition(String) is that the field name can be of the form
field.subfield.otherSubfield, over an arbitrary number of levels.
DataDefinitionParseError
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||