public class ConfigurationXmlUtil extends Object
Constructor and Description |
---|
ConfigurationXmlUtil() |
Modifier and Type | Method and Description |
---|---|
static List<XmlNode> |
combineFindNodeList(String nodeName,
XmlNode applicationNode,
XmlNode componentNode)
简单合并
|
static List<XmlNode> |
combineSubList(String nodeName,
XmlNode applicationNode,
XmlNode componentNode)
简单合并
|
static List<XmlNode> |
combineSubList(XmlNode applicationNode,
XmlNode componentNode)
简单合并两个XmlNode
|
static List<XmlNode> |
combineSubList(XmlNode applicationNode,
XmlNode componentNode,
String nodeName,
String keyPropertyName)
根据关键属性进行子节点合并
|
static XmlNode |
combineXmlNode(XmlNode applicationNode,
XmlNode componentNode)
合并单个节点
|
static String |
getPropertyName(XmlNode applicationNode,
XmlNode componentNode,
String attributeName)
获取属性值,应用配置的优先级更高
|
static String |
getPropertyName(XmlNode applicationNode,
XmlNode componentNode,
String attributeName,
String defaultValue)
获取属性值,应用配置的优先级更高。
如果读取的结果为Null或为"",则返回默认值 |
static XmlNode |
parseXmlFromFileObject(FileObject fileObject)
将文件内容读取为xmlnode对象
|
public static List<XmlNode> combineSubList(XmlNode applicationNode, XmlNode componentNode, String nodeName, String keyPropertyName)
applicationNode
- componentNode
- keyPropertyName
- public static XmlNode combineXmlNode(XmlNode applicationNode, XmlNode componentNode)
applicationNode
- componentNode
- public static List<XmlNode> combineSubList(XmlNode applicationNode, XmlNode componentNode)
applicationNode
- componentNode
- public static List<XmlNode> combineSubList(String nodeName, XmlNode applicationNode, XmlNode componentNode)
nodeName
- applicationNode
- componentNode
- public static List<XmlNode> combineFindNodeList(String nodeName, XmlNode applicationNode, XmlNode componentNode)
nodeName
- applicationNode
- componentNode
- public static XmlNode parseXmlFromFileObject(FileObject fileObject) throws IOException
fileObject
- IOException
public static String getPropertyName(XmlNode applicationNode, XmlNode componentNode, String attributeName)
applicationNode
- componentNode
- attributeName
- Copyright © 2006–2018 TinyGroup. All rights reserved.