|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.providers.DataDefinitionProvider
org.makumba.providers.datadefinition.mdd.MDDProvider
public class MDDProvider
Field Summary | |
---|---|
static int |
infos
|
Method Summary | |
---|---|
static URL |
findDataDefinition(String s,
String ext)
Finds a data definition, based on its name and extensions |
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 |
static DataDefinitionProvider |
getInstance()
|
static DataDefinition |
getMDD(String name)
returns the record info with the given absolute name |
(package private) static URL |
getResource(String s)
|
static DataDefinition |
getSimpleMDD(String path)
|
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 |
static void |
setWebappRoot(String w)
|
Methods inherited from class org.makumba.providers.DataDefinitionProvider |
---|
getDataDefinitionsInDefaultLocations, getDataDefinitionsInLocation, getFieldDefinition, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int infos
Method Detail |
---|
public static void setWebappRoot(String w)
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 Vector<String> getDataDefinitionsInDefaultLocations()
DataDefinitionProvider
getDataDefinitionsInDefaultLocations
in class DataDefinitionProvider
public static DataDefinition getMDD(String name)
DataDefinitionNotFoundError
- if the name is not a valid record info name
DataDefinitionParseError
- if the syntax is wrong or a referred resource can't be foundpublic static DataDefinition getSimpleMDD(String path)
public static URL findDataDefinition(String s, String ext)
static URL getResource(String s)
public static DataDefinitionProvider getInstance()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |