Package org.apache.sis.feature.builder

package org.apache.sis.feature.builder
Helper classes for creating Feature­Type instances. Usage of this package is not mandatory, but make easier to create Default­Feature­Type instances together with their attributes and associations.

The starting point is Feature­Type­Builder. The following example creates a feature type for a capital, as a special kind of city, named "Utopia" by default:

FeatureTypeBuilder builder;

// Create a feature type for a city, which contains a name and a population.
builder = new FeatureTypeBuilder() .setName("City");
builder.addAttribute(String.class) .setName("name").setDefaultValue("Utopia");
FeatureType city =;

// Create a subclass for a city which is also a capital.
builder = new FeatureTypeBuilder().setName("Capital").setSuperTypes(city);
FeatureType capital =;
A call to System​.out​.println(capital) prints the following table:
Capital ⇾ City
│ Name       │ Type    │ Multiplicity │ Default value │
│ name       │ String  │   [1 … 1]    │ Utopia        │
│ population │ Integer │   [1 … 1]    │               │
│ parliament │ String  │   [1 … 1]    │               │
See Also:

Defined in the sis-feature module

  • Class
    Describes one association from the Feature­Type to be built by an Feature­Type­Builder to another Feature­Type.
    Roles that can be associated to some attributes for instructing Feature­Type­Builder how to generate pre-defined operations.
    Describes one Attribute­Type which will be part of the feature type to be built by a Feature­Type­Builder.
    Describes one characteristic of the Attribute­Type will will be built by a Feature­Type­Builder.
    Helper class for the creation of Feature­Type instances.
    Describes one property of the Feature­Type to be built by an Feature­Type­Builder.
    Information common to all kind of types (feature, association, characteristics).