org.jenkinsci.plugins.viewer
Class XPathConfig
java.lang.Object
org.jenkinsci.lib.configprovider.model.Config
org.jenkinsci.plugins.viewer.XPathConfig
- All Implemented Interfaces:
- Serializable
public class XPathConfig
- extends org.jenkinsci.lib.configprovider.model.Config
Represents a config viewer item.
- Author:
- c031
- See Also:
- Serialized Form
| Fields inherited from class org.jenkinsci.lib.configprovider.model.Config |
comment, content, id, name |
| Methods inherited from class org.jenkinsci.lib.configprovider.model.Config |
toString |
NOT_ASSIGNED
public static final String NOT_ASSIGNED
- See Also:
- Constant Field Values
XPathConfig
@DataBoundConstructor
public XPathConfig(String id,
String name,
String comment,
String content)
- Constructor
- Parameters:
id - Config ID, automatcally created.name - Config name, what config part to show.comment - comment, what the config means.content - holds the xpath expression.
getXpath
public String getXpath()
- Returns the xpath expression.
- Returns:
- the xpath expression
setXpath
public void setXpath(String xpath)
- Parameters:
xpath - the xpath to set
getDistinctXmlBlocks
public List<XmlBlock> getDistinctXmlBlocks()
- Returns the map of different xml blocks with corresponding config.xml files selected by the given xpath
expression.
- Returns:
- the map of different xml blocks
getXmlBlock
public org.dom4j.Element getXmlBlock(File xmlFile)
- Returns the xml block from the given file using the given xpath expression.
- Returns:
- the xml block
Copyright © 2004-2012. All Rights Reserved.