Examples of parser()


Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

    Map<String,String> parts = this.parser().parseURI(descriptorURI) ;
   
    ModelDocument md = lookup(parts.get(Parser.NAMESPACE)) ;
   
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.prefLabel.getURI(), language,false), NAME ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.altLabel.getURI(), language,true), ALIAS ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.definition.getURI(), language,false), DEFINITION ) ;
   
    return details ;
  }
 
View Full Code Here

Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

   
    ModelDocument md = lookup(parts.get(Parser.NAMESPACE)) ;
   
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.prefLabel.getURI(), language,false), NAME ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.altLabel.getURI(), language,true), ALIAS ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.definition.getURI(), language,false), DEFINITION ) ;
   
    return details ;
  }
 
  /**
 
View Full Code Here

Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

   
    ModelDocument md = lookup(parts.get(Parser.NAMESPACE)) ;
   
    Map<String,String> details = super.propertyDetails(parts.get(Parser.URI), language);
   
    _load( details, md.parser().getPropertyValues( parts.get(
            Parser.URI),
            DCA.abcdEquivalence.getURI()),
            DCA.abcdEquivalence.term()
          ) ;   
    _load( details, md.parser().getPropertyValues(
View Full Code Here

Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

    _load( details, md.parser().getPropertyValues( parts.get(
            Parser.URI),
            DCA.abcdEquivalence.getURI()),
            DCA.abcdEquivalence.term()
          ) ;   
    _load( details, md.parser().getPropertyValues(
            parts.get(Parser.URI),
            DCA.organizedInClass.getURI()),
            DCA.organizedInClass.term()
          ) ;   
    _load( details, md.parser().getPropertyValues(
View Full Code Here

Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

    _load( details, md.parser().getPropertyValues(
            parts.get(Parser.URI),
            DCA.organizedInClass.getURI()),
            DCA.organizedInClass.term()
          ) ;   
    _load( details, md.parser().getPropertyValues(
            parts.get(Parser.URI),
            DCA.status.getURI()),
            DCA.status.term()
          ) ;
View Full Code Here

Examples of org.elasticsearch.common.joda.FormatDateTimeFormatter.parser()

        formatter = DateTimeFormat.forPattern("yyyy/MM/dd HH:mm:ss").withZone(DateTimeZone.UTC);
        millis = formatter.parseMillis("1970/01/01 00:00:00");
        assertThat(millis, equalTo(0l));

        FormatDateTimeFormatter formatter2 = Joda.forPattern("yyyy/MM/dd HH:mm:ss");
        millis = formatter2.parser().parseMillis("1970/01/01 00:00:00");
        assertThat(millis, equalTo(0l));
    }

    @Test public void testWriteAndParse() {
        DateTimeFormatter dateTimeWriter = ISODateTimeFormat.dateTime().withZone(DateTimeZone.UTC);
View Full Code Here

Examples of org.elasticsearch.common.joda.FormatDateTimeFormatter.parser()

        assertThat(formatter.parseMillis(dateTimeWriter.print(date.getTime())), equalTo(date.getTime()));
    }

    @Test public void testSlashInFormat() {
        FormatDateTimeFormatter formatter = Joda.forPattern("MM/yyyy");
        formatter.parser().parseMillis("01/2001");

        formatter = Joda.forPattern("yyyy/MM/dd HH:mm:ss");
        long millis = formatter.parser().parseMillis("1970/01/01 00:00:00");
        formatter.printer().print(millis);
View Full Code Here

Examples of org.elasticsearch.common.joda.FormatDateTimeFormatter.parser()

    @Test public void testSlashInFormat() {
        FormatDateTimeFormatter formatter = Joda.forPattern("MM/yyyy");
        formatter.parser().parseMillis("01/2001");

        formatter = Joda.forPattern("yyyy/MM/dd HH:mm:ss");
        long millis = formatter.parser().parseMillis("1970/01/01 00:00:00");
        formatter.printer().print(millis);

        try {
            millis = formatter.parser().parseMillis("1970/01/01");
            assert false;
View Full Code Here

Examples of org.elasticsearch.common.joda.FormatDateTimeFormatter.parser()

        formatter = Joda.forPattern("yyyy/MM/dd HH:mm:ss");
        long millis = formatter.parser().parseMillis("1970/01/01 00:00:00");
        formatter.printer().print(millis);

        try {
            millis = formatter.parser().parseMillis("1970/01/01");
            assert false;
        } catch (IllegalArgumentException e) {
            // it really can't parse this one
        }
    }
View Full Code Here

Examples of org.elasticsearch.common.joda.FormatDateTimeFormatter.parser()

        }
    }

    @Test public void testMultipleFormats() {
        FormatDateTimeFormatter formatter = Joda.forPattern("yyyy/MM/dd HH:mm:ss||yyyy/MM/dd");
        long millis = formatter.parser().parseMillis("1970/01/01 00:00:00");
        millis = formatter.parser().parseMillis("1970/01/01");
//        System.out.println("" + millis);

        System.out.println(formatter.printer().print(millis));
    }
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.