public class DefaultFieldSetFactory extends Object implements FieldSetFactory
FieldSetFactory
with no special knowledge
of the FieldSet
required. Returns a DefaultFieldSet
from both
factory methods.Constructor and Description |
---|
DefaultFieldSetFactory() |
Modifier and Type | Method and Description |
---|---|
FieldSet |
create(String[] values)
Create a FieldSet with anonymous tokens.
|
FieldSet |
create(String[] values,
String[] names)
Create a FieldSet with named tokens.
|
void |
setDateFormat(DateFormat dateFormat)
The
DateFormat to use for parsing numbers. |
void |
setNumberFormat(NumberFormat numberFormat)
The
NumberFormat to use for parsing numbers. |
public void setNumberFormat(NumberFormat numberFormat)
NumberFormat
to use for parsing numbers. If unset the default
locale will be used.numberFormat
- the NumberFormat
to use for number parsingpublic void setDateFormat(DateFormat dateFormat)
DateFormat
to use for parsing numbers. If unset the default
pattern is ISO standard yyyy/MM/dd
.dateFormat
- the DateFormat
to use for date parsingpublic FieldSet create(String[] values, String[] names)
create
in interface FieldSetFactory
values
- the token valuesnames
- the names of the tokensDefaultFieldSet.readString(String)
public FieldSet create(String[] values)
create
in interface FieldSetFactory
values
- the token valuesFieldSet.readString(int)
Copyright © 2014 Pivotal. All rights reserved.