public AttributeType createAttributeType( Name name, Class binding, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description) { return new AttributeTypeImpl( name, binding, isIdentifiable, isAbstract, restrictions, superType, description); }
private static FeatureTypeFactory getTypeFactory() { if (typeFactory == null) typeFactory = new FeatureTypeFactoryImpl(); // CommonFactoryFinder.getFeatureTypeFactory(null); return typeFactory; }
/** * Serialize time to general dateTime text. This method is provided for backward compatibility. * It generates the dateTime text without the trailing 'Z' to indicate UTC. * * @param time time to be converted, as milliseconds from January 1, 1970 * @return converted dateTime text * @throws IllegalArgumentException on conversion error */ public static String serializeDateTime(long time) throws IllegalArgumentException { return serializeDateTime(time, false); }
public AttributeDescriptor createAttributeDescriptor( AttributeType type, Name name, int minOccurs, int maxOccurs, boolean isNillable, Object defaultValue) { return new AttributeDescriptorImpl( type, name, minOccurs, maxOccurs, isNillable, defaultValue); }
public GeometryDescriptor createGeometryDescriptor( GeometryType type, Name name, int minOccurs, int maxOccurs, boolean isNillable, Object defaultValue) { return new GeometryDescriptorImpl( type, name, minOccurs, maxOccurs, isNillable, defaultValue); }
public ComplexType createComplexType( Name name, Collection schema, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description) { return new ComplexTypeImpl( name, schema, isIdentifiable, isAbstract, restrictions, superType, description); }
/** * @param type AttributeType (often attribute.getType() ) * @param attribute Attribute being tested * @param attributeContent Content of the attribute (often attribute.getValue() ) * @throws IllegalAttributeException */ public static void validate(AttributeType type, Attribute attribute, Object attributeContent) throws IllegalAttributeException { validate(type, attribute, attributeContent, false); }
/** * @param name * @return * @deprecated use {@link #toTypeName(QName} */ public static Name toName(QName name) { return toTypeName(name); }
/** * Template method for creating an attribute name. * * @return {@link org.geotools.feature.Types#typeName(String, String)} */ protected Name createName(String ns, String local) { return Types.typeName(ns, local); }
public FeatureType createFeatureType( Name name, Collection schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description) { return new FeatureTypeImpl( name, schema, defaultGeometry, isAbstract, restrictions, superType, description); }
/** * Serialize SQL date to general date text. Date values are formatted in W3C XML Schema standard * format as CCYY-MM-DD, with optional leading sign included if necessary. * * @param date date to be converted * @return converted date text * @throws IllegalArgumentException on conversion error */ public static String serializeSqlDate(java.sql.Date date) throws IllegalArgumentException { return serializeDate(date); }
public GeometryDescriptor getGeometryDescriptor() { if (defaultGeometry == null) { for (PropertyDescriptor property : getDescriptors()) { if (property instanceof GeometryDescriptor) { defaultGeometry = (GeometryDescriptor) property; break; } } } return defaultGeometry; }
public FeatureTypeAttributeIterator(NodePointer pointer, ComplexType featureType) { this.pointer = pointer; this.featureType = featureType; // get list of descriptors from types and all supertypes children = Types.descriptors(featureType); position = 1; }
/** @see org.opengis.feature.type.AttributeType#getSuper() */ public AttributeType getSuper() { if (superType == null) { superType = buildSuper(); } return superType; }
/** @see java.lang.Object#toString() */ @Override public String toString() { return "LazyAttributeType: " + getName(); } }
/** @see org.geotools.feature.type.AbstractLazyAttributeTypeImpl#getBinding() */ @SuppressWarnings("unchecked") @Override public Class<Collection<Property>> getBinding() { return (Class<Collection<Property>>) super.getBinding(); }
public AssociationType createAssociationType( Name name, AttributeType relatedType, boolean isAbstract, List restrictions, AssociationType superType, InternationalString description) { return new AssociationTypeImpl( name, relatedType, isAbstract, restrictions, superType, description); }
/** @see org.opengis.feature.type.ComplexType#getDescriptors() */ public Collection<PropertyDescriptor> getDescriptors() { requireDescriptors(); return descriptors; }
/** @see org.geotools.feature.type.AbstractLazyAttributeTypeImpl#toString() */ @Override public String toString() { return "LazyComplexType: " + getName(); } }
/** * Template method for creating a type name. * * @return {@link org.geotools.feature.iso.Types#typeName(String, String)} */ protected Name createTypeName(String ns, String local) { return Types.typeName(ns, local); }