org.geotools.feature.type
Class ProfileImpl
java.lang.Object
org.geotools.feature.type.ProfileImpl
- All Implemented Interfaces:
- java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>, org.opengis.feature.type.Schema
public class ProfileImpl
- extends java.lang.Object
- implements org.opengis.feature.type.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 classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
ProfileImpl(org.opengis.feature.type.Schema parent,
java.util.Set<org.opengis.feature.type.Name> profile)
Subset parent schema with profile keys. |
Method Summary |
void |
add(org.opengis.feature.type.AttributeType type)
|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>> |
entrySet()
|
org.opengis.feature.type.AttributeType |
get(java.lang.Object key)
|
java.lang.String |
getURI()
|
boolean |
isEmpty()
|
java.util.Set<org.opengis.feature.type.Name> |
keySet()
|
org.opengis.feature.type.Schema |
profile(java.util.Set<org.opengis.feature.type.Name> profile)
|
org.opengis.feature.type.AttributeType |
put(org.opengis.feature.type.Name key,
org.opengis.feature.type.AttributeType value)
|
void |
putAll(java.util.Map<? extends org.opengis.feature.type.Name,? extends org.opengis.feature.type.AttributeType> t)
|
org.opengis.feature.type.AttributeType |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection<org.opengis.feature.type.AttributeType> |
values()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
ProfileImpl
public ProfileImpl(org.opengis.feature.type.Schema parent,
java.util.Set<org.opengis.feature.type.Name> profile)
- Subset parent schema with profile keys.
- Parameters:
parent
- profile
-
keySet
public java.util.Set<org.opengis.feature.type.Name> keySet()
- Specified by:
keySet
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
getURI
public java.lang.String getURI()
- Specified by:
getURI
in interface org.opengis.feature.type.Schema
profile
public org.opengis.feature.type.Schema profile(java.util.Set<org.opengis.feature.type.Name> profile)
- Specified by:
profile
in interface org.opengis.feature.type.Schema
size
public int size()
- Specified by:
size
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
get
public org.opengis.feature.type.AttributeType get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
put
public org.opengis.feature.type.AttributeType put(org.opengis.feature.type.Name key,
org.opengis.feature.type.AttributeType value)
- Specified by:
put
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
remove
public org.opengis.feature.type.AttributeType remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
putAll
public void putAll(java.util.Map<? extends org.opengis.feature.type.Name,? extends org.opengis.feature.type.AttributeType> t)
- Specified by:
putAll
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
add
public void add(org.opengis.feature.type.AttributeType type)
- Specified by:
add
in interface org.opengis.feature.type.Schema
values
public java.util.Collection<org.opengis.feature.type.AttributeType> values()
- Specified by:
values
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
entrySet
public java.util.Set<java.util.Map.Entry<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<org.opengis.feature.type.Name,org.opengis.feature.type.AttributeType>
Copyright © 1996-2010 Geotools. All Rights Reserved.