Package org.geotools.util

Examples of org.geotools.util.SimpleInternationalString


     * Test of setName method, of class DefaultCalendarEra.
     */
    @Test
    public void testSetName() {
        InternationalString result = calendarEra1.getName();
        ((DefaultCalendarEra)calendarEra1).setName(new SimpleInternationalString("new Era"));
        assertFalse(calendarEra1.getName().equals(result));
    }
View Full Code Here


     * Test of setReferenceEvent method, of class DefaultCalendarEra.
     */
    @Test
    public void testSetReferenceEvent() {
        InternationalString result = calendarEra1.getReferenceEvent();
        ((DefaultCalendarEra)calendarEra1).setReferenceEvent(new SimpleInternationalString("new Era description"));
        assertFalse(calendarEra1.getReferenceEvent().equals(result));
    }
View Full Code Here

     * @return
     */
    public TemporalReferenceSystem getFrame() {
        if (frame == null) {
            frame = new DefaultTemporalReferenceSystem(new NamedIdentifier(
                    Citations.CRS, new SimpleInternationalString("Gregorian calendar")), null);
        }
        return frame;
    }
View Full Code Here

        return description.getAbstract().toString();
    }
   
    @Deprecated
    public void setAbstract(String abstractStr) {
        description.setAbstract(new SimpleInternationalString(abstractStr));
    }
View Full Code Here

     */
    public InternationalString getDateTime() {
        if (this.position instanceof Date) {
            String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
            SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(DATE_FORMAT);
            return new SimpleInternationalString(dateFormat.format(position));
        }
        return null;
    }
View Full Code Here

        return description.getTitle().toString();
    }

    @Deprecated
    public void setTitle(String title) {
        description.setTitle(new SimpleInternationalString(title));
    }
View Full Code Here

     */
    @Test
    public void testSetDomainOfValidity() {
        Extent result = temporalReferenceSystem1.getDomainOfValidity();
        ExtentImpl domainOfValidity = new ExtentImpl();
        domainOfValidity.setDescription(new SimpleInternationalString("Western Europe"));
        Calendar cal = Calendar.getInstance();
        cal.set(0, 0, 0);
        TemporalExtentImpl temporalExt = new TemporalExtentImpl(cal.getTime(), new Date());
        Collection<TemporalExtent> collection = new ArrayList<TemporalExtent>();
        collection.add(temporalExt);
View Full Code Here

        Date end1 = cal.getTime();
        cal.set(2000, 1, 1);
        Date beginning2 = cal.getTime();
        cal.set(2012, 1, 1);
        Date end2 = cal.getTime();
        ordinalEra1 = new DefaultOrdinalEra(new SimpleInternationalString("old Era"), beginning1, end1);
        ordinalEra2 = new DefaultOrdinalEra(new SimpleInternationalString("new Era"), beginning2, end2);
    }
View Full Code Here

     * Test of setName method, of class DefaultOrdinalEra.
     */
    @Test
    public void testSetName() {
        InternationalString result = ordinalEra1.getName();
        ((DefaultOrdinalEra) ordinalEra1).setName(new SimpleInternationalString(""));
        assertFalse(ordinalEra1.getName().equals(result));
    }
View Full Code Here

     */
    @Test
    public void testSetGroup() {
        DefaultOrdinalEra result = ((DefaultOrdinalEra) ordinalEra1).getGroup();
        cal.set(1900, 0, 0);
        ((DefaultOrdinalEra) ordinalEra1).setGroup(new DefaultOrdinalEra(new SimpleInternationalString(""), cal.getTime(), new Date()));
        assertFalse(((DefaultOrdinalEra) ordinalEra1).getGroup().equals(result));
    }
View Full Code Here

TOP

Related Classes of org.geotools.util.SimpleInternationalString

Copyright © 2018 www.massapicom. 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.