public class Attribute extends Object implements Serializable, Cloneable
Represents a named directory attribute.
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the attribute.
|
String |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
setName(String name)
The name of the attribute.
|
void |
setValue(String value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Attribute |
withName(String name)
The name of the attribute.
|
Attribute |
withValue(String value)
The value of the attribute.
|
public String getName()
Constraints:
Length: 1 -
public void setName(String name)
Constraints:
Length: 1 -
name
- The name of the attribute.public Attribute withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
name
- The name of the attribute.public String getValue()
public void setValue(String value)
value
- The value of the attribute.public Attribute withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value of the attribute.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.