Note
originally, I tracked cardinality as well as the name of an attribute. I'm leaving the code here as I suspect something may come of it later. Currently, though, cardinality is not used.
| Modifier and Type | Field and Description |
|---|---|
| public StringTemplate | defaultValueST
If they specified name="value", store the template here |
| public String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String[] | |
| public static final LinkedHashMap | UNKNOWN
When template arguments are not available such as when the user uses "new StringTemplate(...)", then the list of formal arguments must be distinguished from the case where a template can specify args and there just aren't any such as the t() template above. |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static String | |
| public String |
| defaultValueST | back to summary |
|---|---|
| public StringTemplate defaultValueST If they specified name="value", store the template here | |
| name | back to summary |
|---|---|
| public String name | |
| ONE_OR_MORE | back to summary |
|---|---|
| public static final int ONE_OR_MORE | |
| OPTIONAL | back to summary |
|---|---|
| public static final int OPTIONAL | |
| REQUIRED | back to summary |
|---|---|
| public static final int REQUIRED | |
| suffixes | back to summary |
|---|---|
| public static final String[] suffixes | |
| UNKNOWN | back to summary |
|---|---|
| public static final LinkedHashMap<K, V> UNKNOWN When template arguments are not available such as when the user uses "new StringTemplate(...)", then the list of formal arguments must be distinguished from the case where a template can specify args and there just aren't any such as the t() template above. | |
| ZERO_OR_MORE | back to summary |
|---|---|
| public static final int ZERO_OR_MORE | |
| FormalArgument | back to summary |
|---|---|
| public FormalArgument(String name) | |
| FormalArgument | back to summary |
|---|---|
| public FormalArgument(String name, StringTemplate defaultValueST) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCardinalityName | back to summary |
|---|---|
| public static String getCardinalityName(int cardinality) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |