public final class Attribute extends Object
According to the man page, an attribute can have the following states:
Attribute.State.SET
Attribute.State.UNSET
Attribute.State.CUSTOM
null
is used instead of an instance of this
classModifier and Type | Class and Description |
---|---|
static class |
Attribute.State
The attribute value state
|
Constructor and Description |
---|
Attribute(String key,
Attribute.State state)
Creates a new instance
|
Attribute(String key,
String value)
Creates a new instance.
|
public Attribute(String key, Attribute.State state)
key
- the attribute key. Should not be null
.state
- the attribute state. It should be either Attribute.State.SET
or
Attribute.State.UNSET
. In order to create a custom value
attribute prefer the use of Attribute(String, String)
constructor.public String getKey()
null
)public Attribute.State getState()
null
)public String getValue()
null
)Copyright © 2015 Eclipse JGit Project. All rights reserved.