public class ConfigurationElementBuilder extends Object implements ConfigurationElement
| Modifier and Type | Method and Description |
|---|---|
ConfigurationElementBuilder |
addChild(PluginElement element) |
ConfigurationElementBuilder |
addChild(String configElement) |
static ConfigurationElementBuilder |
create() |
static ConfigurationElementBuilder |
create(ConfigurationBuilder configurationBuilder) |
static ConfigurationElementBuilder |
create(ConfigurationElementBuilder elementBuilder) |
ConfigurationElementBuilder |
createConfigurationElement(String name) |
static ConfigurationElementBuilder |
createFromExisting(ConfigurationElement element) |
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() |
ConfigurationElementBuilder |
getParentElement() |
ConfigurationBuilder |
getParentPluginConfig() |
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() |
ConfigurationElementBuilder |
setName(String name) |
ConfigurationElementBuilder |
setText(String text) |
String |
toString() |
public String getName()
getName in interface ConfigurationElementpublic boolean isPlugin()
isPlugin in interface ConfigurationElementpublic boolean hasChildren()
hasChildren in interface ConfigurationElementpublic String getText()
getText in interface ConfigurationElementpublic ConfigurationElementBuilder setText(String text)
public ConfigurationElementBuilder addChild(String configElement)
public ConfigurationElementBuilder addChild(PluginElement element)
public ConfigurationBuilder getParentPluginConfig()
public ConfigurationElementBuilder getParentElement()
public static ConfigurationElementBuilder create()
public static ConfigurationElementBuilder create(ConfigurationBuilder configurationBuilder)
public static ConfigurationElementBuilder create(ConfigurationElementBuilder elementBuilder)
public static ConfigurationElementBuilder createFromExisting(ConfigurationElement element)
public ConfigurationElementBuilder setName(String name)
public ConfigurationElementBuilder createConfigurationElement(String name)
public List<PluginElement> getChildren()
getChildren in interface ConfigurationElementpublic boolean hasChildByContent(String content, boolean directChildsOnly)
ConfigurationElementhasChildByContent in interface ConfigurationElementcontent - The content to filter on.directChildsOnly - True if only direct elements should be matchedpublic boolean hasChildByContent(String content)
ConfigurationElementhasChildByContent in interface ConfigurationElementcontent - The content to filter on.ConfigurationElement.hasChildByContent(String, boolean)public ConfigurationElement getChildByContent(String content, boolean directChildsOnly)
ConfigurationElementgetChildByContent in interface ConfigurationElementcontent - The content to filter on.directChildsOnly - True if only direct elements should be matchedConfigurationElementNotFoundException if the element was not
found.public ConfigurationElement getChildByContent(String content)
ConfigurationElementgetChildByContent in interface ConfigurationElementcontent - The content to filter on.ConfigurationElementNotFoundException if the element was not
found.ConfigurationElement.getChildByContent(String, boolean)public boolean hasChildByName(String name, boolean directChildsOnly)
ConfigurationElementhasChildByName in interface ConfigurationElementname - The element name to filter on.directChildsOnly - True if only direct elements should be matchedConfigurationElementNotFoundException if the element was not
found.public boolean hasChildByName(String name)
ConfigurationElementhasChildByName in interface ConfigurationElementname - The element name to filter on.ConfigurationElementNotFoundException if the element was not
found.public ConfigurationElement getChildByName(String name, boolean directChildsOnly)
ConfigurationElementgetChildByName in interface ConfigurationElementname - The element name to filter on.directChildsOnly - True if only direct elements should be matchedConfigurationElementNotFoundException if the element was not
found.public ConfigurationElement getChildByName(String name)
ConfigurationElementgetChildByName in interface ConfigurationElementname - The element name to filter on.ConfigurationElementNotFoundException if the element was not
found.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.