public class Link.ReleaseInfoEntry
extends java.lang.Object
Constructor and Description |
---|
ReleaseInfoEntry()
Creates a new, unconfigured element.
|
ReleaseInfoEntry(java.lang.String key,
java.lang.String value)
Creates a new element which specifies a single additional property.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharset()
Attribute containing the character set of this object's
file.
|
java.io.File |
getFile()
Attribute containing a Java properties file which contains
additional release info properties.
|
java.lang.String |
getKey()
Attribute containing the key of this element's additional property.
|
java.lang.String |
getValue()
Attribute containing the value of this element's additional property.
|
void |
setCharset(java.lang.String charset)
Sets attribute containing the character set of this object's
file.
|
void |
setFile(java.io.File file)
Sets attribute containing a Java properties file which contains
additional release info properties.
|
void |
setKey(java.lang.String key)
Sets attribute containing the key of this element's
additional property.
|
void |
setValue(java.lang.String value)
Sets attributes containing the value of this element's
additional property.
|
java.util.Properties |
toProperties()
Converts this element to a Java properties object containing
the additional properties this element represents.
|
void |
validate()
Verifies the state of this element.
|
public ReleaseInfoEntry()
public ReleaseInfoEntry(java.lang.String key, java.lang.String value)
key
- new property's keyvalue
- new property's valuepublic java.lang.String getKey()
getValue()
public void setKey(java.lang.String key)
key
- additional property's keysetValue(String)
public java.lang.String getValue()
getKey()
public void setValue(java.lang.String value)
value
- additional property's valuesetKey(String)
public java.io.File getFile()
public void setFile(java.io.File file)
file
- this element's properties filepublic java.lang.String getCharset()
ISO_8859_1
by default, in accordance with the java.util.Properties default.public void setCharset(java.lang.String charset)
ISO_8859_1
by default, in accordance with the
java.util.Properties default.charset
- character set of this element's filepublic void validate()
BuildException
- if file is set, and key and/or value are setBuildException
- if file is not set, and key and value are not both setBuildException
- if charset is not a valid Java Charset namepublic java.util.Properties toProperties()
BuildException
- if file is set, but cannot be read