public class AggregationReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AggregationReader.AggregationException |
Constructor and Description |
---|
AggregationReader() |
Modifier and Type | Method and Description |
---|---|
static List<TGObjectReference> |
list(TextGridObject aggregation,
boolean onlyAccessible)
Lists an aggregation (via TG-search).
|
static List<URI> |
read(Source aggregation,
boolean strict)
Reads the given aggregation to a list of (aggregated) URIs
|
static List<URI> |
read(TextGridObject object,
boolean strict) |
public static List<URI> read(Source aggregation, boolean strict) throws XMLStreamException, URISyntaxException
aggregation
- the aggregation to throwstrict
- if true errors during processing will always be thrown, if
false we will ignore errors inside 'ore:aggregates' elements.XMLStreamException
- if something goes wrong parsing the fileURISyntaxException
- if we find a non-URI where we expect an URIpublic static List<URI> read(TextGridObject object, boolean strict) throws CoreException
CoreException
public static List<TGObjectReference> list(TextGridObject aggregation, boolean onlyAccessible) throws OfflineException, CoreException
aggregation
- The aggregation to list.onlyAccessible
- If true
, objects that are not accessible with the
current session ID are silently skipped. Otherwise, there are
entries for those objects, but those entries will not have
metadata, and an exception will probably be thrown when trying
to access these objects or their metadata.OfflineException
- when the configuration server cannot be accessed.CoreException
- when something goes wrong with reading or initializing a
TextGridObject
.