| java.lang.Object soif.SchemaColNode
SchemaColNode | public class SchemaColNode (Code) | | Encapsulates data for a schema column.
|
Field Summary | |
final protected static int | ZIPPO Default non-value for display, sort and editable. | protected int | display Indicates that the data has been picked for display. | protected int | editable Indicates that the data has been picked as editable. | protected int | indexable Indicates that the data has been picked as indexable. | protected String | soifAttribute SOIF attribute name. | protected int | sort Indicates that the data has been picked as sort criteria. | protected String | sysTblName System table name. |
ZIPPO | final protected static int ZIPPO(Code) | | Default non-value for display, sort and editable.
|
display | protected int display(Code) | | Indicates that the data has been picked for display.
|
editable | protected int editable(Code) | | Indicates that the data has been picked as editable.
|
indexable | protected int indexable(Code) | | Indicates that the data has been picked as indexable.
|
soifAttribute | protected String soifAttribute(Code) | | SOIF attribute name.
|
sort | protected int sort(Code) | | Indicates that the data has been picked as sort criteria.
|
sysTblName | protected String sysTblName(Code) | | System table name.
|
SchemaColNode | public SchemaColNode(AVPairs list)(Code) | | Constructor.
Parameters: list - list of attribute value pairs describing this column |
getValue | public String getValue(String s)(Code) | | Get value by attribute.
Ignores case of attribute name.
Parameters: s - the attribute |
insert | public void insert(String att, String val)(Code) | | Inserts a new AVPairs instance.
The inserter of duplicates (particular of
key attributes) is assumed to know what they're doing.
Parameters: att - the attribute Parameters: val - the value |
remove | public void remove(String s)(Code) | | Remove AVPair by attribute.
Ignores case of attribute name.
Parameters: s - the attribute |
setDefaultDisplay | public void setDefaultDisplay()(Code) | | Set the default display value.
|
setDefaultSort | public void setDefaultSort()(Code) | | Set the default display value.
|
setEditAttribute | public void setEditAttribute(String s)(Code) | | Convenience method for handling Edit-Attribute.
If the value is null a removal is performed.
Parameters: s - edit-attribute value |
setEnforceUniqueness | public void setEnforceUniqueness(boolean b)(Code) | | Convenience method for handling Enforce-Uniqueness.
Parameters: s - enforce-uniqueness value |
setIndexAttribute | public void setIndexAttribute(String s)(Code) | | Convenience method for handling Index-Attribute.
If the value is null a removal is performed.
Parameters: s - index-attribute value |
setValue | public boolean setValue(String s, String v)(Code) | | Set value by attribute.
Ignores case of attribute name.
Parameters: s - the attribute Parameters: v - the value |
toSOIF | public String toSOIF(int mv)(Code) | | Return SOIF w/ proposed multi-value.
Parameters: mv - multi-value |
update | public void update(String att, String val)(Code) | | A convenience method which bundles insert(),
setValue() and remove().
If the proposed value is length 0, remove() is called.
Otherwise, setValue() is called.
If setValue() fails, insertAfter() is called.
Parameters: att - attribute Parameters: val - value |
|
|