Package org.geotools.feature.type
Class SchemaImpl
- Object
-
- SchemaImpl
-
- All Implemented Interfaces:
Map<Name,AttributeType>,Schema
- Direct Known Subclasses:
GCOSchema,GMDSchema,GMLSchema,GMLSchema,GMLSchema,GMXSchema,GSRSchema,GSSSchema,GTSSchema,SimpleSchema,SMIL20LANGSchema,SMIL20Schema,XLINKSchema,XSSchema
public class SchemaImpl extends Object implements Schema
Implementation of Schema.- Author:
- Justin Deoliveira, The Open Planning Project
-
-
Constructor Summary
Constructors Constructor Description SchemaImpl(String uri)Schema constructed w/ respect to provided URI
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AttributeType type)Adds a type to the schema.voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<Name,AttributeType>>entrySet()booleanequals(Object obj)AttributeTypeget(Object key)StringgetURI()The uri of the schema.inthashCode()booleanisEmpty()Set<Name>keySet()Schemaprofile(Set<Name> profile)Profiles the schema, creating a new schema in the process.AttributeTypeput(Name name, AttributeType type)voidputAll(Map<? extends Name,? extends AttributeType> t)AttributeTyperemove(Object key)intsize()StringtoString()Collection<AttributeType>values()-
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
SchemaImpl
public SchemaImpl(String uri)
Schema constructed w/ respect to provided URI
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceMap<Name,AttributeType>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<Name,AttributeType>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Name,AttributeType>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Name,AttributeType>
-
get
public AttributeType get(Object key)
- Specified by:
getin interfaceMap<Name,AttributeType>
-
put
public AttributeType put(Name name, AttributeType type)
- Specified by:
putin interfaceMap<Name,AttributeType>
-
remove
public AttributeType remove(Object key)
- Specified by:
removein interfaceMap<Name,AttributeType>
-
putAll
public void putAll(Map<? extends Name,? extends AttributeType> t)
- Specified by:
putAllin interfaceMap<Name,AttributeType>
-
clear
public void clear()
- Specified by:
clearin interfaceMap<Name,AttributeType>
-
values
public Collection<AttributeType> values()
- Specified by:
valuesin interfaceMap<Name,AttributeType>
-
entrySet
public Set<Map.Entry<Name,AttributeType>> entrySet()
- Specified by:
entrySetin interfaceMap<Name,AttributeType>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
getURI
public String getURI()
Description copied from interface:SchemaThe uri of the schema.This method is a convenience for
keySet().getURI().
-
add
public void add(AttributeType type)
Description copied from interface:SchemaAdds a type to the schema.This method is a convenience for
put(type.getName(),type).
-
profile
public Schema profile(Set<Name> profile)
Description copied from interface:SchemaProfiles 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.
-
-