Package org.geotools.appschema.feature
Class AppSchemaAttributeBuilder
- Object
-
- AttributeBuilder
-
- AppSchemaAttributeBuilder
-
public class AppSchemaAttributeBuilder extends AttributeBuilder
Builder for attributes.- Author:
- Justin Deoliveira (The Open Planning Project)
-
-
Field Summary
-
Fields inherited from class AttributeBuilder
ANYTYPE_TYPE
-
-
Constructor Summary
Constructors Constructor Description AppSchemaAttributeBuilder(FeatureFactory attributeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
add(String id, Object value, Name name, AttributeType type)
Adds an attribute to the complex attribute being built overriding the type of the declared attribute descriptor by a subtype of it.-
Methods inherited from class AttributeBuilder
add, add, add, add, add, add, addAnyTypeValue, addComplexAnyTypeAttribute, associate, associate, associate, associationDescriptor, attributeDescriptor, build, build, buildSimple, create, createComplexAttribute, getCRS, getCRS, getDefaultGeometry, getDescriptor, getFeatureFactory, getNamespaceURI, getProperties, getType, init, init, properties, setCRS, setDefaultGeometry, setDescriptor, setFeatureFactory, setNamespaceURI, setType
-
-
-
-
Constructor Detail
-
AppSchemaAttributeBuilder
public AppSchemaAttributeBuilder(FeatureFactory attributeFactory)
-
-
Method Detail
-
add
public Attribute add(String id, Object value, Name name, AttributeType type)
Adds an attribute to the complex attribute being built overriding the type of the declared attribute descriptor by a subtype of it.
This method uses the type supplied in
AttributeBuilder.setType(AttributeType)
in order to determine the attribute type.- Parameters:
id
- the attribtue idvalue
- The value of the attribute.name
- The name of the attribute.type
- the actual type of the attribute, which might be the same as the declared type for the given AttributeDescriptor or a derived type.
-
-