org.granite.util.XMap.getXMLUtil()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中org.granite.util.XMap.getXMLUtil()方法的一些代码示例,展示了XMap.getXMLUtil()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMap.getXMLUtil()方法的具体详情如下:
包路径:org.granite.util.XMap
类名称:XMap
方法名:getXMLUtil

XMap.getXMLUtil介绍

暂无

代码示例

代码示例来源:origin: org.graniteds/granite-client-javafx

/**
 * Constructs a new XMap instance.
 * 
 * @param root the name of the root element (may be null).
 */
public XMap(String root) {
  if (root != null) {
    this.root = getXMLUtil().newDocument(root).getDocumentElement();
  }
}

代码示例来源:origin: org.graniteds/granite-client-java

/**
 * Returns a "pretty" XML representation of the root element of this XMap (may be null).
 * 
 * @return a "pretty" XML representation of the root element of this XMap (may be null).
 */
@Override
public String toString() {
  return getXMLUtil().toNodeString(root);
}

代码示例来源:origin: org.graniteds/granite-client

/**
 * Returns a "pretty" XML representation of the root element of this XMap (may be null).
 * 
 * @return a "pretty" XML representation of the root element of this XMap (may be null).
 */
@Override
public String toString() {
  return getXMLUtil().toNodeString(root);
}

代码示例来源:origin: org.graniteds/granite-client-javafx

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client

/**
 * Constructs a new XMap instance.
 * 
 * @param root the name of the root element (may be null).
 */
public XMap(String root) {
  if (root != null) {
    this.root = getXMLUtil().newDocument(root).getDocumentElement();
  }
}

代码示例来源:origin: org.graniteds/granite-server

/**
 * Constructs a new XMap instance.
 * 
 * @param root the name of the root element (may be null).
 */
public XMap(String root) {
  if (root != null) {
    this.root = getXMLUtil().newDocument(root).getDocumentElement();
  }
}

代码示例来源:origin: org.graniteds/granite-server

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client-javafx

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-server

/**
 * Returns a "pretty" XML representation of the root element of this XMap (may be null).
 * 
 * @return a "pretty" XML representation of the root element of this XMap (may be null).
 */
@Override
public String toString() {
  return getXMLUtil().toNodeString(root);
}

代码示例来源:origin: org.graniteds/granite-client-javafx

/**
 * Returns a "pretty" XML representation of the root element of this XMap (may be null).
 * 
 * @return a "pretty" XML representation of the root element of this XMap (may be null).
 */
@Override
public String toString() {
  return getXMLUtil().toNodeString(root);
}

代码示例来源:origin: org.graniteds/granite-server

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client-java

/**
 * Constructs a new XMap instance.
 * 
 * @param root the name of the root element (may be null).
 */
public XMap(String root) {
  if (root != null) {
    this.root = getXMLUtil().newDocument(root).getDocumentElement();
  }
}

代码示例来源:origin: org.graniteds/granite-client-java

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client-java

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client

/**
 * Constructs a new XMap instance from an XML input stream.
 * 
 * @param input an XML input stream.
 */
public XMap(InputStream input, EntityResolver resolver) throws IOException, SAXException {
  this.root = getXMLUtil().loadDocument(input, resolver, null).getDocumentElement();
}

代码示例来源:origin: org.graniteds/granite-client-javafx

/**
 * Returns the text value of the element (or attribute or text) that matches the supplied
 * XPath expression. 
 * 
 * @param key an XPath expression.
 * @return the text value of the matched element or null if the element does not exist or have
 *         no value.
 * @throws RuntimeException if the XPath expression isn't correct.
 */
public String get(String key) {
  if (root == null)
    return null;
  try {
    return getXMLUtil().getNormalizedValue(getXMLUtil().selectSingleNode(root, key));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.graniteds/granite-server

/**
 * Returns the text value of the element (or attribute or text) that matches the supplied
 * XPath expression. 
 * 
 * @param key an XPath expression.
 * @return the text value of the matched element or null if the element does not exist or have
 *         no value.
 * @throws RuntimeException if the XPath expression isn't correct.
 */
public String get(String key) {
  if (root == null)
    return null;
  try {
    return getXMLUtil().getNormalizedValue(getXMLUtil().selectSingleNode(root, key));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.graniteds/granite-client

/**
 * Returns the text value of the element (or attribute or text) that matches the supplied
 * XPath expression. 
 * 
 * @param key an XPath expression.
 * @return the text value of the matched element or null if the element does not exist or have
 *         no value.
 * @throws RuntimeException if the XPath expression isn't correct.
 */
public String get(String key) {
  if (root == null)
    return null;
  try {
    return getXMLUtil().getNormalizedValue(getXMLUtil().selectSingleNode(root, key));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.graniteds/granite-client-java

/**
 * Returns the text value of the element (or attribute or text) that matches the supplied
 * XPath expression. 
 * 
 * @param key an XPath expression.
 * @return the text value of the matched element or null if the element does not exist or have
 *         no value.
 * @throws RuntimeException if the XPath expression isn't correct.
 */
public String get(String key) {
  if (root == null)
    return null;
  try {
    return getXMLUtil().getNormalizedValue(getXMLUtil().selectSingleNode(root, key));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

相关文章