public class Prefetch extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
Map<String,List<String>> |
keysBySchema
map of schema -> list of prefix:name
|
Map<String,Map<String,String>> |
keysBySchemaAndName
map of schema -> name -> prefix:name
|
Map<String,Serializable> |
values
map of prefix:name -> value
|
Constructor and Description |
---|
Prefetch() |
Modifier and Type | Method and Description |
---|---|
void |
clearPrefetch(String schemaName)
Clears the prefetches for a given schema.
|
Serializable |
get(String xpath) |
Serializable |
get(String schemaName,
String name) |
String |
getXPathSchema(String xpath,
DocumentType type)
Gets the schema name for a given xpath.
|
boolean |
isEmpty() |
boolean |
isPrefetched(String xpath) |
boolean |
isPrefetched(String schemaName,
String name) |
void |
put(String prefixedName,
String schemaName,
String name,
Serializable value) |
public Map<String,Serializable> values
key can be a canonical xpath like prefix:name/0/othername
null values are stored as actual nulls
public boolean isEmpty()
public void put(String prefixedName, String schemaName, String name, Serializable value)
public Serializable get(String xpath)
public Serializable get(String schemaName, String name)
public boolean isPrefetched(String xpath)
public void clearPrefetch(String schemaName)
public String getXPathSchema(String xpath, DocumentType type)
The type is used to resolve non-prefixed properties.
null
Copyright © 2011 Nuxeo SA. All Rights Reserved.