| Modifier and Type | Class and Description |
|---|---|
| private static class | RuntimeConfigurable.AttributeComponentInformation
contains the attribute component name and boolean restricted set to true when the attribute is in one of the name spaces managed by ant (if and unless currently) |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private LinkedHashMap | attributeMap
Attribute names and values. |
| private transient AttributeList | attributes
XML attributes for the element. |
| private StringBuffer | characters
Text appearing within the element. |
| private List | children
List of child element wrappers. |
| private String | elementTag
Name of the element to configure. |
| private String | id
the "id" of this Element if it has one |
| private transient boolean | |
| private String | polyType
the polymorphic type |
| private boolean | proxyConfigured
Indicates if the wrapped object has been configured |
| private static final long | serialVersionUID
Serialization version |
| private transient Object | wrappedObject
The element to configure. |
| Access | Constructor and Description |
|---|---|
| public | RuntimeConfigurable(Object
The element to configure. Must not be proxy, String null.The tag name generating this element. elementTag)Sole constructor creating a wrapper for the specified object. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addChild(RuntimeConfigurable
The child element wrapper to add to this one.
Must not be child)null.Adds a child element to the wrapped element. |
| public synchronized void | |
| public synchronized void | addText(char[]
A character array of the text within the element.
Must not be buf, int null.The start element in the array. start, int The number of characters to read from the array. count)Adds characters from #PCDATA areas to the wrapped element. |
| public void | applyPreSet(RuntimeConfigurable
a r)RuntimeConfigurable value.Apply presets, attributes and text are set if not currently set. |
| private String | |
| public synchronized Hashtable | |
| public synchronized AttributeList | Returns: An AttributeList representing the attributes defined in the XML for this element. May benull.
Deprecated
Deprecated since Ant 1.6 in favor of
Returns the list of attributes for the wrapped element.
getAttributeMap.
|
| pack-priv synchronized RuntimeConfigurable | Returns: The child wrapper at positionindex within the
list.The index of the child to return. index)Returns the child wrapper at the specified position within the list. |
| public synchronized Enumeration | Returns: an enumeration of the child wrappers.Returns an enumeration of all child wrappers. |
| public synchronized String | Returns: The tag name of the wrapped element. This is unlikely to benull, but may be.Returns the tag name of the wrapped element. |
| public synchronized String | |
| public synchronized String | Returns: the ant component type name, null if not set.Get the polymorphic type for this element. |
| public synchronized Object | Returns: the object whose configure is held by this instance.Get the object for which this RuntimeConfigurable holds the configuration information. |
| public synchronized StringBuffer | |
| public boolean | Returns: true if enabled, false if any of the ant attributes return false.the UE that owns this RC. owner)Check if an UE is enabled. |
| private RuntimeConfigurable. | Returns: AttributeComponentInformation instancethe name of the attribute. name, ComponentHelper current component helper componentHelper)
|
| public void | maybeConfigure(Project
The project containing the wrapped element.
Must not be p)null.Configures the wrapped element and all its children. |
| public synchronized void | maybeConfigure(Project
The project containing the wrapped element.
Must not be p, boolean null.ignored. configureChildren)Configures the wrapped element. |
| public void | reconfigure(Project
the project instance for this configuration. p)Reconfigure the element, even if it has already been configured. |
| public synchronized void | |
| public synchronized void | setAttribute(String
the name of the attribute. name, String the attribute's value. value)Set an attribute to a given value. |
| public synchronized void | setAttribute(String
the name of the attribute. name, Object the attribute's value. value)Set an attribute to a given value. |
| public synchronized void | setAttributes(AttributeList
List of attributes defined in the XML for this
element. May be attributes)null.
Deprecated
since 1.6.x.
Sets the attributes for the wrapped element.
|
| pack-priv synchronized void | setCreator(IntrospectionHelper.
the creator object. creatorSets the creator of the element to be configured used to store the element in the parent. |
| public synchronized void | |
| public synchronized void | setPolyType(String
the ant component type name, null if not set. polyType)Set the polymorphic type for this element. |
| public synchronized void |
| attributeMap | back to summary |
|---|---|
| private LinkedHashMap<String, Object> attributeMap Attribute names and values. While the XML spec doesn't require preserving the order (AFAIK), some ant tests do rely on the exact order. The only exception to this order is the treatment of refid. A number of datatypes check if refid is set when other attributes are set. This check will not work if the build script has the other attribute before the "refid" attribute, so now (ANT 1.7) the refid attribute will be processed first. | |
| attributes | back to summary |
|---|---|
| private transient AttributeList attributes
Deprecated since 1.6.x XML attributes for the element. | |
| characters | back to summary |
|---|---|
| private StringBuffer characters Text appearing within the element. | |
| children | back to summary |
|---|---|
| private List<RuntimeConfigurable> children List of child element wrappers. | |
| elementTag | back to summary |
|---|---|
| private String elementTag Name of the element to configure. | |
| id | back to summary |
|---|---|
| private String id the "id" of this Element if it has one | |
| namespacedAttribute | back to summary |
|---|---|
| private transient boolean namespacedAttribute | |
| polyType | back to summary |
|---|---|
| private String polyType the polymorphic type | |
| proxyConfigured | back to summary |
|---|---|
| private boolean proxyConfigured Indicates if the wrapped object has been configured | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serialization version | |
| wrappedObject | back to summary |
|---|---|
| private transient Object wrappedObject The element to configure. It is only used during maybeConfigure. | |
| RuntimeConfigurable | back to summary |
|---|---|
| public RuntimeConfigurable(Object proxy, String elementTag) Sole constructor creating a wrapper for the specified object. | |
| addChild | back to summary |
|---|---|
| public synchronized void addChild(RuntimeConfigurable child) Adds a child element to the wrapped element.
| |
| addText | back to summary |
|---|---|
| public synchronized void addText(String data) Adds characters from #PCDATA areas to the wrapped element.
| |
| addText | back to summary |
|---|---|
| public synchronized void addText(char[] buf, int start, int count) Adds characters from #PCDATA areas to the wrapped element.
| |
| applyPreSet | back to summary |
|---|---|
| public void applyPreSet(RuntimeConfigurable r) Apply presets, attributes and text are set if not currently set. Nested elements are prepended.
| |
| attrToComponent | back to summary |
|---|---|
| private String attrToComponent(String a) | |
| getAttributeMap | back to summary |
|---|---|
| public synchronized Hashtable Return the attribute map. | |
| getAttributes | back to summary |
|---|---|
| public synchronized AttributeList getAttributes()
Deprecated Deprecated since Ant 1.6 in favor of Returns the list of attributes for the wrapped element.
| |
| getChild | back to summary |
|---|---|
| pack-priv synchronized RuntimeConfigurable getChild(int index) Returns the child wrapper at the specified position within the list.
| |
| getChildren | back to summary |
|---|---|
| public synchronized Enumeration Returns an enumeration of all child wrappers.
| |
| getElementTag | back to summary |
|---|---|
| public synchronized String getElementTag() Returns the tag name of the wrapped element.
| |
| getId | back to summary |
|---|---|
| public synchronized String getId() Returns the id for this element.
| |
| getPolyType | back to summary |
|---|---|
| public synchronized String getPolyType() Get the polymorphic type for this element.
| |
| getProxy | back to summary |
|---|---|
| public synchronized Object getProxy() Get the object for which this RuntimeConfigurable holds the configuration information.
| |
| getText | back to summary |
|---|---|
| public synchronized StringBuffer getText() Get the text content of this element. Various text chunks are concatenated, there is no way (currently) of keeping track of multiple fragments.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(UnknownElement owner) Check if an UE is enabled. This looks tru the attributes and checks if there are any Ant attributes, and if so, the method calls the isEnabled() method on them.
| |
| isRestrictedAttribute | back to summary |
|---|---|
private RuntimeConfigurable.
| |
| maybeConfigure | back to summary |
|---|---|
| public void maybeConfigure(Project p) throws BuildException Configures the wrapped element and all its children. The attributes and text for the wrapped element are configured, and then each child is configured and added. Each time the wrapper is configured, the attributes and text for it are reset.
If the element has an
| |
| maybeConfigure | back to summary |
|---|---|
| public synchronized void maybeConfigure(Project p, boolean configureChildren) throws BuildException Configures the wrapped element. The attributes and text for the wrapped element are configured. Each time the wrapper is configured, the attributes and text for it are reset.
If the element has an
| |
| reconfigure | back to summary |
|---|---|
| public void reconfigure(Project p) Reconfigure the element, even if it has already been configured.
| |
| removeAttribute | back to summary |
|---|---|
| public synchronized void removeAttribute(String name) Delete an attribute. Not for the faint of heart.
| |
| setAttribute | back to summary |
|---|---|
| public synchronized void setAttribute(String name, String value) Set an attribute to a given value. | |
| setAttribute | back to summary |
|---|---|
| public synchronized void setAttribute(String name, Object value) Set an attribute to a given value. | |
| setAttributes | back to summary |
|---|---|
| public synchronized void setAttributes(AttributeList attributes)
Deprecated since 1.6.x. Sets the attributes for the wrapped element.
| |
| setCreator | back to summary |
|---|---|
| pack-priv synchronized void setCreator(IntrospectionHelper. Sets the creator of the element to be configured used to store the element in the parent.
| |
| setElementTag | back to summary |
|---|---|
| public synchronized void setElementTag(String elementTag) Set the element tag.
| |
| setPolyType | back to summary |
|---|---|
| public synchronized void setPolyType(String polyType) Set the polymorphic type for this element.
| |
| setProxy | back to summary |
|---|---|
| public synchronized void setProxy(Object proxy) Sets the element to configure.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean |
| componentName | back to summary |
|---|---|
| pack-priv String componentName | |
| restricted | back to summary |
|---|---|
| pack-priv boolean restricted | |
| AttributeComponentInformation | back to summary |
|---|---|
| private AttributeComponentInformation(String componentName, boolean restricted) | |
| getComponentName | back to summary |
|---|---|
| public String getComponentName() | |
| isRestricted | back to summary |
|---|---|
| public boolean isRestricted() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| EnableAttributeConsumer | back to summary |
|---|---|
| private EnableAttributeConsumer() | |
| add | back to summary |
|---|---|
public void add(EnableAttribute b)
| |