gpt4 book ai didi

org.hl7.fhir.utilities.xml.XMLUtil.getNamedChild()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:30:40 28 4
gpt4 key购买 nike

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

XMLUtil.getNamedChild介绍

暂无

代码示例

代码示例来源:origin: jamesagnew/hapi-fhir

private String col(Element row, String name) {
  Element e = XMLUtil.getNamedChild(row, name);
  if (e == null)
    return null;
  String text = e.getTextContent();
  return text;
}

代码示例来源:origin: jamesagnew/hapi-fhir

private String getRubric(Element cls, String kind) {
 List<Element> rubrics = new ArrayList<Element>(); 
 XMLUtil.getNamedChildren(cls, "Rubric", rubrics);
 for (Element r : rubrics) {
  if (r.getAttribute("kind").equals(kind))
   return XMLUtil.getNamedChild(r,  "Label").getTextContent();
 }
 return null;
}

代码示例来源:origin: jamesagnew/hapi-fhir

private void processWorksheet(Element wk) throws FHIRException  {
 Element tbl = XMLUtil.getNamedChild(wk, "Table");
 processTable(tbl);
 for (Element row : XMLUtil.getNamedChildren(tbl, "Row"))
  processRow(row);      
 for (Element col : XMLUtil.getNamedChildren(tbl, "Column"))
  processCol(col);      
 for (Element wo : XMLUtil.getNamedChildren(wk, "WorksheetOptions"))
  processOptions(wo);      
}

代码示例来源:origin: jamesagnew/hapi-fhir

public static String getNamedChildAttribute(Element element, String name, String aname) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getAttribute(aname);
}

代码示例来源:origin: jamesagnew/hapi-fhir

Element xw = XMLUtil.getNamedChild(root, "ExcelWorkbook");
XMLUtil.deleteByName(xw, "WindowHeight");
XMLUtil.deleteByName(xw, "WindowWidth");

代码示例来源:origin: jamesagnew/hapi-fhir

public static String getNamedChildText(Element element, String name) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getTextContent();
}

代码示例来源:origin: jamesagnew/hapi-fhir

Element title = XMLUtil.getNamedChild(doc.getDocumentElement(), "Title");
vs.setVersion(title.getAttribute("version"));
vs.setName(title.getAttribute("name"));
vs.setImmutable(true);
Element identifier = XMLUtil.getNamedChild(doc.getDocumentElement(), "Identifier");
vs.setPublisher(identifier.getAttribute("authority"));
vs.addIdentifier(new Identifier().setValue(identifier.getAttribute("uid")));
List<Element> authors = new ArrayList<Element>(); 
XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(), "Authors"), "Author", authors);
for (Element a : authors)
 if (!a.getAttribute("name").contains("+"))
cs.setVersion(title.getAttribute("version"));
cs.setName(title.getAttribute("name"));
identifier = XMLUtil.getNamedChild(doc.getDocumentElement(), "Identifier");
cs.setPublisher(identifier.getAttribute("authority"));
cs.setIdentifier(new Identifier().setValue(identifier.getAttribute("uid")));
cs.setHierarchyMeaning(CodeSystemHierarchyMeaning.CLASSIFIEDWITH);
authors = new ArrayList<Element>(); 
XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(), "Authors"), "Author", authors);
for (Element a : authors)
 if (!a.getAttribute("name").contains("+"))

代码示例来源:origin: jamesagnew/hapi-fhir

public static String getNamedChildValue(Element element, String name) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getAttribute("value");
}

代码示例来源:origin: jamesagnew/hapi-fhir

CodeSystemUtilities.setNotSelectable(define, concept);
Element parent = XMLUtil.getNamedChild(cls, "SuperClass");
if (parent == null) {
 define.addConcept(concept);

代码示例来源:origin: jamesagnew/hapi-fhir

@Override
public WrapperElement getNamedChild(String name) {
 Element res = XMLUtil.getNamedChild(element, name);
 return res == null ? null : new DOMWrapperElement(res);
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-converter

private String getRubric(Element cls, String kind) {
 List<Element> rubrics = new ArrayList<Element>(); 
 XMLUtil.getNamedChildren(cls, "Rubric", rubrics);
 for (Element r : rubrics) {
  if (r.getAttribute("kind").equals(kind))
   return XMLUtil.getNamedChild(r,  "Label").getTextContent();
 }
 return null;
}

代码示例来源:origin: jamesagnew/hapi-fhir

public static void setNamedChildValue(Element element, String name, String value) throws FHIRException  {
 Element e = getNamedChild(element, name);
 if (e == null)
  throw new FHIRException("unable to find element "+name);
 e.setAttribute("value", value);
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

private void processWorksheet(Element wk) throws FHIRException  {
 Element tbl = XMLUtil.getNamedChild(wk, "Table");
 processTable(tbl);
 for (Element row : XMLUtil.getNamedChildren(tbl, "Row"))
  processRow(row);      
 for (Element col : XMLUtil.getNamedChildren(tbl, "Column"))
  processCol(col);      
 for (Element wo : XMLUtil.getNamedChildren(wk, "WorksheetOptions"))
  processOptions(wo);      
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-structures-r4

private String col(Element row, String name) {
  Element e = XMLUtil.getNamedChild(row, name);
  if (e == null)
    return null;
  String text = e.getTextContent();
  return text;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-converter

CodeSystemUtilities.setNotSelectable(define, concept);
Element parent = XMLUtil.getNamedChild(cls, "SuperClass");
if (parent == null) {
 define.addConcept(concept);

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

public static String getNamedChildValue(Element element, String name) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getAttribute("value");
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

public static String getNamedChildAttribute(Element element, String name, String aname) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getAttribute(aname);
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

public static String getNamedChildText(Element element, String name) {
 Element e = getNamedChild(element, name);
 return e == null ? null : e.getTextContent();
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-validation

@Override
public WrapperElement getNamedChild(String name) {
 Element res = XMLUtil.getNamedChild(element, name);
 return res == null ? null : new DOMWrapperElement(res);
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-utilities

public static void setNamedChildValue(Element element, String name, String value) throws FHIRException  {
 Element e = getNamedChild(element, name);
 if (e == null)
  throw new FHIRException("unable to find element "+name);
 e.setAttribute("value", value);
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com