Examples of SimpleInternationalString


Examples of org.apache.sis.util.iso.SimpleInternationalString

            // Also add history.
            final String history = decoder.stringValue(HISTORY);
            if (history != null) {
                final DefaultDataQuality quality = new DefaultDataQuality();
                final DefaultLineage lineage = new DefaultLineage();
                lineage.setStatement(new SimpleInternationalString(history));
                quality.setLineage(lineage);
                addIfAbsent(metadata.getDataQualityInfo(), quality);
            }
        }
        /*
 
View Full Code Here

Examples of org.apache.sis.util.iso.SimpleInternationalString

                    }
                }
            }
        }
        if (i18n == null && defaultValue != null) {
            return new SimpleInternationalString(defaultValue);
        }
        return i18n;
    }
View Full Code Here

Examples of org.apache.sis.util.iso.SimpleInternationalString

     * @param title The new attribute value.
     * @category xlink
     */
    public final void setTitle(String title) {
        if (title != null && !(title = title.trim()).isEmpty()) {
            xlink(true).setTitle(new SimpleInternationalString(title));
        }
    }
View Full Code Here

Examples of org.apache.sis.util.iso.SimpleInternationalString

     * @param  adapter The adapter for the string value.
     * @return An {@link InternationalString} for the string value.
     */
    @Override
    public InternationalString unmarshal(final String adapter) {
        return (adapter != null) ? new SimpleInternationalString(adapter) : null;
    }
View Full Code Here

Examples of org.apache.sis.util.iso.SimpleInternationalString

    public void testWithElement() throws JAXBException, URISyntaxException {
        final XLink xlink = new XLink();
        xlink.setHRef(new URI("http://test.net"));
        final DefaultDataIdentification identification = new DefaultDataIdentification();
        identification.getIdentifierMap().putSpecialized(IdentifierSpace.XLINK, xlink);
        identification.setAbstract(new SimpleInternationalString("This is a test."));
        final DefaultMetadata metadata = new DefaultMetadata();
        metadata.setIdentificationInfo(Collections.singleton(identification));

        assertXmlEquals(LINK_WITH_ELEMENT_XML, XML.marshal(metadata), "xmlns:*");
        final DefaultMetadata unmarshal = unmarshal(DefaultMetadata.class, LINK_WITH_ELEMENT_XML);
View Full Code Here

Examples of org.apache.sis.util.iso.SimpleInternationalString

     *     └─Other citation details…… Some other details
     * }
     */
    static DefaultCitation metadataWithoutCollections() {
        final DefaultCitation citation = new DefaultCitation("Some title");
        citation.setEdition(new SimpleInternationalString("Some edition"));
        citation.setOtherCitationDetails(new SimpleInternationalString("Some other details"));
        return citation;
    }
View Full Code Here

Examples of org.geotools.util.SimpleInternationalString

   
    /**
     * Construct <code>Palette</code>.
     */
    public Palette( String name, Scheme list[]) {
        this.name = new SimpleInternationalString( name );
        this.contents = Arrays.asList( list );
        this.type = SchemeType.QUALITATIVE;
    }
View Full Code Here

Examples of org.geotools.util.SimpleInternationalString

     * </p>
     * @param properties
     */
    public Palette( Properties properties ) {
        String KEY = properties.getProperty( "palette.key" ); //$NON-NLS-1$
        name = new SimpleInternationalString( properties.getProperty( "palette.display" )); //$NON-NLS-1$
              
        type = Enum.valueOf( SchemeType.class, properties.getProperty( "palette.type" ).trim() ); //$NON-NLS-1$
       
        int min = Integer.parseInt( properties.getProperty("palette.min") ); //$NON-NLS-1$
        int max = Integer.parseInt( properties.getProperty("palette.max") ); //$NON-NLS-1$
View Full Code Here

Examples of org.geotools.util.SimpleInternationalString

            int total;
            int amount;
            public void beginTask( String name, int totalWork ) {
                amount = 0;
                total = totalWork;
                monitor.setTask( new SimpleInternationalString(name));
                monitor.progress( work() );
            }
            float work(){
                return (float) amount / (float) total;
            }
            public void done() {
                amount = total;
                monitor.complete();
                monitor.dispose();
            }
            public void internalWorked( double work ) {
            }
            public boolean isCanceled() {
                return monitor.isCanceled();
            }
            public void setCanceled( boolean cancel ) {
                monitor.setCanceled( cancel );
            }
            public void setTaskName( String name ) {
                monitor.setTask( new SimpleInternationalString( name ));
            }
            public void subTask( String name ) {
                monitor.setTask( new SimpleInternationalString( name ));
            }
            public void worked( int work ) {
                amount += total;
            }
        };
View Full Code Here

Examples of org.geotools.util.SimpleInternationalString

    public void op( Display display, Object target, IProgressMonitor monitor ) throws Exception {
       
        //System.out.println("create seagulls called"); //$NON-NLS-1$
        // build some flock data to use
        SeagullFlock flock = new SeagullFlock("flock 01"//$NON-NLS-1$
                new SimpleInternationalString("flock 01"), DefaultGeographicCRS.WGS84); //$NON-NLS-1$
       
        flock.addChild(new Seagull(flock, "seagull A"//$NON-NLS-1$
                new SimpleInternationalString("seagull A"), //$NON-NLS-1$
                new Coordinate(-123,48)));
       
        flock.addChild(new Seagull(flock, "seagull B"//$NON-NLS-1$
                new SimpleInternationalString("seagull B"), //$NON-NLS-1$ 
                new Coordinate(-77,-12)));
       
        flock.addChild(new Seagull(flock, "seagull C"//$NON-NLS-1$
                new SimpleInternationalString("seagull C"), //$NON-NLS-1$
                new Coordinate(-80,20)));     
       
        flock.addChild(new Seagull(flock, "seagull D"//$NON-NLS-1$
                new SimpleInternationalString("seagull D"), //$NON-NLS-1$
                new Coordinate(-86,22)));  
       
        flock.addChild(new Seagull(flock, "seagull E"//$NON-NLS-1$
                new SimpleInternationalString("seagull E"), //$NON-NLS-1$
                new Coordinate(-90,0)));  
       
        flock.addChild(new Seagull(flock, "seagull F"//$NON-NLS-1$
                new SimpleInternationalString("seagull F"), //$NON-NLS-1$
                new Coordinate(-60,34)));  
       
        flock.addChild(new Seagull(flock, "seagull G"//$NON-NLS-1$
                new SimpleInternationalString("seagull G"), //$NON-NLS-1$
                new Coordinate(-118,2)));          
       
        // stick our test flock on the blackboard
        IMap map = (IMap) target;  //ApplicationGIS.getActiveMap();
        if (map == null)
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.