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
Modifier and Type | Class and Description |
---|---|
static class |
Attribute.State
The attribute value state
see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
|
Constructor and Description |
---|
Attribute(String key,
Attribute.State state)
Creates a new instance
|
Attribute(String key,
String value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKey()
Get key
|
Attribute.State |
getState()
Return the state.
|
String |
getValue()
Get value
|
int |
hashCode() |
String |
toString() |
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 © 2019 Eclipse JGit Project. All rights reserved.