Package org.apache.ofbiz.entity.model
Class ModelFieldTypeReader
- java.lang.Object
-
- org.apache.ofbiz.entity.model.ModelFieldTypeReader
-
- All Implemented Interfaces:
java.io.Serializable
public class ModelFieldTypeReader extends java.lang.Object implements java.io.Serializable
Field Type Definition Reader.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,ModelFieldType>
fieldTypeCache
static java.lang.String
module
protected static UtilCache<java.lang.String,ModelFieldTypeReader>
readers
-
Constructor Summary
Constructors Constructor Description ModelFieldTypeReader(java.util.Map<java.lang.String,ModelFieldType> fieldTypeMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.Map<java.lang.String,ModelFieldType>
createFieldTypeCache(org.w3c.dom.Element docElement, java.lang.String location)
java.util.Collection<java.lang.String>
getFieldTypeNames()
Creates a Collection with all of the ModelFieldType namesjava.util.Collection<ModelFieldType>
getFieldTypes()
Creates a Collection with all of the ModelFieldTypesModelFieldType
getModelFieldType(java.lang.String fieldTypeName)
Gets an FieldType object based on a definition from the specified XML FieldType descriptor file.static ModelFieldTypeReader
getModelFieldTypeReader(java.lang.String helperName)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
readers
protected static final UtilCache<java.lang.String,ModelFieldTypeReader> readers
-
fieldTypeCache
protected final java.util.Map<java.lang.String,ModelFieldType> fieldTypeCache
-
-
Constructor Detail
-
ModelFieldTypeReader
public ModelFieldTypeReader(java.util.Map<java.lang.String,ModelFieldType> fieldTypeMap)
-
-
Method Detail
-
createFieldTypeCache
protected static java.util.Map<java.lang.String,ModelFieldType> createFieldTypeCache(org.w3c.dom.Element docElement, java.lang.String location)
-
getModelFieldTypeReader
public static ModelFieldTypeReader getModelFieldTypeReader(java.lang.String helperName)
-
getFieldTypeNames
public java.util.Collection<java.lang.String> getFieldTypeNames()
Creates a Collection with all of the ModelFieldType names- Returns:
- A Collection of ModelFieldType names
-
getFieldTypes
public java.util.Collection<ModelFieldType> getFieldTypes()
Creates a Collection with all of the ModelFieldTypes- Returns:
- A Collection of ModelFieldTypes
-
getModelFieldType
public ModelFieldType getModelFieldType(java.lang.String fieldTypeName)
Gets an FieldType object based on a definition from the specified XML FieldType descriptor file.- Parameters:
fieldTypeName
- The fieldTypeName of the FieldType definition to use.- Returns:
- An FieldType object describing the specified fieldType of the specified descriptor file.
-
-