public class ReplaceableAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the replaceable attribute.
|
private java.lang.Boolean |
replace
A flag specifying whether or not to replace the attribute/value pair or
to add a new attribute/value pair.
|
private java.lang.String |
value
The value of the replaceable attribute.
|
Constructor and Description |
---|
ReplaceableAttribute()
Default constructor for ReplaceableAttribute object.
|
ReplaceableAttribute(java.lang.String name,
java.lang.String value,
java.lang.Boolean replace)
Constructs a new ReplaceableAttribute object.
|
Modifier and Type | Method and Description |
---|---|
ReplaceableAttribute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the replaceable attribute.
|
java.lang.Boolean |
getReplace()
A flag specifying whether or not to replace the attribute/value pair or
to add a new attribute/value pair.
|
java.lang.String |
getValue()
The value of the replaceable attribute.
|
int |
hashCode() |
java.lang.Boolean |
isReplace()
A flag specifying whether or not to replace the attribute/value pair or
to add a new attribute/value pair.
|
void |
setName(java.lang.String name)
The name of the replaceable attribute.
|
void |
setReplace(java.lang.Boolean replace)
A flag specifying whether or not to replace the attribute/value pair or
to add a new attribute/value pair.
|
void |
setValue(java.lang.String value)
The value of the replaceable attribute.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceableAttribute |
withName(java.lang.String name)
The name of the replaceable attribute.
|
ReplaceableAttribute |
withReplace(java.lang.Boolean replace)
A flag specifying whether or not to replace the attribute/value pair or
to add a new attribute/value pair.
|
ReplaceableAttribute |
withValue(java.lang.String value)
The value of the replaceable attribute.
|
private java.lang.String name
private java.lang.String value
private java.lang.Boolean replace
false
.public ReplaceableAttribute()
public ReplaceableAttribute(java.lang.String name, java.lang.String value, java.lang.Boolean replace)
name
- The name of the replaceable attribute.value
- The value of the replaceable attribute.replace
- A flag specifying whether or not to replace the attribute/value
pair or to add a new attribute/value pair. The default setting is
false
.public void setName(java.lang.String name)
name
- The name of the replaceable attribute.public java.lang.String getName()
public ReplaceableAttribute withName(java.lang.String name)
name
- The name of the replaceable attribute.public void setValue(java.lang.String value)
value
- The value of the replaceable attribute.public java.lang.String getValue()
public ReplaceableAttribute withValue(java.lang.String value)
value
- The value of the replaceable attribute.public void setReplace(java.lang.Boolean replace)
false
.replace
- A flag specifying whether or not to replace the attribute/value
pair or to add a new attribute/value pair. The default setting is
false
.public java.lang.Boolean getReplace()
false
.false
.public ReplaceableAttribute withReplace(java.lang.Boolean replace)
false
.replace
- A flag specifying whether or not to replace the attribute/value
pair or to add a new attribute/value pair. The default setting is
false
.public java.lang.Boolean isReplace()
false
.false
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReplaceableAttribute clone()
clone
in class java.lang.Object