|
Forge - Parent 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.maven.plugins.ConfigurationElementBuilder
public class ConfigurationElementBuilder
Method Summary | |
---|---|
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 |
hasChilderen()
|
boolean |
isPlugin()
|
ConfigurationElementBuilder |
setName(String name)
|
ConfigurationElementBuilder |
setText(String text)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
getName
in interface ConfigurationElement
public boolean isPlugin()
isPlugin
in interface ConfigurationElement
public boolean hasChilderen()
hasChilderen
in interface ConfigurationElement
public String getText()
getText
in interface ConfigurationElement
public 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 ConfigurationElement
public boolean hasChildByContent(String content, boolean directChildsOnly)
ConfigurationElement
hasChildByContent
in interface ConfigurationElement
content
- The content to filter on.directChildsOnly
- True if only direct elements should be matched
public boolean hasChildByContent(String content)
ConfigurationElement
hasChildByContent
in interface ConfigurationElement
content
- The content to filter on.
ConfigurationElement.hasChildByContent(String, boolean)
public ConfigurationElement getChildByContent(String content, boolean directChildsOnly)
ConfigurationElement
getChildByContent
in interface ConfigurationElement
content
- The content to filter on.directChildsOnly
- True if only direct elements should be matched
ConfigurationElementNotFoundException
if the element was not found.public ConfigurationElement getChildByContent(String content)
ConfigurationElement
getChildByContent
in interface ConfigurationElement
content
- The content to filter on.
ConfigurationElementNotFoundException
if the element was not found.ConfigurationElement.getChildByContent(String, boolean)
public boolean hasChildByName(String name, boolean directChildsOnly)
ConfigurationElement
hasChildByName
in interface ConfigurationElement
name
- The element name to filter on.directChildsOnly
- True if only direct elements should be matched
ConfigurationElementNotFoundException
if the element was not found.public boolean hasChildByName(String name)
ConfigurationElement
hasChildByName
in interface ConfigurationElement
name
- The element name to filter on.
ConfigurationElementNotFoundException
if the element was not found.public ConfigurationElement getChildByName(String name, boolean directChildsOnly)
ConfigurationElement
getChildByName
in interface ConfigurationElement
name
- The element name to filter on.directChildsOnly
- True if only direct elements should be matched
ConfigurationElementNotFoundException
if the element was not found.public ConfigurationElement getChildByName(String name)
ConfigurationElement
getChildByName
in interface ConfigurationElement
name
- The element name to filter on.
ConfigurationElementNotFoundException
if the element was not found.public String toString()
toString
in class Object
|
Forge - Parent 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |