org.jenkinsci.plugins.viewer
Class XPathConfig

java.lang.Object
  extended by org.jenkinsci.lib.configprovider.model.Config
      extended by 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

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

NOT_ASSIGNED

public static final String NOT_ASSIGNED
See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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 List<org.dom4j.Element> getXmlBlock(File xmlFile)
Returns the xml block from the given file using the given xpath expression.

Returns:
the xml block

getId

public String getId()
Returns the config id

Returns:
the config id


Copyright © 2004-2012. All Rights Reserved.