Modifier and Type | Optional Element and Description |
---|---|
Class |
dataType
Specifies the data type.
|
String |
defaultValue
Specifies the default value of the attribute.
|
boolean |
key
Indicates that this property becomes the name of the component.
|
boolean |
reference
Indicates that this property is a reference to another
configured inhabitant.
|
boolean |
required
Indicates that this attribute is required.
|
String |
value
Attribute name.
|
boolean |
variableExpansion
Indicates that the variable expansion should be performed on this proeprty.
|
public abstract String value
If this value is omitted, the default name is inferred from the field/method name. First, if this is a method and the name starts with "set", then "set" will be trimmed off.
Then names are tokenized according to the camel case word separator, then tokens are combined with '-', then finally the whole thing is converted to the lower case.
Therefore, for example, a field name "httpBufferSize" would yield "http-buffer-size", and a method name "setThreadCount" would yield "thread-count"
public abstract boolean key
public abstract boolean required
To specify the default value, simply use the field initializer to set it to a certain value. The field/method values are only set when the value is present.
public abstract boolean reference
Element.reference()
for more details of the semantics.
When a reference property is a collection/array, then the key values are separated by ',' with surrounding whitespaces ignored. That is, it can be things like " foo , bar " (which would mean the same thing as "foo,bar".)
public abstract boolean variableExpansion
Element.variableExpansion()
for more details.public abstract String defaultValue
public abstract Class dataType
DataType}
Copyright © 2018. All rights reserved.