Examples of language()


Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

        return new DatatypeLiteralImpl(lit.getLexicalForm(), new URIImpl(
                lit.getDatatypeURI()));
      }
     
      // language tagged
      if(lit.language() != null && !lit.language().equals(""))
        return new LanguageTagLiteralImpl(lit.getLexicalForm(), lit.language());
     
      // plain
      return new PlainLiteralImpl(lit.getLexicalForm());
    }
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

        return new DatatypeLiteralImpl(lit.getLexicalForm(), new URIImpl(
                lit.getDatatypeURI()));
      }
     
      // language tagged
      if(lit.language() != null && !lit.language().equals(""))
        return new LanguageTagLiteralImpl(lit.getLexicalForm(), lit.language());
     
      // plain
      return new PlainLiteralImpl(lit.getLexicalForm());
    }
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

                lit.getDatatypeURI()));
      }
     
      // language tagged
      if(lit.language() != null && !lit.language().equals(""))
        return new LanguageTagLiteralImpl(lit.getLexicalForm(), lit.language());
     
      // plain
      return new PlainLiteralImpl(lit.getLexicalForm());
    }
   
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

                    literalValue = ll.getLexicalForm();
                }
            } else { //add a text
                String lexicalForm = ll.getLexicalForm();
                if(lexicalForm != null && !lexicalForm.isEmpty()){
                    String language = ll.language();
                    if(language!=null && language.length()<1){
                        language = null;
                    }
                    source.addNaturalText(field, lexicalForm, language);
                } //else ignore empty literals
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

                    literalValue = ll.getLexicalForm();
                }
            } else { //add a text
                String lexicalForm = ll.getLexicalForm();
                if(lexicalForm != null && !lexicalForm.isEmpty()){
                    String language = ll.language();
                    if(language!=null && language.length()<1){
                        language = null;
                    }
                    source.addNaturalText(field, lexicalForm, language);
                } //else ignore empty literals
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

                    literalValue = ll.getLexicalForm();
                }
            } else { //add a text
                String lexicalForm = ll.getLexicalForm();
                if(lexicalForm != null && !lexicalForm.isEmpty()){
                    String language = ll.language();
                    if(language!=null && language.length()<1){
                        language = null;
                    }
                    source.addNaturalText(field, lexicalForm, language);
                } //else ignore empty literals
View Full Code Here

Examples of com.hp.hpl.jena.graph.impl.LiteralLabel.language()

                    literalValue = ll.getLexicalForm();
                }
            } else { //add a text
                String lexicalForm = ll.getLexicalForm();
                if(lexicalForm != null && !lexicalForm.isEmpty()){
                    String language = ll.language();
                    if(language!=null && language.length()<1){
                        language = null;
                    }
                    source.addNaturalText(field, lexicalForm, language);
                } //else ignore empty literals
View Full Code Here

Examples of er.extensions.localization.ERXLocalizer.language()

      String localizedKey = eo.localizedKey(_key);
      Object value = eo.valueForKey(localizedKey);
      if (localizedKey != null && (value == null || "".equals(value)) && localizationShouldFallbackToDefaultLanguage()) {
        ERXLocalizer currentLocalizer = ERXLocalizer.currentLocalizer();
        String defaultLanguage = ERXLocalizer.defaultLanguage();
        if (!currentLocalizer.language().equals(defaultLanguage)) {
          if (log.isDebugEnabled()) {
            log.debug("no data found for '" + eo.entityName() + ':' + _key + "' for language " + currentLocalizer.language() + ", trying " + defaultLanguage);
          }
          ERXLocalizer.setCurrentLocalizer(ERXLocalizer.localizerForLanguage(defaultLanguage));
          value = eo.valueForKey(eo.localizedKey(_key));
View Full Code Here

Examples of er.extensions.localization.ERXLocalizer.language()

      if (localizedKey != null && (value == null || "".equals(value)) && localizationShouldFallbackToDefaultLanguage()) {
        ERXLocalizer currentLocalizer = ERXLocalizer.currentLocalizer();
        String defaultLanguage = ERXLocalizer.defaultLanguage();
        if (!currentLocalizer.language().equals(defaultLanguage)) {
          if (log.isDebugEnabled()) {
            log.debug("no data found for '" + eo.entityName() + ':' + _key + "' for language " + currentLocalizer.language() + ", trying " + defaultLanguage);
          }
          ERXLocalizer.setCurrentLocalizer(ERXLocalizer.localizerForLanguage(defaultLanguage));
          value = eo.valueForKey(eo.localizedKey(_key));
          ERXLocalizer.setCurrentLocalizer(currentLocalizer);
        }
View Full Code Here

Examples of er.extensions.localization.ERXLocalizer.language()

    if (ERXStringUtilities.stringIsNullOrEmpty(language))
      localizer =  ERXLocalizer.defaultLocalizer();
    else
      localizer = ERXLocalizer.localizerForLanguage(language);
    if (log.isDebugEnabled())
      log.debug("method: localizer: localizer: " + localizer + " /localizer.language: " + localizer.language());
    return localizer;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.