public class ProfileImpl extends Object implements Schema
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).
Constructor and Description |
---|
ProfileImpl(Schema parent,
Set<Name> profile)
Subset parent schema with profile keys.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AttributeType type)
Adds a type to the schema.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Name,AttributeType>> |
entrySet() |
AttributeType |
get(Object key) |
String |
getURI()
The uri of the schema.
|
boolean |
isEmpty() |
Set<Name> |
keySet() |
Schema |
profile(Set<Name> profile)
Profiles the schema, creating a new schema in the process.
|
AttributeType |
put(Name key,
AttributeType value) |
void |
putAll(Map<? extends Name,? extends AttributeType> t) |
AttributeType |
remove(Object key) |
int |
size() |
Collection<AttributeType> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getURI()
Schema
This method is a convenience for keySet().getURI()
.
public Schema profile(Set<Name> profile)
Schema
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.
public int size()
size
in interface Map<Name,AttributeType>
public boolean isEmpty()
isEmpty
in interface Map<Name,AttributeType>
public boolean containsKey(Object key)
containsKey
in interface Map<Name,AttributeType>
public boolean containsValue(Object value)
containsValue
in interface Map<Name,AttributeType>
public AttributeType get(Object key)
get
in interface Map<Name,AttributeType>
public AttributeType put(Name key, AttributeType value)
put
in interface Map<Name,AttributeType>
public AttributeType remove(Object key)
remove
in interface Map<Name,AttributeType>
public void putAll(Map<? extends Name,? extends AttributeType> t)
putAll
in interface Map<Name,AttributeType>
public void clear()
clear
in interface Map<Name,AttributeType>
public void add(AttributeType type)
Schema
This method is a convenience for put(type.getName(),type)
.
public Collection<AttributeType> values()
values
in interface Map<Name,AttributeType>
public Set<Map.Entry<Name,AttributeType>> entrySet()
entrySet
in interface Map<Name,AttributeType>
Copyright © 1996–2019 Geotools. All rights reserved.