Package org.gvsig.metadata
Interface DefinitionsMap
- All Superinterfaces:
Map
This is the intermediary of the ImportExport module, which enables to have a
disposable iterator of a list of DynStructs. It also permits to obtain
another disposable iterator of the related DynFields based on a given
DynStruct. It extends from a Mapinvalid input: '<'String, DynStruct>.
- Version:
- $Id$
- Author:
- gvSIG Team, cmartin
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.gvsig.tools.dynobject.DynStruct newDefinition) Adds a definition to the listvoidchildrenIterator(org.gvsig.tools.dynobject.DynStruct parentDefinition) Returns a list iteration containing the current children element definitions of a given parentDefinition.org.gvsig.tools.dispose.DisposableIteratorReturns a disposable list iteration containing the current elements of the list.org.gvsig.tools.dispose.DisposableIteratordynFieldsIterator(org.gvsig.tools.dynobject.DynStruct definition) Returns a disposable list iteration containingDynFields based on a given definition (DynStruct).getChildren(org.gvsig.tools.dynobject.DynStruct definition) Returns a list containing children definitions (DynStructs) based on a given definition.booleanhasDefinition(org.gvsig.tools.dynobject.DynStruct definition) Determines if this definition is already included.iterator()Returns a list containing definitions (DynStruct), which are disposable.parentsIterator(org.gvsig.tools.dynobject.DynStruct childDefinition) Returns a list iteration containing the current parent element definitions of a given childDefinition.voidremove(org.gvsig.tools.dynobject.DynStruct definition) Removes a definition from the listvoidsave()Saves the current Metadata elements of the list.voidsetHierarchyDefinitions(Map userDefs, Map hierarchyDefs) Sets the current user definitions linked to the current hierarchy definitions.intsize()Retrieves the size of the list of elements.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
-
Method Details
-
remove
void remove(org.gvsig.tools.dynobject.DynStruct definition) Removes a definition from the list- Parameters:
definition- the definition to be removed.
-
add
void add(org.gvsig.tools.dynobject.DynStruct newDefinition) Adds a definition to the list- Parameters:
definition- the definition to be added.
-
addAll
-
hasDefinition
boolean hasDefinition(org.gvsig.tools.dynobject.DynStruct definition) Determines if this definition is already included.- Parameters:
definition- the current definition to be checked.- Returns:
- true if the definition is contained, false otherwise.
-
save
void save()Saves the current Metadata elements of the list. -
size
int size()Retrieves the size of the list of elements. -
setHierarchyDefinitions
Sets the current user definitions linked to the current hierarchy definitions.- Parameters:
userDefs- the user DefinitionshierarchyDefs- the hierarchy Definitions
-
iterator
Iterator iterator()Returns a list containing definitions (DynStruct), which are disposable.- Returns:
- the disposable DynStructs iterator.
-
dynFieldsIterator
org.gvsig.tools.dispose.DisposableIterator dynFieldsIterator(org.gvsig.tools.dynobject.DynStruct definition) Returns a disposable list iteration containingDynFields based on a given definition (DynStruct).- Parameters:
definition- the DynStruct definition from which to obtain the associated DynFields.- Returns:
- the disposable DynFields iterator.
-
getChildren
Returns a list containing children definitions (DynStructs) based on a given definition.- Parameters:
definition- the DynStruct definition from which to obtain the associated children.- Returns:
- the disposable DynFields iterator.
-
disposableIterator
org.gvsig.tools.dispose.DisposableIterator disposableIterator()Returns a disposable list iteration containing the current elements of the list.- Returns:
- the disposable DynFields iterator.
-
parentsIterator
Returns a list iteration containing the current parent element definitions of a given childDefinition.- Parameters:
childDefinition-- Returns:
- the parent definitions' iterator.
-
childrenIterator
Returns a list iteration containing the current children element definitions of a given parentDefinition.- Returns:
- the parent definitions' iterator.
-