public class NameToSpecificationMap extends java.lang.Object implements java.util.Map<java.lang.String,IQuerySpecification<?>>
IQuerySpecification
instances. The
IncQuery builder maintains one of them during building, while for the generic API the user might want to manage it.Constructor and Description |
---|
NameToSpecificationMap() |
NameToSpecificationMap(java.util.Collection<? extends IQuerySpecification<?>> specifications) |
NameToSpecificationMap(IncQueryEngine engine)
Initializes a pattern-specification mapping with the contents of an existing
IncQueryEngine . |
NameToSpecificationMap(IQuerySpecification<?>... specifications) |
NameToSpecificationMap(java.util.Map<java.lang.String,IQuerySpecification<?>> source) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.String,IQuerySpecification<?>>> |
entrySet() |
IQuerySpecification<?> |
get(java.lang.Object key) |
java.util.Collection<IQuerySpecification<?>> |
getSpecificationsWithStatus(PQuery.PQueryStatus status)
Returns a collection of specifications with the selected status
|
IQuerySpecification<?> |
getSpecificationWithStatus(PQuery.PQueryStatus status)
Returns a specification with the selected status
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
IQuerySpecification<?> |
put(java.lang.String key,
IQuerySpecification<?> value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends IQuerySpecification<?>> values) |
IQuerySpecification<?> |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<IQuerySpecification<?>> |
values() |
public NameToSpecificationMap()
public NameToSpecificationMap(IQuerySpecification<?>... specifications)
public NameToSpecificationMap(java.util.Collection<? extends IQuerySpecification<?>> specifications)
public NameToSpecificationMap(java.util.Map<java.lang.String,IQuerySpecification<?>> source)
public NameToSpecificationMap(IncQueryEngine engine)
IncQueryEngine
.
Warning It is assumed that each query specification in the engine has a unique fqn - if the assumption fails, the resulting map is unspecified.
engine
- public void clear()
clear
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public java.util.Set<java.util.Map.Entry<java.lang.String,IQuerySpecification<?>>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public IQuerySpecification<?> get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public IQuerySpecification<?> put(java.lang.String key, IQuerySpecification<?> value)
put
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public void putAll(java.util.Map<? extends java.lang.String,? extends IQuerySpecification<?>> values)
putAll
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public IQuerySpecification<?> remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public int size()
size
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public java.util.Collection<IQuerySpecification<?>> values()
values
in interface java.util.Map<java.lang.String,IQuerySpecification<?>>
public IQuerySpecification<?> getSpecificationWithStatus(PQuery.PQueryStatus status)
status
- public java.util.Collection<IQuerySpecification<?>> getSpecificationsWithStatus(PQuery.PQueryStatus status)
status
-