NodeAttribute interface
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final String | |
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | SimpleNodeAttribute(String
the name of the attribute name)Constructor accepting the name of the attribute |
| public | SimpleNodeAttribute(String
the name of the attribute name, Enum<E extends Enum<E>> the Enum value of the attribute value)Constructor accepting name and Enum value of the attribute |
| public | SimpleNodeAttribute(String
the name of the attribute name, int the int value of the attribute value)Constructor accepting name and int value of the attribute |
| public | SimpleNodeAttribute(String
the name of the attribute name, long the long value of the attribute value)Constructor accepting name and long value of the attribute |
| public | SimpleNodeAttribute(String
the name of the attribute name, boolean the boolean value of the attribute value)Constructor accepting name and boolean value of the attribute |
| public | SimpleNodeAttribute(String
the name of the attribute name, String the String value of the attribute value)Constructor accepting name and String value of the attribute |
| Modifier and Type | Method and Description |
|---|---|
| public SimpleNodeAttribute | defaultValue(String
the default value defaultValue)Implements net. |
| public SimpleNodeAttribute | Returns: the same instancethe default value defaultValue)Same as |
| public SimpleNodeAttribute | Returns: the same instancethe default value defaultValue)Same as |
| public SimpleNodeAttribute | Returns: the same instancethe default value defaultValue)Same as |
| public SimpleNodeAttribute | Returns: the same instancethe default value defaultValue)Same as |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public String | getDefaultValue()
Implements net. |
| public String | getName()
Implements net. |
| public String | getValue()
Implements net. |
| public int | |
| public boolean | isOptional()
Implements net. |
| public SimpleNodeAttribute | optional(boolean
true if optional optional)Implements net. |
| public void | setDefaultValue(String
the default value defaultValue)Implements net. |
| public void | setOptional(boolean
true if this attribute is optional optional)Implements net. |
| public void | setValue(String
the new value value)Implements net. |
| public String |
| defaultValue | back to summary |
|---|---|
| private String defaultValue | |
| name | back to summary |
|---|---|
| private final String name | |
| optional | back to summary |
|---|---|
| private boolean optional | |
| value | back to summary |
|---|---|
| private String value | |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name) Constructor accepting the name of the attribute
| |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name, Enum<E extends Enum<E>> value) Constructor accepting name and Enum value of the attribute | |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name, int value) Constructor accepting name and int value of the attribute
| |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name, long value) Constructor accepting name and long value of the attribute
| |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name, boolean value) Constructor accepting name and boolean value of the attribute
| |
| SimpleNodeAttribute | back to summary |
|---|---|
| public SimpleNodeAttribute(String name, String value) Constructor accepting name and String value of the attribute | |
| defaultValue | back to summary |
|---|---|
| public SimpleNodeAttribute defaultValue(String defaultValue) Implements net. Doc from net. Builder convenience method for setting defaultValue
| |
| defaultValue | back to summary |
|---|---|
| public SimpleNodeAttribute defaultValue(boolean defaultValue) Same as
| |
| defaultValue | back to summary |
|---|---|
| public SimpleNodeAttribute defaultValue(int defaultValue) Same as
| |
| defaultValue | back to summary |
|---|---|
| public SimpleNodeAttribute defaultValue(Enum<E extends Enum<E>> defaultValue) Same as
| |
| defaultValue | back to summary |
|---|---|
| public SimpleNodeAttribute defaultValue(long defaultValue) Same as
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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. | |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() Implements net. Doc from net. Returns the default value of the attribute
| |
| getName | back to summary |
|---|---|
| public String getName() Implements net. Doc from net. Name of the attribute
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements net. Doc from net. Value of the attribute
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() Implements net. Doc from net. Returns true if the attribute is optional, otherwise false
| |
| optional | back to summary |
|---|---|
| public SimpleNodeAttribute optional(boolean optional) Implements net. Doc from net. Builder convenience method for setting optional
| |
| setDefaultValue | back to summary |
|---|---|
| public void setDefaultValue(String defaultValue) Implements net. Doc from net. Default value setter
| |
| setOptional | back to summary |
|---|---|
| public void setOptional(boolean optional) Implements net. Doc from net. Sets this attribute to optional or not
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) Implements net. Doc from net. Setter for value
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |