} catch (Exception e) { String msg = "Error decoding srs: " + srid; throw new SchemaException(msg, e); throw new SchemaException("Could not type " + name + " as:" + type, e);
/** attname:string -> position:int */ //private final java.util.Map attLookup; private final static URI toURI( String namespace ) throws SchemaException { try { return new URI( namespace ); } catch (URISyntaxException badNamespace ) { throw new SchemaException( badNamespace ); } } public DefaultFeatureType(String typeName, String namespace,
private final static URI toURI( String namespace ) throws SchemaException { try { return new URI( namespace ); } catch (URISyntaxException badNamespace ) { throw new SchemaException( badNamespace ); } } public DefaultFeatureType(String typeName, String namespace,
throw new SchemaException("Can only specify a single super type");
public Abstract(String typeName, URI namespace, Collection types, Collection superTypes, GeometryAttributeType defaultGeom) throws SchemaException { super(typeName, namespace, types, superTypes, defaultGeom); Iterator st = superTypes.iterator(); while (st.hasNext()) { FeatureType ft = (FeatureType) st.next(); if (!ft.isAbstract()) { throw new SchemaException( "Abstract type cannot descend from no abstract type : " + ft); } } }
private String exportClause(final String _clause, final boolean _required, final boolean _quote) throws SchemaException { String result = getHeaderClause(_clause); if (!result.equals(CtuluLibString.EMPTY_STRING)) { if (_quote) { result = MIFStringTokenizer.strQuote(result); } return _clause + CtuluLibString.ESPACE + result + CtuluLibString.LINE_SEP_SIMPLE; } if (_required) { throw new SchemaException("Header clause " + _clause + " is required."); } return CtuluLibString.EMPTY_STRING; }
private String exportClause(String clause, boolean required, boolean quote) throws SchemaException { String result = getHeaderClause(clause); if (!result.equals("")) { if (quote) { result = MIFStringTokenizer.strQuote(result); } return clause + " " + result + "\n"; } if (required) { throw new SchemaException("Header clause " + clause + " is required."); } return ""; }
throw new SchemaException("Unsupported geometry type: " + theGeom.getClass().getName());
throw new SchemaException("Unsupported geometry type: " + theGeom.getClass().getName());
throw new SchemaException(typeName + " does not contain requested " + propertyNames[i] + " attribute");
throw new SchemaException( "Cannot create FeatureType with null or blank name");
} catch (Exception e) { String msg = "Error decoding srs: " + srid; throw new SchemaException(msg, e); throw new SchemaException("Could not type " + name + " as:" + type, e);
CRS.decode("EPSG:4326", lCaseAxis.equals("east"))); } catch (final FactoryException e) { throw new SchemaException("Cannot decode EPSG:4326", e);
throw new SchemaException( "Cannot create FeatureType with null or blank name");
throw new SchemaException("Unsupported attribute type: " + atc.getName());
throw new SchemaException("Unsupported attribute type: " + atc.getName());
throw new SchemaException( badNamespace );
throw new SchemaException("Feature Types with more than one geometric attribute are not supported."); throw new SchemaException("Geometry must be the first attribute in schema.");
throw new SchemaException( "Feature Types with more than one geometric attribute are not supported."); throw new SchemaException( "Geometry must be the first attribute in schema.");
throw new SchemaException("Can only specify a single super type");