org.eclipse.ohf.stem.internal.data
Class ModelRecord
java.lang.Object
org.eclipse.ohf.stem.internal.data.IdentifiableRecord
org.eclipse.ohf.stem.internal.data.ModelRecord
- All Implemented Interfaces:
- java.lang.Comparable<IdentifiableRecord>
- Direct Known Subclasses:
- ModelRecord.CountryModelRecord, ModelRecord.GeneralModelRecord
public abstract class ModelRecord
- extends IdentifiableRecord
This class represents a Model
and its metadata.
Fields inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord |
BIBLIOGRAPHIC_CITATION_PROPERTY, CONTRIBUTOR_PROPERTY, COVERAGE_PROPERTY, CREATED_PROPERTY, CREATOR_PROPERTY, DATE_PROPERTY, DESCRIPTION_PROPERTY, FORMAT_PROPERTY, identifiableURIPrefix, IDENTIFIER_PROPERTY, LANGUAGE_PROPERTY, LICENSE_PROPERTY, PUBLISHER_PROPERTY, RELATION_PROPERTY, REQUIRED_PROPERTY, RIGHTS_PROPERTY, SERIALIZATION_DATE_RANGE_FORMAT_1_DATE, SERIALIZATION_DATE_RANGE_FORMAT_1_DATE_YEAR, SERIALIZATION_DATE_RANGE_FORMAT_2_DATES, SOURCE_PROPERTY, SPATIAL_PROPERTY, SUBJECT_PROPERTY, TITLE_PROPERTY, TYPE_PROPERTY, VALID_PROPERTY |
Methods inherited from class org.eclipse.ohf.stem.internal.data.IdentifiableRecord |
addAdminLevel, addAdminLevel, addAdminLevels, compareTo, getAdminLevels, getAdminLevelsAsString, getAdminLevelsMaxToMin, getDublinCore, getEndDate, getIdentifiable, getMaxAdminLevel, getMinAdminLevel, getNumAdminLevels, getStartDate, inDateRange, isYounger, serialize, serializeIdentifiable, setDublinCore, setEndDate, setIdentifiable, setStartDate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MODEL_RECORD_TYPE_NAME
public static final java.lang.String MODEL_RECORD_TYPE_NAME
- The name of the type of
IdentifiableRecord
this is.
- See Also:
- Constant Field Values
ModelRecord
public ModelRecord()
getModel
public Model getModel()
- Returns:
- the
Model
addGraphRecord
public void addGraphRecord(GraphRecord graphRecord)
- Parameters:
graphRecord
- the GraphRecord
to add to the ModelRecord
addGraphRecords
public void addGraphRecords(java.util.List<GraphRecord> graphRecords)
- Add a a list of
GraphRecord
s
- Parameters:
graphRecords
- a list of GraphRecord
s
addModelRecordWithoutDateRangeUpdate
public void addModelRecordWithoutDateRangeUpdate(ModelRecord modelRecord)
- Parameters:
modelRecord
- the ModelRecord
to add to the
ModelRecord
addModelRecord
public void addModelRecord(ModelRecord modelRecord)
- Parameters:
modelRecord
- the ModelRecord
to add to the
ModelRecord
addModelRecords
public void addModelRecords(java.util.List<ModelRecord> modelRecords)
- Parameters:
modelRecords
-
addDecorator
public void addDecorator(DecoratorRecord decorator)
- Parameters:
decorator
- the DecoratorRecord
to add to the
ModelRecord
addDecorators
public void addDecorators(java.util.List<DecoratorRecord> decorators)
- Parameters:
decorators
-
getNumNodes
public int getNumNodes()
- Specified by:
getNumNodes
in class IdentifiableRecord
- Returns:
- the number of
Node
s in the Identifiable
- See Also:
IdentifiableRecord.getNumNodes()
getNumEdges
public int getNumEdges()
- Specified by:
getNumEdges
in class IdentifiableRecord
- Returns:
- the number of
Edge
s in the Identifiable
- See Also:
IdentifiableRecord.getNumEdges()
getNumLabels
public int getNumLabels()
- Specified by:
getNumLabels
in class IdentifiableRecord
- Returns:
- the number of
Label
s in the Identifiable
- See Also:
IdentifiableRecord.getNumLabels()
getNumModelDecorators
public int getNumModelDecorators()
- Specified by:
getNumModelDecorators
in class IdentifiableRecord
- Returns:
- the number of model
Decorator
s in the
Identifiable
- See Also:
IdentifiableRecord.getNumModelDecorators()
getNumScenarioDecorators
public int getNumScenarioDecorators()
- Specified by:
getNumScenarioDecorators
in class IdentifiableRecord
- Returns:
- the number of scenario
Decorator
s in the
Identifiable
- See Also:
IdentifiableRecord.getNumScenarioDecorators()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()