|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.director.ExportDirector
edu.iris.Fissures.seed.director.SeedExportDirector
public class SeedExportDirector
Concrete class specifically to handle to direct export of SEED data from a SeedObjectContainer and ExportTemplate. Can connect to any concrete ExportBuilder.
Take special note of the object Type referencing used for the ExportTemplate in the methods getContext() and filterBlockette(). This is necessary for the heirarchichal arrangement of station/channel/response blockettes and data blockettes. This is a SEED-specific case that makes special use of the ExportTemplate tabulation process.
Field Summary |
---|
Fields inherited from class edu.iris.Fissures.seed.director.ExportDirector |
---|
builder, container, expTemplate |
Constructor Summary | |
---|---|
SeedExportDirector()
|
Method Summary | |
---|---|
void |
fillTemplate(BuilderFilter templateFilter)
Using the provided BuilderFilter, pick out matching blockette objects to populate the ExportTemplate. |
long |
generateContext(int childObjType,
int parentId)
Generate context ID value from object type and parent ID. |
protected long |
getContext(int objType)
Get a context ID value. |
protected java.lang.Object |
getObject(int refNum)
Return a 'flat' copy of the Blockette object associated with the refNum ID. |
protected void |
startVolume()
Signal the director that we are starting a new volume. |
Methods inherited from class edu.iris.Fissures.seed.director.ExportDirector |
---|
assignBuilder, assignContainer, assignTemplate, construct |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeedExportDirector()
Method Detail |
---|
public void fillTemplate(BuilderFilter templateFilter) throws java.lang.Exception
fillTemplate
in class ExportDirector
java.lang.Exception
protected void startVolume()
startVolume
in class ExportDirector
protected java.lang.Object getObject(int refNum) throws java.lang.Exception
getObject
in class ExportDirector
java.lang.Exception
protected long getContext(int objType) throws BuilderException
getContext
in class ExportDirector
BuilderException
public long generateContext(int childObjType, int parentId) throws BuilderException
The reason for using a long value is that the number space required to represent the full parent lookup ID plus the blockette type is too large to be accomodated by an integer. The pattern is:
B B B B V V V T N N N N N N
which is 4 digits for the blockette number followed by the full parent lookup ID. The long value has a lot of room to expand for other kinds of mappings (max value = 9 223 372 036 854 775 807).
BuilderException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |