/*$************************************************************************************************
 **
 ** $Id: FeatureStyleFactory.java 831 2006-05-01 00:27:23Z Desruisseaux $
 **
 ** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/sld/FeatureStyleFactory.java $
 **
 ** Copyright (C) 2005 Open GIS Consortium, Inc.
 ** All Rights Reserved. http://www.opengis.org/legal/
 **
 *************************************************************************************************/
package org.opengis.sld;

// J2SE direct dependencies
import java.io.InputStream;
import org.xml.sax.InputSource;

// Annotations
import org.opengis.annotation.Extension;


/**
 * Class that knows how to parse {@link FeatureStyle} elements from various places.
 *
 * @version Implementation specification 1.0
 * @author Chris Dillard (SYS Technologies)
 * @since GeoAPI 2.0
 */
@Extension
public interface FeatureStyleFactory {
    /**
     * Parses a feature style from a J2SE input stream.
     */
    FeatureStyle parse(InputStream is);
    
    /**
     * Parses a feature style from a XML input source.
     */
    FeatureStyle parse(InputSource is);
    
    /**
     * Parses a feature style from a character string.
     */
    FeatureStyle parse(String url);

    /**
     * Must pass in the Class of one of the interfaces in the package
     * {@code org.opengis.sld}.  Returns an instance of that interface
     * with no properties set.
     */
    Object createStyleObject(Class interfaceToMakeAnInstanceOf);
}

 

Ads help maintain this website.