PIMFieldDescriptorpublic class PIMFieldDescriptor extends Object Specification of a PIM field. |
Fields Summary |
---|
private int | fieldPIM: field. | private int | dataTypePIM: type. | private boolean | hasDefaultValuePIM: is the default value present? | private Object | defaultValuePIM: default value. | private String | labelPIM: label. | String[] | labelResourcesPIM: label resources. | private long | attributesPIM: attributes. | private int | maxValuesPIM: maximum number of values or -1 for unlimited data. |
Constructors Summary |
---|
public PIMFieldDescriptor(int field, int dataType, boolean hasDefaultValue, Object defaultValue, String labelResource, String[] labelResources, long attributes, int maxValues)Constructor: field initialization.
this.field = field;
this.dataType = dataType;
this.hasDefaultValue = hasDefaultValue;
this.defaultValue = defaultValue;
this.label = Configuration.getPropertyDefault(labelResource,
"Label_" + labelResource);
this.labelResources = labelResources;
this.attributes = attributes;
this.maxValues = maxValues;
| public PIMFieldDescriptor(int field, int dataType, boolean hasDefaultValue, Object defaultValue, String labelResource, long attributes, int maxValues)Constructor: field initialization.
this(field, dataType, hasDefaultValue, defaultValue,
labelResource, null, attributes, maxValues);
|
Methods Summary |
---|
public int | getDataType()Gets field type.
return dataType;
| public java.lang.Object | getDefaultValue()Gets the default value.
return defaultValue;
| public java.lang.String | getElementlabel(int arrayElement)Gets the label.
return Configuration.getPropertyDefault(labelResources[arrayElement],
"Label_" + labelResources[arrayElement]);
| public int | getField()Gets field ID.
return field;
| public java.lang.String | getLabel()Gets field label.
return label;
| public int | getMaximumValues()Gets the maximum values.
return maxValues;
| public int | getStringArraySize()Gets the length of array (type STRING_ARRAY).
return labelResources.length;
| public long | getSupportedAttributes()Gets the supported attributes.
return attributes;
| public boolean | hasDefaultValue()Checks if the field has a default value?
return hasDefaultValue;
|
|