public interface ConfigurationElement extends PluginElement
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes()
Returns an immutable map of the element attributes
|
ConfigurationElement |
getChildByContent(String content)
Returns the child element that contains the given content.
|
ConfigurationElement |
getChildByContent(String content,
boolean directChildsOnly)
Returns the child element that contains the given content.
|
ConfigurationElement |
getChildByName(String name)
Checks if the child element that has the given name exists.
|
ConfigurationElement |
getChildByName(String name,
boolean directChildsOnly)
Returns the child element that has the given name exists.
|
List<PluginElement> |
getChildren() |
String |
getName() |
String |
getText() |
boolean |
hasChildByContent(String content)
Checks if a child element is present with the given content.
|
boolean |
hasChildByContent(String content,
boolean directChildsOnly)
Checks if a child element is present with the given content.
|
boolean |
hasChildByName(String name)
Checks if the child element that has the given name exists.
|
boolean |
hasChildByName(String name,
boolean directChildsOnly)
Checks if the child element that has the given name exists.
|
boolean |
hasChildren() |
boolean |
isPlugin() |
String getName()
boolean isPlugin()
boolean hasChildren()
String getText()
List<PluginElement> getChildren()
boolean hasChildByContent(String content, boolean directChildsOnly)
content
- The content to filter on.directChildsOnly
- True if only direct elements should be matchedboolean hasChildByContent(String content)
content
- The content to filter on.hasChildByContent(String, boolean)
ConfigurationElement getChildByContent(String content, boolean directChildsOnly)
content
- The content to filter on.directChildsOnly
- True if only direct elements should be matchedConfigurationElementNotFoundException
if the element was not
found.ConfigurationElement getChildByContent(String content)
content
- The content to filter on.ConfigurationElementNotFoundException
if the element was not
found.getChildByContent(String, boolean)
boolean hasChildByName(String name, boolean directChildsOnly)
name
- The element name to filter on.directChildsOnly
- True if only direct elements should be matchedConfigurationElementNotFoundException
if the element was not
found.boolean hasChildByName(String name)
name
- The element name to filter on.ConfigurationElementNotFoundException
if the element was not
found.ConfigurationElement getChildByName(String name, boolean directChildsOnly)
name
- The element name to filter on.directChildsOnly
- True if only direct elements should be matchedConfigurationElementNotFoundException
if the element was not
found.ConfigurationElement getChildByName(String name)
name
- The element name to filter on.ConfigurationElementNotFoundException
if the element was not
found.Copyright © 2015 JBoss by Red Hat. All rights reserved.