Package com.portal.bas
Class PFieldSpecFactory
java.lang.Object
com.portal.bas.PFieldSpecFactory
PFieldSpecFactory
is a class used internally by the BAS framework
to generate a PFieldSpecification
from a String
description
passed in from the client side of an application. The PFieldSpecification
is used to specify the fields to include in an flist.- Version:
- 7
- Author:
- Larry Lynch-Freshner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PDataFieldSpecification
createDataSpec
(String description) static PFieldSpecification
createSpec
(Field field) static PFieldSpecification
createSpec
(Field field, int elem) static PFieldSpecification
createSpec
(String description)
-
Constructor Details
-
PFieldSpecFactory
public PFieldSpecFactory()
-
-
Method Details
-
createDataSpec
public static PDataFieldSpecification createDataSpec(String description) throws PBadFieldDescriptionException - Parameters:
description
- aString
that describes the field- Returns:
- The field specification.
- Throws:
PBadFieldDescriptionException
- thrown when a field description fails to describe the right kind of field (or fails to provide any field) for the intended operation.
-
createSpec
- Parameters:
field
- aField
object- Returns:
- The field specification's position in the list.
- Throws:
PBadFieldDescriptionException
- thrown when a field description fails to describe the right kind of field (or fails to provide any field) for the intended operation.
-
createSpec
public static PFieldSpecification createSpec(Field field, int elem) throws PBadFieldDescriptionException - Parameters:
field
- aField
objectelem
- the field's position- Returns:
- The updated list of fields.
- Throws:
PBadFieldDescriptionException
- thrown when a field description fails to describe the right kind of field (or fails to provide any field) for the intended operation.
-
createSpec
public static PFieldSpecification createSpec(String description) throws PBadFieldDescriptionException - Parameters:
description
- aString
that describes a field- Returns:
- The field specification that matches the description.
- Throws:
PBadFieldDescriptionException
- thrown when a field description fails to describe the right kind of field (or fails to provide any field) for the intended operation.
-