Ejemplo n.º 1
0
 /**
  * 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;
   }
 }
Ejemplo n.º 2
0
 /**
  * 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());
     }
   }
 }