|
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.ConfigurationElementImpl
public class ConfigurationElementImpl
| Constructor Summary | |
|---|---|
ConfigurationElementImpl()
|
|
| Method Summary | |
|---|---|
void |
addChild(PluginElement 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()
|
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()
|
void |
setChildren(List<PluginElement> children)
|
void |
setName(String name)
|
void |
setText(String text)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationElementImpl()
| Method Detail |
|---|
public void setName(String name)
public void setText(String text)
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 void addChild(PluginElement element)
public List<PluginElement> getChildren()
getChildren in interface ConfigurationElementpublic void setChildren(List<PluginElement> children)
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 | |||||||||