コード例 #1
0
ファイル: RDFParser.java プロジェクト: Orphanet/java_ORDO
 /**
  * Processes xml:language reference is there is one.
  *
  * @param atts the attributes potentially containing xml:language declaration
  */
 private void processXMLLanguage(@Nonnull Attributes atts) {
   checkNotNull(atts, "atts cannot be null");
   languages.add(0, language);
   String value = atts.getValue(XMLLANG);
   if (value != null) {
     language = value;
   }
 }
コード例 #2
0
ファイル: RDFParser.java プロジェクト: Orphanet/java_ORDO
 /**
  * Processes xml:base reference if there is one.
  *
  * @param atts the attributes potentially containing xml:base declaration
  */
 private void processXMLBase(@Nonnull Attributes atts) {
   checkNotNull(atts, "atts cannot be null");
   baseIRIs.add(0, getBaseIRI());
   String value = atts.getValue(XMLNS, "base");
   if (value != null) {
     try {
       baseIRI = resolveFromDelegate(getBaseIRI(), value);
       resolvedIRIs.clear();
     } catch (IllegalArgumentException e) {
       throw new RDFParserException(
           e,
           String.format(WRONGRESOLVE, value, getBaseIRI(), e.getMessage()),
           getDocumentLocator());
     }
   }
 }