public interface Container
See ContainerLoader
for how to push graph and attributes data in the
container and see ContainerUnloader
for how to retrieve data in the
container.
Modifier and Type | Interface and Description |
---|---|
static interface |
Container.Factory
Container factory.
|
Modifier and Type | Method and Description |
---|---|
void |
closeLoader()
Close the current loading and clean content before unloading.
|
ContainerLoader |
getLoader()
Gets the container loading interface.
|
Report |
getReport()
Returns the report associated to this container, if it exists.
|
String |
getSource()
If exists, returns the source of the data.
|
ContainerUnloader |
getUnloader()
Get the container unloading interface.
|
boolean |
hasDynamicAttributes()
Returns true if this container contains elements that have dynamic
attributes.
|
boolean |
hasSelfLoops()
Returns true if edges in this container are self-loops.
|
boolean |
isDynamicGraph()
Returns true if this container contains a dynamic graph.
|
boolean |
isMultiGraph()
Returns true if this container contains a multigraph.
|
void |
setReport(Report report)
Sets a report this container can use to report issues detected when
loading the container.
|
void |
setSource(String source)
Sets the source of the data put in the container.
|
boolean |
verify()
This method must be called after the loading is complete and before
unloading.
|
void setSource(String source)
source
- original source of data.NullPointerException
- if source
is null
String getSource()
null
if source is not
defined.ContainerLoader getLoader()
The loader is used by modules which put data in the container, whereas the unloader interface is used by modules which read containers content.
ContainerUnloader getUnloader()
The unloader interface is used by modules which read containers content, whereas the loader is used for pushing data in the container.
void setReport(Report report)
Report are used to log info and issues during import process. Only one report can be associated to a container.
report
- set report
as the default report for this
containerNullPointerException
- if report
is null
Report getReport()
null
if no report
is definedboolean verify()
It aims to verify data consistency as a whole.
true
if container data is consistent,
false
otherwisevoid closeLoader()
boolean isDynamicGraph()
A dynamic graph has elements that appear or disappear over time.
boolean hasDynamicAttributes()
Dynamic attributes are attributes with different values over time.
boolean hasSelfLoops()
boolean isMultiGraph()
A multi-graph is a graph that has several types of edges (i.e. edges with different labels).
Copyright © 2007–2015 Gephi Consortium. All rights reserved.