|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.Variable
de.enough.polish.Attribute
public class Attribute
Represents a JAD or MANIFEST attribute.
Copyright Enough Software 2004 - 2011
history
29-Aug-2004 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.Variable |
|---|
fileName |
| Constructor Summary | |
|---|---|
Attribute()
Creates a new uninitalised attribute |
|
Attribute(Attribute attribute)
Copies are setings from the given attribute |
|
Attribute(String name,
String value)
Creates a new initialised attribute. |
|
| Method Summary | |
|---|---|
protected Variable[] |
createArray(int size)
|
Variable |
createVariable(String varName,
String varValue)
|
protected char |
getDelimiter()
The delimiter for separating variable-names from variable-values. |
protected String |
getFileIOError(File file,
IOException e)
Gets the error-message that is shown when a variables file could not be loaded. |
protected String |
getFileNotFoundError(File file)
Gets the error-message that is shown when a static variables file could not be found. |
protected String |
getFileNotFoundWarning(File file)
Gets the warning that is shown when a dynamic variables file could not be found. |
Attribute[] |
loadAttributes(Environment environment)
Loads all attribute-definitions from the specified file. |
void |
setTarget(String targetStr)
Sets the target for this attribute. |
void |
setTargetsJad(boolean targets)
Defines if this attribute targets the jad. |
void |
setTargetsManifest(boolean targets)
Defines if this attribute targets the manifest. |
boolean |
targetsJad()
|
boolean |
targetsManifest()
|
| Methods inherited from class de.enough.polish.Variable |
|---|
containsMultipleVariables, getFile, getIfCondition, getName, getType, getUnlessCondition, getValue, hasCondition, isConditionFulfilled, isConditionFulfilled, loadVariables, setFile, setIf, setName, setType, setUnless, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attribute()
public Attribute(Attribute attribute)
attribute - the original attribute
public Attribute(String name,
String value)
name - the name of the attributevalue - the value of the attribute| Method Detail |
|---|
public void setTarget(String targetStr)
targetStr - the target, either "jad" or "manifest" or both separated by comma.public boolean targetsJad()
public boolean targetsManifest()
public Attribute[] loadAttributes(Environment environment)
environment - the environment settings
protected String getFileNotFoundWarning(File file)
getFileNotFoundWarning in class Variablefile - the file that couldn't be found
protected String getFileNotFoundError(File file)
getFileNotFoundError in class Variablefile - the file that couldn't be found
protected String getFileIOError(File file,
IOException e)
getFileIOError in class Variablefile - the file that couldn't be founde - the IOException
public void setTargetsManifest(boolean targets)
targets - true when this attribute targets the manifest.public void setTargetsJad(boolean targets)
targets - true when this attribute targets the jad.protected char getDelimiter()
getDelimiter in class Variableprotected Variable[] createArray(int size)
createArray in class Variable
public Variable createVariable(String varName,
String varValue)
createVariable in class Variable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||