|
Forge - Maven API 2.0.0.Alpha3 | |||||||||
| 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 |
hasChildren()
|
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 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 ConfigurationElement
public boolean hasChildByContent(String content,
boolean directChildsOnly)
ConfigurationElement
hasChildByContent in interface ConfigurationElementcontent - The content to filter on.directChildsOnly - True if only direct elements should be matched
public boolean hasChildByContent(String content)
ConfigurationElement
hasChildByContent in interface ConfigurationElementcontent - The content to filter on.
ConfigurationElement.hasChildByContent(String, boolean)
public ConfigurationElement getChildByContent(String content,
boolean directChildsOnly)
ConfigurationElement
getChildByContent in interface ConfigurationElementcontent - 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 ConfigurationElementcontent - 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 ConfigurationElementname - 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 ConfigurationElementname - The element name to filter on.
ConfigurationElementNotFoundException if the element was not
found.
public ConfigurationElement getChildByName(String name,
boolean directChildsOnly)
ConfigurationElement
getChildByName in interface ConfigurationElementname - 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 ConfigurationElementname - The element name to filter on.
ConfigurationElementNotFoundException if the element was not
found.public String toString()
toString in class Object
|
Forge - Maven API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||