Modifier and Type | Class and Description |
---|---|
public static class | PropertySet.BuiltinPropertySetName
Used for propertyref's builtin attribute. |
public static class | PropertySet.PropertyRef
This is a nested class containing a reference to some properties and optionally a source of properties. |
Modifier and Type | Field and Description |
---|---|
private Set | |
private boolean | |
private Mapper | |
private boolean | |
private boolean | noAttributeSet
Flag which tracks whether any attribute has been set; used by
|
private List | |
private List |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
private void | |
public void | addPropertyref(PropertySet.
a property reference. refAdd a property reference (nested element) to the references to be used. |
public void | |
public void | appendBuiltin(PropertySet.
the type of builtin properties. bAllow builtin (all, system or commandline) properties in the set. |
public void | |
public void | appendPrefix(String
the prefix to use. prefix)Allow properties whose names start with a prefix in the set. |
public void | appendRegex(String
the regular expression to use. regex)Allow properties whose names match a regex in the set. |
protected final void | |
public Mapper | |
protected synchronized void | dieOnCircularReference(Stack<Object>
the stack of references to check. stk, Project the project to use to dereference the references. p)Overrides org. |
private Map | |
public boolean | Returns: true if the property set is to be evaluated each time it is used.Get the dynamic attribute. |
private Map | |
public Mapper | |
public Properties | Returns: the properties for this propertyset.This is the operation to get the existing or recalculated properties. |
private Map | |
private Set | |
protected PropertySet | Returns: the referenced PropertySet.Performs the check for circular references and returns the referenced PropertySet. |
public boolean | Returns: whether this is a filesystem-only resource collection.Implements org. |
public Iterator | Returns: an Iterator of Resources.Implements java. |
public void | setDynamic(boolean
if true, reevaluate the property set each time
the set is used. if false cache the property set
the first time and use the cached set on subsequent
occasions. dynamic)Set whether to reevaluate the set every time the set is used. |
public void | |
public void | |
public final void | setRefid(Reference
the reference this datatype should point to. r)Overrides org. |
public int | Returns: the size of this ResourceCollection.Implements org. |
public String | Returns: a string rep of this object.Overrides org. |
cachedNames | back to summary |
---|---|
private Set<String> cachedNames |
dynamic | back to summary |
---|---|
private boolean dynamic |
mapper | back to summary |
---|---|
private Mapper mapper |
negate | back to summary |
---|---|
private boolean negate |
noAttributeSet | back to summary |
---|---|
private boolean noAttributeSet Flag which tracks whether any attribute has been set; used by
|
ptyRefs | back to summary |
---|---|
private List<PropertySet. |
setRefs | back to summary |
---|---|
private List<PropertySet> setRefs |
PropertySet | back to summary |
---|---|
public PropertySet() |
add | back to summary |
---|---|
public void add(FileNameMapper fileNameMapper) Add a nested FileNameMapper.
|
addPropertyNames | back to summary |
---|---|
private void addPropertyNames(Set<String> names, Map<String, Object> props) |
addPropertyref | back to summary |
---|---|
public void addPropertyref(PropertySet. Add a property reference (nested element) to the references to be used.
|
addPropertyset | back to summary |
---|---|
public void addPropertyset(PropertySet ref) Add another property set to this set.
|
appendBuiltin | back to summary |
---|---|
public void appendBuiltin(PropertySet. Allow builtin (all, system or commandline) properties in the set.
|
appendName | back to summary |
---|---|
public void appendName(String name) Allow properties of a particular name in the set.
|
appendPrefix | back to summary |
---|---|
public void appendPrefix(String prefix) Allow properties whose names start with a prefix in the set.
|
appendRegex | back to summary |
---|---|
public void appendRegex(String regex) Allow properties whose names match a regex in the set.
|
assertNotReference | back to summary |
---|---|
protected final void assertNotReference() Ensures this data type is not a reference. Calling this method as the first line of every bean method of this data type (setXyz, addXyz, createXyz) ensure proper handling of the refid attribute.
|
createMapper | back to summary |
---|---|
public Mapper createMapper() Create a mapper to map the property names.
|
dieOnCircularReference | back to summary |
---|---|
protected synchronized void dieOnCircularReference(Stack<Object> stk, Project p) throws BuildException Overrides org. Doc from org. Check to see whether any DataType we hold references to is included in the Stack (which holds all DataType instances that directly or indirectly reference this instance, including this instance itself). If one is included, throw a BuildException created by This implementation is appropriate only for a DataType that cannot hold other DataTypes as children. The general contract of this method is that it shouldn't do
anything if
|
getAllSystemProperties | back to summary |
---|---|
private Map Convert the system properties to a Map. Use stringPropertyNames to get the list of properties (including default ones). |
getDynamic | back to summary |
---|---|
public boolean getDynamic() Get the dynamic attribute.
|
getEffectiveProperties | back to summary |
---|---|
private Map |
getMapper | back to summary |
---|---|
public Mapper getMapper() Get the mapper attribute.
|
getProperties | back to summary |
---|---|
public Properties getProperties() This is the operation to get the existing or recalculated properties.
|
getPropertyMap | back to summary |
---|---|
private Map |
getPropertyNames | back to summary |
---|---|
private Set |
getRef | back to summary |
---|---|
protected PropertySet getRef() Performs the check for circular references and returns the referenced PropertySet.
|
isFilesystemOnly | back to summary |
---|---|
public boolean isFilesystemOnly() Implements org. Fulfill the ResourceCollection contract.
|
iterator | back to summary |
---|---|
public Iterator Implements java. Fulfill the ResourceCollection interface. |
setDynamic | back to summary |
---|---|
public void setDynamic(boolean dynamic) Set whether to reevaluate the set every time the set is used. Default is true.
|
setMapper | back to summary |
---|---|
public void setMapper(String type, String from, String to) Set a mapper to change property names. |
setNegate | back to summary |
---|---|
public void setNegate(boolean negate) Set whether to negate results. If "true", all properties not selected by nested elements will be returned. Default is "false".
|
setRefid | back to summary |
---|---|
public final void setRefid(Reference r) Overrides org. Sets the value of the refid attribute.
|
size | back to summary |
---|---|
public int size() Implements org. Fulfill the ResourceCollection contract.
|
toString | back to summary |
---|---|
public String toString() Overrides org. A debug toString. This gets a comma separated list of key=value pairs for the properties in the set. The output order is sorted according to the keys' natural order. |
Modifier and Type | Field and Description |
---|---|
pack-priv static final String | |
pack-priv static final String | |
pack-priv static final String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public String[] | getValues()
Implements abstract org. |
ALL | back to summary |
---|---|
pack-priv static final String ALL |
COMMANDLINE | back to summary |
---|---|
pack-priv static final String COMMANDLINE |
SYSTEM | back to summary |
---|---|
pack-priv static final String SYSTEM |
BuiltinPropertySetName | back to summary |
---|---|
public BuiltinPropertySetName() |
getValues | back to summary |
---|---|
public String[] getValues() Implements abstract org. Doc from org. This is the only method a subclass needs to implement.. |
Modifier and Type | Field and Description |
---|---|
private String | |
private int | |
private String | |
private String | |
private String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private void | |
public void | setBuiltin(PropertySet.
an enumerated bBuildinPropertySetName value.Builtin property names - all, system or commandline. |
public void | |
public void | |
public void | |
public String | Returns: a string version of this object.Overrides java. |
builtin | back to summary |
---|---|
private String builtin |
count | back to summary |
---|---|
private int count |
name | back to summary |
---|---|
private String name |
prefix | back to summary |
---|---|
private String prefix |
regex | back to summary |
---|---|
private String regex |
PropertyRef | back to summary |
---|---|
public PropertyRef() |
assertValid | back to summary |
---|---|
private void assertValid(String attr, String value) |
setBuiltin | back to summary |
---|---|
public void setBuiltin(PropertySet. Builtin property names - all, system or commandline.
|
setName | back to summary |
---|---|
public void setName(String name) Set the name.
|
setPrefix | back to summary |
---|---|
public void setPrefix(String prefix) Set the prefix to use.
|
setRegex | back to summary |
---|---|
public void setRegex(String regex) Set the regular expression to use to filter the properties.
|
toString | back to summary |
---|---|
public String toString() Overrides java. A debug toString(). |