- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file ValueIt.java.
◆ getFieldIt()
FieldIt org.turro.contacts.ValueIt.getFieldIt |
( |
| ) |
|
◆ getId()
String org.turro.contacts.ValueIt.getId |
( |
| ) |
|
◆ getLabeledObjectString()
String org.turro.contacts.ValueIt.getLabeledObjectString |
( |
| ) |
|
Definition at line 136 of file ValueIt.java.
138 if(obj instanceof Boolean) {
139 return ((Boolean) obj) ? I_.get(fieldIt.
getName()) :
"";
140 }
else if(obj instanceof Number) {
141 return I_.get(fieldIt.
getName()) +
": " + DecimalFormats.format((Number) obj);
142 }
else if(obj instanceof Date) {
143 return I_.get(fieldIt.
getName()) +
": " + DateFormats.format((Date) obj,
true);
144 }
else if(obj instanceof String) {
145 return I_.get(fieldIt.
getName()) +
": " + (String) obj;
146 }
else if(obj instanceof StringList) {
147 return I_.get(fieldIt.
getName()) +
": " + ((StringList) obj).
getValue();
149 return obj ==
null ?
"" : I_.get(fieldIt.
getName()) +
": " + obj.toString();
◆ getObjectString() [1/2]
String org.turro.contacts.ValueIt.getObjectString |
( |
| ) |
|
◆ getObjectString() [2/2]
String org.turro.contacts.ValueIt.getObjectString |
( |
boolean |
label | ) |
|
Definition at line 116 of file ValueIt.java.
118 if(obj instanceof Boolean) {
120 return BooleanFormats.format((Boolean) obj);
122 return ((Boolean) obj) ? I_.get(fieldIt.
getName()) :
"";
124 }
else if(obj instanceof Number) {
125 return DecimalFormats.format((Number) obj);
126 }
else if(obj instanceof Date) {
127 return DateFormats.format((Date) obj,
true);
128 }
else if(obj instanceof String) {
130 }
else if(obj instanceof StringList) {
131 return ((StringList) obj).getValue();
133 return obj ==
null ?
"" : obj.toString();
◆ getObjectValue()
Object org.turro.contacts.ValueIt.getObjectValue |
( |
| ) |
|
Definition at line 104 of file ValueIt.java.
105 if(Reflections.of(fieldIt.
getJavaClass()).canCast(StringList.class)) {
108 return ObjectString.parseNativeString(value, fieldIt.
getJavaClass(),
false);
◆ getPath()
String org.turro.contacts.ValueIt.getPath |
( |
| ) |
|
◆ getValue()
String org.turro.contacts.ValueIt.getValue |
( |
| ) |
|
◆ isValid()
boolean org.turro.contacts.ValueIt.isValid |
( |
| ) |
|
Definition at line 92 of file ValueIt.java.
93 return fieldIt !=
null && !Strings.isBlank(value);
◆ setFieldIt()
void org.turro.contacts.ValueIt.setFieldIt |
( |
FieldIt |
fieldIt | ) |
|
Definition at line 78 of file ValueIt.java.
79 this.fieldIt = fieldIt;
◆ setId()
void org.turro.contacts.ValueIt.setId |
( |
String |
id | ) |
|
◆ setObjectValue()
void org.turro.contacts.ValueIt.setObjectValue |
( |
Object |
obj | ) |
|
Definition at line 96 of file ValueIt.java.
97 if(obj instanceof StringList) {
98 value = ((StringList) obj).getValue();
100 value = ObjectString.formatNativeObject(obj,
false);
◆ setPath()
void org.turro.contacts.ValueIt.setPath |
( |
String |
path | ) |
|
◆ setValue()
void org.turro.contacts.ValueIt.setValue |
( |
String |
value | ) |
|
The documentation for this class was generated from the following file: