public class SecurityBeansXmlFacet extends AbstractXmlResourceFacet
xmlParserFactory, xPathFactory
MAIN_PROFILE
Constructor and Description |
---|
SecurityBeansXmlFacet() |
Modifier and Type | Method and Description |
---|---|
protected Map<XPathExpression,Collection<Node>> |
getElementsToInsert(XPath xPath,
ElementFactory elemFactory)
Get DOM nodes to write to an XML configuration file.
|
protected String |
getRelPath()
Get the relative path of XML file to be configured by this facet.
|
protected Map<XPathExpression,Node> |
getRemovalMap(XPath xPath,
ElementFactory elemFactory)
Return a map of xpath expressions of nodes to be replaced to their
replacements, used when this facet is uninstalled.
|
protected Map<XPathExpression,Node> |
getReplacements(XPath xPath,
ElementFactory elemFactory)
Get a Map of nodes to be replaced in an XML configuration file.
|
getElementsToVerify, getResFile, install, isInstalled, uninstall
addDependenciesToProfile, error, getDependency, getDependency, getProject, hasDependency, hasProvidedDependency, warning
equals, getFaceted, hashCode, setFaceted
protected Map<XPathExpression,Node> getRemovalMap(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getRemovalMap
in class AbstractXmlResourceFacet
xPath
- Used to generate XPathExpressions
.elemFactory
- Used to generate Nodes
.ParserConfigurationException
XPathExpressionException
protected Map<XPathExpression,Collection<Node>> getElementsToInsert(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getElementsToInsert
in class AbstractXmlResourceFacet
xPath
- Used to generate xpath expressions for finding nodes to add
children to.elemFactory
- The returned nodes should be created with this.XPathExpressions
(for finding
parent nodes), to collections of Nodes
to add as
children.ParserConfigurationException
XPathExpressionException
protected Map<XPathExpression,Node> getReplacements(XPath xPath, ElementFactory elemFactory) throws ParserConfigurationException, XPathExpressionException
AbstractXmlResourceFacet
getReplacements
in class AbstractXmlResourceFacet
xPath
- Used to generate xpath expressions for finding nodes to replace.elemFactory
- The returned nodes should be created with this.XPathExpressions
(for finding
nodes to replace), to replacement Nodes
to add as
children.ParserConfigurationException
XPathExpressionException
protected String getRelPath()
AbstractXmlResourceFacet
getRelPath
in class AbstractXmlResourceFacet
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.