org.geotools.data.gen.info
Class GeneralizationInfosProviderImpl

java.lang.Object
  extended by org.geotools.data.gen.info.GeneralizationInfosProviderImpl
All Implemented Interfaces:
GeneralizationInfosProvider

public class GeneralizationInfosProviderImpl
extends java.lang.Object
implements GeneralizationInfosProvider

Author:
Christian Mueller The default implementation for GeneralizationInfosProvider, reading the info from an XML file. The xml schema file is "/geninfos_1.0.xsd"

Field Summary
protected static java.lang.String BASE_FEATURE_NAME_ATTR
           
protected static java.lang.String DATASOURCE_NAME_ATTR
           
protected static java.lang.String DATASOURCE_NAMESPACE_NAME_ATTR
           
protected static java.lang.String DISTANCE_ATTR
           
protected static java.lang.String FEATURE_NAME_ATTR
           
protected static java.lang.String GENERALIZATION_INFO_TAG
           
protected static java.lang.String GENERALIZATION_INFOS_TAG
           
protected static java.lang.String GENERALIZATION_TAG
           
protected static java.lang.String GEOM_PROPERTY_NAME_ATTR
           
protected static javax.xml.validation.Validator VALIDATOR
           
protected static java.lang.String VERSION_ATTR
           
 
Constructor Summary
GeneralizationInfosProviderImpl()
           
 
Method Summary
protected  void checkVersion(org.w3c.dom.Node gInfos)
           
protected  java.net.URL deriveURLFromSourceObject(java.lang.Object source)
           
 GeneralizationInfos getGeneralizationInfos(java.lang.Object source)
           
protected  void parseDistanceInfoNodes(org.w3c.dom.Node parentNode, GeneralizationInfo gInfo)
           
protected  void parseGeneralizationInfoNodes(org.w3c.dom.Node parentNode, GeneralizationInfos gInfos)
           
protected  GeneralizationInfos parseXML(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERALIZATION_INFOS_TAG

protected static final java.lang.String GENERALIZATION_INFOS_TAG
See Also:
Constant Field Values

GENERALIZATION_INFO_TAG

protected static final java.lang.String GENERALIZATION_INFO_TAG
See Also:
Constant Field Values

GENERALIZATION_TAG

protected static final java.lang.String GENERALIZATION_TAG
See Also:
Constant Field Values

FEATURE_NAME_ATTR

protected static final java.lang.String FEATURE_NAME_ATTR
See Also:
Constant Field Values

BASE_FEATURE_NAME_ATTR

protected static final java.lang.String BASE_FEATURE_NAME_ATTR
See Also:
Constant Field Values

GEOM_PROPERTY_NAME_ATTR

protected static final java.lang.String GEOM_PROPERTY_NAME_ATTR
See Also:
Constant Field Values

DISTANCE_ATTR

protected static final java.lang.String DISTANCE_ATTR
See Also:
Constant Field Values

DATASOURCE_NAME_ATTR

protected static final java.lang.String DATASOURCE_NAME_ATTR
See Also:
Constant Field Values

DATASOURCE_NAMESPACE_NAME_ATTR

protected static final java.lang.String DATASOURCE_NAMESPACE_NAME_ATTR
See Also:
Constant Field Values

VERSION_ATTR

protected static final java.lang.String VERSION_ATTR
See Also:
Constant Field Values

VALIDATOR

protected static javax.xml.validation.Validator VALIDATOR
Constructor Detail

GeneralizationInfosProviderImpl

public GeneralizationInfosProviderImpl()
Method Detail

getGeneralizationInfos

public GeneralizationInfos getGeneralizationInfos(java.lang.Object source)
                                           throws java.io.IOException
Specified by:
getGeneralizationInfos in interface GeneralizationInfosProvider
Parameters:
source - , source of the info, concrete class depending on implementation
Returns:
a GeneralizationInfos object
Throws:
java.io.IOException - in case of failure An implementor of this method must call GeneralizationInfos.validate() otherwise, behavior is unexpected

deriveURLFromSourceObject

protected java.net.URL deriveURLFromSourceObject(java.lang.Object source)
                                          throws java.io.IOException
Throws:
java.io.IOException

parseXML

protected GeneralizationInfos parseXML(java.net.URL url)
                                throws java.io.IOException
Throws:
java.io.IOException

parseGeneralizationInfoNodes

protected void parseGeneralizationInfoNodes(org.w3c.dom.Node parentNode,
                                            GeneralizationInfos gInfos)

parseDistanceInfoNodes

protected void parseDistanceInfoNodes(org.w3c.dom.Node parentNode,
                                      GeneralizationInfo gInfo)

checkVersion

protected void checkVersion(org.w3c.dom.Node gInfos)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.