|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkinsci.lib.configprovider.model.Config
org.jenkinsci.plugins.viewer.XPathConfig
public class XPathConfig
Represents a config viewer item.
| Field Summary | |
|---|---|
static String |
NOT_ASSIGNED
|
| Fields inherited from class org.jenkinsci.lib.configprovider.model.Config |
|---|
comment, content, id, name |
| Constructor Summary | |
|---|---|
XPathConfig(String id,
String name,
String comment,
String content)
Constructor |
|
| Method Summary | |
|---|---|
List<XmlBlock> |
getDistinctXmlBlocks()
Returns the map of different xml blocks with corresponding config.xml files selected by the given xpath expression. |
String |
getId()
Returns the config id |
List<org.dom4j.Element> |
getXmlBlock(File xmlFile)
Returns the xml block from the given file using the given xpath expression. |
String |
getXpath()
Returns the xpath expression. |
void |
setXpath(String xpath)
|
| Methods inherited from class org.jenkinsci.lib.configprovider.model.Config |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NOT_ASSIGNED
| Constructor Detail |
|---|
@DataBoundConstructor
public XPathConfig(String id,
String name,
String comment,
String content)
id - Config ID, automatcally created.name - Config name, what config part to show.comment - comment, what the config means.content - holds the xpath expression.| Method Detail |
|---|
public String getXpath()
public void setXpath(String xpath)
xpath - the xpath to setpublic List<XmlBlock> getDistinctXmlBlocks()
public List<org.dom4j.Element> getXmlBlock(File xmlFile)
public String getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||