AggregateTransformer.Format, Available.FileDir, Checksum.FormatElement, Comparison, Definer.Format, Definer.OnError, EchoProperties.FormatAttribute, EchoXML.NamespacePolicy, EjbJar.CMPVersion, EjbJar.NamingScheme, EmailTask.Encoding, ExecuteOn.FileDirBoth, FilterSet.OnMissing, FixCRLF.AddAsisRemove, FixCRLF.CrLf, FixCrLfFilter.AddAsisRemove, FixCrLfFilter.CrLf, FormatterElement.TypeAttribute, FTP.Action, FTP.FTPSystemType, FTP.Granularity, FTP.LanguageCode, FTPTask.Action, FTPTask.FTPSystemType, FTPTask.Granularity, Input.HandlerType, IsLastModified.CompareMode, Jar.FilesetManifestConfig, Jar.StrictMode, Javadoc.AccessType, JDependTask.FormatAttribute, JUnitTask.ForkMode, JUnitTask.SummaryAttribute, Length.FileMode, ListenerDefinition.ListenerType, LogLevel, ManifestTask.Mode, Mapper.MapperType, ModifiedSelector.AlgorithmName, ModifiedSelector.CacheName, ModifiedSelector.ComparatorName, MSVSS.CurrentModUpdated, MSVSS.WritableFiles, MSVSSHISTORY.BriefCodediffNofile, NetRexxC.TraceAttr, NetRexxC.VerboseAttr, PathConvert.TargetOs, PresentSelector.FilePresence, PropertyFile.Entry.Operation, PropertyFile.Entry.Type, PropertyFile.Unit, PropertySet.BuiltinPropertySetName, Quantifier, Recorder.ActionChoices, Scale.ProportionsAttribute, SizeSelector.ByteUnits, SQLExec.DelimiterType, SQLExec.OnError, Tar.TarCompressionMethod, Tar.TarLongFileMode, TimeComparison, Tstamp.Unit, Type.FileDir, TypeSelector.FileType, Untar.UntarCompressionMethod, WaitFor.Unit, Zip.Duplicate, Zip.UnicodeExtraField, Zip.WhenEmpty, Zip.Zip64ModeAttributepublic abstract class EnumeratedAttribute
extends java.lang.Object
See FixCRLF for an
example.
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
value |
The selected value in this enumeration.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
EnumeratedAttribute() |
bean constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsValue(java.lang.String value) |
Is this value included in the enumeration?
|
int |
getIndex() |
|
static EnumeratedAttribute |
getInstance(java.lang.Class<? extends EnumeratedAttribute> clazz,
java.lang.String value) |
Factory method for instantiating EAs via API in a more
developer friendly way.
|
java.lang.String |
getValue() |
|
abstract java.lang.String[] |
getValues() |
This is the only method a subclass needs to implement.
|
int |
indexOfValue(java.lang.String value) |
get the index of a value in this enumeration.
|
void |
setValue(java.lang.String value) |
Invoked by
IntrospectionHelper. |
java.lang.String |
toString() |
Convert the value to its string form.
|
public abstract java.lang.String[] getValues()
public static EnumeratedAttribute getInstance(java.lang.Class<? extends EnumeratedAttribute> clazz, java.lang.String value) throws BuildException
clazz - Class, extending EA, which to instantiatevalue - The value to set on that EABuildException - If the class could not be found or the value
is not valid for the given EA-class.public final void setValue(java.lang.String value)
throws BuildException
IntrospectionHelper.value - the String value of the attributeBuildException - if the value is not valid for the attributepublic final boolean containsValue(java.lang.String value)
value - the String value to look uppublic final int indexOfValue(java.lang.String value)
value - the string value to look for.getValues()public final java.lang.String getValue()
public final int getIndex()
getValues()public java.lang.String toString()
toString in class java.lang.Object