/** * Encode the supplied feature type. * * @param type the feature type to encode * @throws RuntimeException DOCUMENT ME! */ protected void encode(SimpleFeatureType type) { List attributes = type.getAttributeDescriptors(); try { startSchemaType(type.getTypeName(), type.getName().getNamespaceURI()); for (int i = 0; i < attributes.size(); i++) { encode((AttributeDescriptor) attributes.get(i)); } endSchemaType(); } catch (SAXException e) { throw new RuntimeException(e); } }
/** * Encode the supplied feature type. * * @param type the feature type to encode * * @throws RuntimeException DOCUMENT ME! */ protected void encode(SimpleFeatureType type) { List attributes = type.getAttributeDescriptors(); try { startSchemaType(type.getTypeName(), type.getName().getNamespaceURI()); for (int i = 0; i < attributes.size(); i++) { encode((AttributeDescriptor) attributes.get(i)); } endSchemaType(); } catch (SAXException e) { throw new RuntimeException(e); } }
/** * Encode the supplied feature type. * * @param type the feature type to encode * * @throws RuntimeException DOCUMENT ME! */ protected void encode(FeatureType type) { AttributeType[] attributes = type.getAttributeTypes(); try { startSchemaType(type.getTypeName(), type.getNamespace()); for (int i = 0; i < attributes.length; i++) { encode(attributes[i]); } endSchemaType(); } catch (SAXException e) { throw new RuntimeException(e); } }