Package org.geotools.feature.type
Class ProfileImpl
Object
ProfileImpl
- All Implemented Interfaces:
Map<Name,
,AttributeType> Schema
A "sub" Schema used to select types for a specific use.
This class uses a custom key set to subset a parent Schema, and is used as the return type of
SchemaImpl.profile
.
This Schema is not mutable, serving only as a view, you may however define a more specific subset if needed.
Schema is often used to place limitation on expressed content (as in the case of the GML Level 0 Profile), or used to define a non conflicting set of "bindings" for the TypeBuilder(s).
- Author:
- Jody Garnett, Refractions Research Inc.
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionProfileImpl
(Schema parent, Set<Name> profile) Subset parent schema with profile keys. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AttributeType type) Adds a type to the schema.void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
getURI()
The uri of the schema.boolean
isEmpty()
keySet()
Profiles the schema, creating a new schema in the process.put
(Name key, AttributeType value) void
putAll
(Map<? extends Name, ? extends AttributeType> t) int
size()
values()
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ProfileImpl
Subset parent schema with profile keys.
-
-
Method Details
-
keySet
- Specified by:
keySet
in interfaceMap<Name,
AttributeType>
-
getURI
Description copied from interface:Schema
The uri of the schema.This method is a convenience for
keySet().getURI()
. -
profile
Description copied from interface:Schema
Profiles the schema, creating a new schema in the process.A profile of a schema is a subset of the schema, and it also a schema itself.
Used to select a subset of types for a specific application. Profiles often are used to express limitiations of a source of data.
-
size
public int size()- Specified by:
size
in interfaceMap<Name,
AttributeType>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<Name,
AttributeType>
-
containsKey
- Specified by:
containsKey
in interfaceMap<Name,
AttributeType>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Name,
AttributeType>
-
get
- Specified by:
get
in interfaceMap<Name,
AttributeType>
-
put
- Specified by:
put
in interfaceMap<Name,
AttributeType>
-
remove
- Specified by:
remove
in interfaceMap<Name,
AttributeType>
-
putAll
- Specified by:
putAll
in interfaceMap<Name,
AttributeType>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<Name,
AttributeType>
-
add
Description copied from interface:Schema
Adds a type to the schema.This method is a convenience for
put(type.getName(),type)
. -
values
- Specified by:
values
in interfaceMap<Name,
AttributeType>
-
entrySet
- Specified by:
entrySet
in interfaceMap<Name,
AttributeType>
-