gpt4 book ai didi

org.apache.openjpa.lib.meta.XMLMetaDataParser.parsed()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 17:45:05 30 4
gpt4 key购买 nike

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

XMLMetaDataParser.parsed介绍

[英]Return true if the given source is parsed. Otherwise, record that it will be parsed.
[中]如果解析了给定的源,则返回true。否则,记录它将被解析。

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-lib

public void parse(Reader xml, String sourceName) throws IOException {
  if (xml != null && (sourceName == null || !parsed(sourceName)))
    parseNewResource(xml, sourceName);
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

public void parse(Reader xml, String sourceName) throws IOException {
  if (xml != null && (sourceName == null || !parsed(sourceName)))
    parseNewResource(xml, sourceName);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

public void parse(Reader xml, String sourceName) throws IOException {
  if (xml != null && (sourceName == null || !parsed(sourceName)))
    parseNewResource(xml, sourceName);
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

public void parse(Reader xml, String sourceName) throws IOException {
  if (xml != null && (sourceName == null || !parsed(sourceName)))
    parseNewResource(xml, sourceName);
}

代码示例来源:origin: org.apache.openjpa/openjpa-lib

/**
 * Parse the resources returned by the given iterator, optionally stopping
 * when the first valid resource is found.
 */
private void parse(MetaDataIterator itr, boolean stopFirst)
  throws IOException {
  if (itr == null)
    return;
  try {
    String sourceName;
    while (itr.hasNext()) {
      sourceName = itr.next().toString();
      if (parsed(sourceName)) {
        if (stopFirst)
          break;
        continue;
      }
      // individual files of the resource might already be parsed
      _sourceFile = itr.getFile();
      parseNewResource(new InputStreamReader(itr.getInputStream()),
        sourceName);
      if (stopFirst)
        break;
    }
  }
  finally {
    itr.close();
  }
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Parse the resources returned by the given iterator, optionally stopping
 * when the first valid resource is found.
 */
private void parse(MetaDataIterator itr, boolean stopFirst)
  throws IOException {
  if (itr == null)
    return;
  try {
    String sourceName;
    while (itr.hasNext()) {
      sourceName = itr.next().toString();
      if (parsed(sourceName)) {
        if (stopFirst)
          break;
        continue;
      }
      // individual files of the resource might already be parsed
      _sourceFile = itr.getFile();
      parseNewResource(new InputStreamReader(itr.getInputStream()),
        sourceName);
      if (stopFirst)
        break;
    }
  }
  finally {
    itr.close();
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Parse the resources returned by the given iterator, optionally stopping
 * when the first valid resource is found.
 */
private void parse(MetaDataIterator itr, boolean stopFirst)
  throws IOException {
  if (itr == null)
    return;
  try {
    String sourceName;
    while (itr.hasNext()) {
      sourceName = itr.next().toString();
      if (parsed(sourceName)) {
        if (stopFirst)
          break;
        continue;
      }
      // individual files of the resource might already be parsed
      _sourceFile = itr.getFile();
      parseNewResource(new InputStreamReader(itr.getInputStream()),
        sourceName);
      if (stopFirst)
        break;
    }
  }
  finally {
    itr.close();
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Parse the resources returned by the given iterator, optionally stopping
 * when the first valid resource is found.
 */
private void parse(MetaDataIterator itr, boolean stopFirst)
  throws IOException {
  if (itr == null)
    return;
  try {
    String sourceName;
    while (itr.hasNext()) {
      sourceName = itr.next().toString();
      if (parsed(sourceName)) {
        if (stopFirst)
          break;
        continue;
      }
      // individual files of the resource might already be parsed
      _sourceFile = itr.getFile();
      parseNewResource(new InputStreamReader(itr.getInputStream()),
        sourceName);
      if (stopFirst)
        break;
    }
  }
  finally {
    itr.close();
  }
}

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