Class BaseDataObject
- java.lang.Object
-
- emissary.core.BaseDataObject
-
- All Implemented Interfaces:
IBaseDataObject,Serializable,Cloneable,Remote
- Direct Known Subclasses:
ExtractedRecord
public class BaseDataObject extends Object implements Serializable, Cloneable, Remote, IBaseDataObject
Class to hold data, header, footer, and attributes- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classBaseDataObject.DataState-
Nested classes/interfaces inherited from interface emissary.core.IBaseDataObject
IBaseDataObject.MergePolicy
-
-
Field Summary
Fields Modifier and Type Field Description protected intbirthOrderWhat child is this in the family orderprotected StringBuilderbrokenDocumentKeep track of if and how the document is broken so we can report on it laterprotected StringclassificationRecord the classification scheme for the documentprotected InstantcreationTimestampThe timestamp for when the BaseDataObject was created.protected List<String>currentFormThe currentForm is a stack of the itinerary items.protected String[]emptyFileTypesprotected List<IBaseDataObject>extractedRecordsThe extracted records, if anyprotected StringfontEncodingThe last determined language(characterset) of the data.protected byte[]footerAny footer that goes along with the dataprotected byte[]headerAny header that goes along with the dataprotected StringheaderEncodingIf the header has some encoding scheme record itprotected TransformHistoryhistoryA travelogue built up as the agent moves about.protected StringidThe unique identifier of this objectprotected UUIDinternalIdThe internal identifier, generated for each constructed objectprotected static StringINVALID_STATE_MSGprotected static org.slf4j.Loggerloggerstatic intMAX_BYTE_ARRAY_SIZEprotected Map<String,byte[]>multipartAlternativeHash of alternate views of the dataStringcurrent form is the key, byte[] is the valueprotected intnumChildrenIf this file caused other agents to be sprouted, indicate how manyprotected intnumSiblingsIf this file has siblings that were sprouted at the same time, this will indicate how many total siblings there are.protected booleanoutputableCheck to see if this tree is able to be written out.protected com.google.common.collect.LinkedListMultimap<String,Object>parametersDynamic facets or metadata attributes of the dataprotected intpriorityThe integer priority of the data object.protected StringBuilderprocErrorHistory of processing errors.protected SeekableByteChannelFactoryseekableByteChannelFactoryA factory to create channels for the referenced data.protected StringshortNameTerminal portion of theFileNameprotected byte[]theDataprotected StringtheFileNameOriginal name of the input data.protected IBaseDataObjecttldprotected StringtransactionIdThe identifier used to track the object through the systemprotected StringworkBundleIdThe identifier of theWorkBundle-
Fields inherited from interface emissary.core.IBaseDataObject
DEFAULT_PARAM_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description BaseDataObject()Create an empty BaseDataObject.BaseDataObject(byte[] newData, String name)Create a new BaseDataObject with byte array and name passed in.BaseDataObject(byte[] newData, String name, String form)Create a new BaseDataObject with byte array, name, and initial form WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.BaseDataObject(byte[] newData, String name, String form, IBaseDataObject tld)BaseDataObject(byte[] newData, String name, String form, String fileType)BaseDataObject(byte[] newData, String name, String form, String fileType, IBaseDataObject tld)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAlternateView(String name, byte[] data)Add a multipart alternative view of the data WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.voidaddAlternateView(String name, byte[] data, int offset, int length)Add a multipart alternative view of the dataintaddCurrentFormAt(int i, String newForm)Add current form newForm at idxvoidaddExtractedRecord(IBaseDataObject record)Add an extracted childvoidaddExtractedRecords(List<? extends IBaseDataObject> records)Add extracted childrenvoidaddProcessingError(String err)Record a processing errorvoidappendAlternateView(String name, byte[] data)Append the specified data to the alternate viewvoidappendAlternateView(String name, byte[] data, int offset, int length)Append to a multipart alternative view of the datavoidappendParameter(String key, CharSequence value)Append data to the specified metadata elementvoidappendParameter(String key, Iterable<? extends CharSequence> values)Append data values to the specified metadata elementvoidappendTransformHistory(String key)Appends the new key to the transform history.voidappendTransformHistory(String key, boolean coordinated)Appends the new key to the transform history.booleanappendUniqueParameter(String key, CharSequence value)Append data to the specified metadata element if it doesn't already exist If you expect to append a lot if things this way, this method might not have the performance characteristics that you expect.booleanbeforeStart()True if this payload hasn't had any processing yet Does not count parent processing as being for this payloadvoidclearExtractedRecords()Clear the list of extracted records.voidclearParameters()Clear all metadata elementsvoidclearTransformHistory()Clear the transformation historyIBaseDataObjectclone()Deprecated.StringcurrentForm()Return the current form of the data (top of the stack)StringcurrentFormAt(int i)Return the current form at specified position of the listintcurrentFormSize()Get the size of the itinerary stackbyte[]data()Return BaseDataObjects byte array OR as much as we can from the reference to the data up to MAX_BYTE_ARRAY_SIZE.ByteBufferdataBuffer()Deprecated.intdataLength()Fetch the size of the payload.intdeleteCurrentForm(String form)Remove a form where ever it appears in the stackintdeleteCurrentFormAt(int i)Remove a form at the specified location of the itinerary stackList<Object>deleteParameter(String key)Delete the specified metadata element namedintenqueueCurrentForm(String newForm)Add a form to the end of the list (the bottom of the stack)byte[]footer()Return a reference to the footer byte array.ByteBufferfooterBuffer()Deprecated.List<String>getAllCurrentForms()Return a clone the whole current form list Note this is not a reference to our private storebyte[]getAlternateView(String s)Return a specified multipart alternative view of the data WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.ByteBuffergetAlternateViewBuffer(String s)Deprecated.Set<String>getAlternateViewNames()Get the set of alt view names for new foreach loopsMap<String,byte[]>getAlternateViews()Get the alternate view map.intgetBirthOrder()Get this sibling number, count from one.StringgetBroken()Get brokenness indicator messageSeekableByteChannelFactorygetChannelFactory()Returns the seekable byte channel factory containing a reference to the data, or wraps the in-memory data on the BDO in a new factory.longgetChannelSize()Convenience method to get the size of the channel or byte array providing access to the data.StringgetClassification()Get the classification string for the dataMap<String,String>getCookedParameters()Get a processed represenation of the parameters for external useInstantgetCreationTimestamp()Get the timestamp for when the object was created.protected BaseDataObject.DataStategetDataState()Determine what state we're in with respect to the byte[] of data vs a channel.intgetExtractedRecordCount()Get count of extracted recordsList<IBaseDataObject>getExtractedRecords()Get the List of extracted recordsStringgetFilename()Returns the filename associated with the data.StringgetFileType()Get the FILETYPE parameterStringgetFontEncoding()Get the font encoding stringStringgetHeaderEncoding()Get the value of headerEncoding.StringgetId()Get IDUUIDgetInternalId()Returns the internally generated identifier used to track the objectDirectoryEntrygetLastPlaceVisited()Return an SDE based on the last item in the transform history or null if emptyintgetNumAlternateViews()Disclose how many multipart alternative views of the data existintgetNumChildren()Gets the number of children that have this as a parentintgetNumSiblings()Get the number of siblingsList<Object>getParameter(String key)Retrieve a specified metadata elementStringgetParameterAsString(String key)Retrieve the metadata value identified by key where the element is converted to a stringSet<String>getParameterKeys()Retrieve all of the current metadata keysMap<String,Collection<Object>>getParameters()Retrieve all the metadata elements of this object This method returns possibly mapped metadata element namesDirectoryEntrygetPenultimatePlaceVisited()Return an SDE based on the penultimate item in the transform history or null if emptyintgetPriority()Get data object's priority.StringgetProcessingError()Retrieve the processing error(s)IBaseDataObjectgetTld()Return the top level document or null if there is none for this IBaseDataObjectStringgetTransactionId()Get the Transaction IDTransformHistorygetTransformHistory()Get the transform historyStringgetWorkBundleId()Get the Work Bundle IDbooleanhasContent()Checks if the data is defined with a non-zero length.booleanhasExtractedRecords()Determine if this object has extracted records.booleanhasParameter(String key)Determine if parameter is presentbooleanhasVisited(String pattern)Return true if the payload has been to a place matching the key passed in.byte[]header()Return a reference to the header byte array.ByteBufferheaderBuffer()Deprecated.booleanisBroken()Test for broken documentbooleanisFileTypeEmpty()Return true if the file type is null or in one of the "don't care" setprotected booleanisFileTypeEmpty(String[] empties)Return true if the file type is null or in one of the specified set of emptiesbooleanisOutputable()Test if tree is outputablevoidmergeParameters(Map<? extends String,? extends Object> m)Merge in parameters keeping existing keys unchangedInputStreamnewInputStream()Returns a new InputStream to the data that this BaseDataObject contains.StringpopCurrentForm()Remove a form from the head of the listStringprintMeta()Print the parameters, nicely formattedvoidpullFormToTop(String curForm)Move curForm to the top of the stack pushing everything above it down one slotintpushCurrentForm(String newForm)Push a form onto the head of the listvoidputParameter(String key, Object val)Put a new metadata element into the mapvoidputParameters(Map<? extends String,? extends Object> m)Put a collection of parameters into the metadata map, keeping both old and new valuesvoidputParameters(Map<? extends String,? extends Object> m, IBaseDataObject.MergePolicy policy)Merge in new parameters using the specified policy to determine whether to keep all values, unique values, or prefer existing valuesvoidputUniqueParameters(Map<? extends String,? extends Object> m)Put a collection of parameters into the metadata map, adding only distinct k/v pairsvoidreplaceCurrentForm(String form)Replace all current forms with specifiedintsearchCurrentForm(String value)Check to see if this value is already on the stack of itinerary itemsStringsearchCurrentForm(Collection<String> values)Check to see one of these values is on the stack of itinerary itemsvoidsetBirthOrder(int num)What number is this sibling in the familyvoidsetBroken(String v)Set brokenness for documentvoidsetChannelFactory(SeekableByteChannelFactory sbcf)Set the byte channel factory using whichever implementation is providing access to the data.voidsetClassification(String classification)Set the classification.voidsetCreationTimestamp(Instant creationTimestamp)The creation timestamp is part of the provenance of the event represented by this instance.voidsetCurrentForm(String newForm)Replaces the current form of the data with a new form Does a pop() followed by a push(newForm) to simulate what would happen in the old "one form at a time system"voidsetCurrentForm(String newForm, boolean clearAllForms)Replaces the current form of the data with a form passed and potentially clears the entire form stackvoidsetData(byte[] newData)Set BaseDataObjects data to byte array passed in.voidsetData(byte[] newData, int offset, int length)Set new data on the BDO, using a range of the provided byte array.voidsetExtractedRecords(List<? extends IBaseDataObject> records)Set/replace the list of extracted childrenvoidsetFilename(String f)Set the filenamevoidsetFileType(String v)Put the FILETYPE parameter, null to clearbooleansetFileTypeIfEmpty(String v)Set FILETYPE parameter iff empty using the built-in definition of emptybooleansetFileTypeIfEmpty(String v, String[] empties)Deprecated.voidsetFontEncoding(String fe)Set the font encoding stringvoidsetFooter(byte[] footer)Set the footer byte array WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.voidsetHeader(byte[] header)Set the header byte array WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.voidsetHeaderEncoding(String v)Set the value of headerEncoding for proper interpretation and processing latervoidsetHistory(TransformHistory newHistory)Replace history with the new historyvoidsetId(String id)Set the unique identifier of the IBaseDataObjectvoidsetNumChildren(int num)Sets the number of children that the current agents spawned.voidsetNumSiblings(int num)Sets the number of siblings for this data object.voidsetOutputable(boolean outputable)Set whether or not the tree is able to be written outvoidsetParameter(String key, Object val)Set a new parameter value, deleting an old onevoidsetParameters(Map<? extends String,? extends Object> map)Replace all of the metadata elements with a new setvoidsetPriority(int priority)Set the data object's priority, typically based on input dir/file priority.voidsetTransactionId(String transactionId)Set the unique identifier of the transactionvoidsetWorkBundleId(String workBundleId)Set the unique identifier of theWorkBundleStringshortName()Returns the name of the file without the path with which the file will be written.StringtoString()Return BaseDataObjects info as a String.List<String>transformHistory()List of places the data object was carried to.List<String>transformHistory(boolean includeCoordinated)List of places the data object was carried to.StringwhereAmI()Return what machine we are located on-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface emissary.core.IBaseDataObject
checkForUnsafeDataChanges, getParameterAsConcatString, getParameterAsConcatString, getParameterAsStrings, getStringParameter, getStringParameter
-
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
MAX_BYTE_ARRAY_SIZE
public static final int MAX_BYTE_ARRAY_SIZE
- See Also:
- Constant Field Values
-
theData
@Nullable protected byte[] theData
-
theFileName
protected String theFileName
Original name of the input data. Can only be set in the constructor of the DataObject. returned via thegetFilename()method. Also used in constructing theshortName()of the document.
-
shortName
protected String shortName
Terminal portion of theFileName
-
internalId
protected UUID internalId
The internal identifier, generated for each constructed object
-
currentForm
protected List<String> currentForm
The currentForm is a stack of the itinerary items. The contents of the list areStringand map to the dataType portion of the keys in the emissary.DirectoryPlace.
-
procError
protected StringBuilder procError
History of processing errors. Lines of text are accumulated from String and returned in-toto as a String.
-
history
protected TransformHistory history
A travelogue built up as the agent moves about. Appended to by the agent as it goes from place to place.
-
fontEncoding
@Nullable protected String fontEncoding
The last determined language(characterset) of the data.
-
parameters
protected com.google.common.collect.LinkedListMultimap<String,Object> parameters
Dynamic facets or metadata attributes of the data
-
numChildren
protected int numChildren
If this file caused other agents to be sprouted, indicate how many
-
numSiblings
protected int numSiblings
If this file has siblings that were sprouted at the same time, this will indicate how many total siblings there are. This can be used to navigate among siblings without needing to refer to the parent.
-
birthOrder
protected int birthOrder
What child is this in the family order
-
multipartAlternative
protected Map<String,byte[]> multipartAlternative
Hash of alternate views of the dataStringcurrent form is the key, byte[] is the value
-
header
@Nullable protected byte[] header
Any header that goes along with the data
-
footer
@Nullable protected byte[] footer
Any footer that goes along with the data
-
headerEncoding
@Nullable protected String headerEncoding
If the header has some encoding scheme record it
-
classification
@Nullable protected String classification
Record the classification scheme for the document
-
brokenDocument
@Nullable protected StringBuilder brokenDocument
Keep track of if and how the document is broken so we can report on it later
-
emptyFileTypes
protected String[] emptyFileTypes
-
priority
protected int priority
The integer priority of the data object. A lower number is higher priority.
-
creationTimestamp
protected Instant creationTimestamp
The timestamp for when the BaseDataObject was created. Used in data provenance tracking.
-
extractedRecords
@Nullable protected List<IBaseDataObject> extractedRecords
The extracted records, if any
-
outputable
protected boolean outputable
Check to see if this tree is able to be written out.
-
id
protected String id
The unique identifier of this object
-
workBundleId
protected String workBundleId
The identifier of theWorkBundle
-
transactionId
protected String transactionId
The identifier used to track the object through the system
-
seekableByteChannelFactory
@Nullable protected SeekableByteChannelFactory seekableByteChannelFactory
A factory to create channels for the referenced data.
-
tld
@Nullable protected final IBaseDataObject tld
-
INVALID_STATE_MSG
protected static final String INVALID_STATE_MSG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseDataObject
public BaseDataObject()
Create an empty BaseDataObject.
-
BaseDataObject
public BaseDataObject(byte[] newData, String name)Create a new BaseDataObject with byte array and name passed in. WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.- Parameters:
newData- the bytes to holdname- the name of the data item
-
BaseDataObject
public BaseDataObject(byte[] newData, String name, @Nullable String form)Create a new BaseDataObject with byte array, name, and initial form WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.- Parameters:
newData- the bytes to holdname- the name of the data itemform- the initial form of the data
-
BaseDataObject
public BaseDataObject(byte[] newData, String name, String form, @Nullable String fileType)
-
BaseDataObject
public BaseDataObject(byte[] newData, String name, @Nullable String form, IBaseDataObject tld)
-
BaseDataObject
public BaseDataObject(byte[] newData, String name, @Nullable String form, @Nullable String fileType, IBaseDataObject tld)
-
-
Method Detail
-
getDataState
protected BaseDataObject.DataState getDataState()
Determine what state we're in with respect to the byte[] of data vs a channel.
Not exposed publicly as consumers should be moving to channels, meaning ultimately the states will be simply either a channel factory exists or does not exist.
Consumers should not modify their behaviour based on the state of the BDO, if they're being modified to handle channels, they should only handle channels, not both channels and byte[].
- Returns:
- the
BaseDataObject.DataStateof this BDO
-
setHeader
public void setHeader(byte[] header)
Set the header byte array WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.- Specified by:
setHeaderin interfaceIBaseDataObject- Parameters:
header- the byte array of header data
-
getHeaderEncoding
public String getHeaderEncoding()
Get the value of headerEncoding. Tells how to interpret the header information.- Specified by:
getHeaderEncodingin interfaceIBaseDataObject- Returns:
- Value of headerEncoding.
-
setHeaderEncoding
public void setHeaderEncoding(String v)
Set the value of headerEncoding for proper interpretation and processing later- Specified by:
setHeaderEncodingin interfaceIBaseDataObject- Parameters:
v- Value to assign to headerEncoding.
-
setFooter
public void setFooter(byte[] footer)
Set the footer byte array WARNING: this implementation uses the passed in array directly, no copy is made so the caller should not reuse the array.- Specified by:
setFooterin interfaceIBaseDataObject- Parameters:
footer- byte array of footer data
-
setFilename
public void setFilename(String f)
Set the filename- Specified by:
setFilenamein interfaceIBaseDataObject- Parameters:
f- the new name of the data including path
-
setChannelFactory
public void setChannelFactory(SeekableByteChannelFactory sbcf)
Set the byte channel factory using whichever implementation is providing access to the data. Setting this will null outtheData- Specified by:
setChannelFactoryin interfaceIBaseDataObject- Parameters:
sbcf- the new channel factory to set on this object
-
getChannelFactory
@Nullable public SeekableByteChannelFactory getChannelFactory()
Returns the seekable byte channel factory containing a reference to the data, or wraps the in-memory data on the BDO in a new factory.- Specified by:
getChannelFactoryin interfaceIBaseDataObject- Returns:
- the factory containing the data reference or the data wrapped in a new factory
-
newInputStream
@Nullable public InputStream newInputStream()
Returns a new InputStream to the data that this BaseDataObject contains.NOTE 1: Mutating the data elements of this IBaseDataObject while reading from the InputStream will have indeterminate results.
NOTE 2: The calling code is responsible for closing the returned InputStream.
- Specified by:
newInputStreamin interfaceIBaseDataObject- Returns:
- a new stream that reads the data that this object contains, or null if this object has no data.
-
data
@Nullable public byte[] data()
Return BaseDataObjects byte array OR as much as we can from the reference to the data up to MAX_BYTE_ARRAY_SIZE.
Data returned from a backing Channel will be truncated at
MAX_BYTE_ARRAY_SIZE. Using channel-related methods is now preferred to allow handling of larger objectsWARNING: There is no way for the caller to know whether the data being returned is the direct array held in memory, or a copy of the data from a byte channel factory, so the returned byte array should be treated as live and not be modified.
- Specified by:
datain interfaceIBaseDataObject- Returns:
- the data as a byte array
- See Also:
getChannelFactory()
-
setData
public void setData(@Nullable byte[] newData)Description copied from interface:IBaseDataObjectSet BaseDataObjects data to byte array passed in.- Specified by:
setDatain interfaceIBaseDataObject- Parameters:
newData- byte array to set replacing any existing data- See Also:
setData(byte[], int, int)
-
setData
public void setData(@Nullable byte[] newData, int offset, int length)Set new data on the BDO, using a range of the provided byte array. This will remove the reference to any byte channel factory that backs this BDO so be careful!
Limited in size to 2^31. Use channel-based methods for larger data.
- Specified by:
setDatain interfaceIBaseDataObject- Parameters:
newData- containing the source of the new dataoffset- where to start copying fromlength- how much to copy- See Also:
setChannelFactory(SeekableByteChannelFactory)
-
hasContent
public boolean hasContent() throws IOExceptionChecks if the data is defined with a non-zero length.- Specified by:
hasContentin interfaceIBaseDataObject- Returns:
- if data is undefined or zero length.
- Throws:
IOException
-
getChannelSize
public long getChannelSize() throws IOExceptionConvenience method to get the size of the channel or byte array providing access to the data.- Specified by:
getChannelSizein interfaceIBaseDataObject- Returns:
- the channel size
- Throws:
IOException- if an error occurs with the underlying channel
-
dataLength
public int dataLength()
Fetch the size of the payload. Prefer to use:getChannelSize()- Specified by:
dataLengthin interfaceIBaseDataObject- Returns:
- the length of theData, or the size of the seekable byte channel up to
MAX_BYTE_ARRAY_SIZE.
-
shortName
public String shortName()
Description copied from interface:IBaseDataObjectReturns the name of the file without the path with which the file will be written.- Specified by:
shortNamein interfaceIBaseDataObject- Returns:
- the short name of the file (no path)
-
getFilename
public String getFilename()
Description copied from interface:IBaseDataObjectReturns the filename associated with the data.- Specified by:
getFilenamein interfaceIBaseDataObject- Returns:
- the string name with path
-
currentForm
public String currentForm()
Description copied from interface:IBaseDataObjectReturn the current form of the data (top of the stack)- Specified by:
currentFormin interfaceIBaseDataObject- Returns:
- string value of current form
-
currentFormAt
public String currentFormAt(int i)
Description copied from interface:IBaseDataObjectReturn the current form at specified position of the list- Specified by:
currentFormAtin interfaceIBaseDataObject- Parameters:
i- The specified position- Returns:
- String containing the form or empty string if illegal position
-
searchCurrentForm
public int searchCurrentForm(String value)
Description copied from interface:IBaseDataObjectCheck to see if this value is already on the stack of itinerary items- Specified by:
searchCurrentFormin interfaceIBaseDataObject- Parameters:
value- the string to look for- Returns:
- the position where it was found or -1
-
searchCurrentForm
@Nullable public String searchCurrentForm(Collection<String> values)
Description copied from interface:IBaseDataObjectCheck to see one of these values is on the stack of itinerary items- Specified by:
searchCurrentFormin interfaceIBaseDataObject- Parameters:
values- the List of strings to look for- Returns:
- the String that was found out of the list sent in or null
-
currentFormSize
public int currentFormSize()
Description copied from interface:IBaseDataObjectGet the size of the itinerary stack- Specified by:
currentFormSizein interfaceIBaseDataObject- Returns:
- size of form stack
-
replaceCurrentForm
public void replaceCurrentForm(@Nullable String form)Description copied from interface:IBaseDataObjectReplace all current forms with specified- Specified by:
replaceCurrentFormin interfaceIBaseDataObject- Parameters:
form- the new current form or null if none desired
-
popCurrentForm
@Nullable public String popCurrentForm()
Remove a form from the head of the list- Specified by:
popCurrentFormin interfaceIBaseDataObject- Returns:
- The value that was removed, or
nullif the list was empty.
-
deleteCurrentForm
public int deleteCurrentForm(String form)
Description copied from interface:IBaseDataObjectRemove a form where ever it appears in the stack- Specified by:
deleteCurrentFormin interfaceIBaseDataObject- Parameters:
form- the value to remove- Returns:
- the number of elements removed from the stack
-
deleteCurrentFormAt
public int deleteCurrentFormAt(int i)
Description copied from interface:IBaseDataObjectRemove a form at the specified location of the itinerary stack- Specified by:
deleteCurrentFormAtin interfaceIBaseDataObject- Parameters:
i- the position to delete- Returns:
- the new size of the itinerary stack
-
addCurrentFormAt
public int addCurrentFormAt(int i, String newForm)Description copied from interface:IBaseDataObjectAdd current form newForm at idx- Specified by:
addCurrentFormAtin interfaceIBaseDataObject- Parameters:
i- the position to do the insertnewForm- the value to insert- Returns:
- size of the new stack
-
enqueueCurrentForm
public int enqueueCurrentForm(String newForm)
Description copied from interface:IBaseDataObjectAdd a form to the end of the list (the bottom of the stack)- Specified by:
enqueueCurrentFormin interfaceIBaseDataObject- Parameters:
newForm- the new value to add to the tail of the stack- Returns:
- the new size of the itinerary stack
-
pushCurrentForm
public int pushCurrentForm(String newForm)
Description copied from interface:IBaseDataObjectPush a form onto the head of the list- Specified by:
pushCurrentFormin interfaceIBaseDataObject- Parameters:
newForm- the new value to push on the stack- Returns:
- the new size of the itinerary stack
-
setCurrentForm
public void setCurrentForm(String newForm)
Description copied from interface:IBaseDataObjectReplaces the current form of the data with a new form Does a pop() followed by a push(newForm) to simulate what would happen in the old "one form at a time system"- Specified by:
setCurrentFormin interfaceIBaseDataObject- Parameters:
newForm- value of the the new form of the data
-
setCurrentForm
public void setCurrentForm(String newForm, boolean clearAllForms)
Description copied from interface:IBaseDataObjectReplaces the current form of the data with a form passed and potentially clears the entire form stack- Specified by:
setCurrentFormin interfaceIBaseDataObject- Parameters:
newForm- value of the the new form of the dataclearAllForms- whether or not to clear the entire form stack
-
getAllCurrentForms
public List<String> getAllCurrentForms()
Description copied from interface:IBaseDataObjectReturn a clone the whole current form list Note this is not a reference to our private store- Specified by:
getAllCurrentFormsin interfaceIBaseDataObject- Returns:
- ordered list of current forms
-
pullFormToTop
public void pullFormToTop(String curForm)
Description copied from interface:IBaseDataObjectMove curForm to the top of the stack pushing everything above it down one slot- Specified by:
pullFormToTopin interfaceIBaseDataObject- Parameters:
curForm- the form to pull to the top
-
toString
public String toString()
Description copied from interface:IBaseDataObjectReturn BaseDataObjects info as a String.- Specified by:
toStringin interfaceIBaseDataObject- Overrides:
toStringin classObject- Returns:
- string value of this object
-
printMeta
public String printMeta()
Description copied from interface:IBaseDataObjectPrint the parameters, nicely formatted- Specified by:
printMetain interfaceIBaseDataObject
-
addProcessingError
public void addProcessingError(String err)
Description copied from interface:IBaseDataObjectRecord a processing error- Specified by:
addProcessingErrorin interfaceIBaseDataObject- Parameters:
err- the new error message to record
-
getProcessingError
public String getProcessingError()
Description copied from interface:IBaseDataObjectRetrieve the processing error(s)- Specified by:
getProcessingErrorin interfaceIBaseDataObject- Returns:
- string value of processing errors
-
getTransformHistory
public TransformHistory getTransformHistory()
Description copied from interface:IBaseDataObjectGet the transform history- Specified by:
getTransformHistoryin interfaceIBaseDataObject- Returns:
- history of places visited
-
transformHistory
public List<String> transformHistory()
Description copied from interface:IBaseDataObjectList of places the data object was carried to.- Specified by:
transformHistoryin interfaceIBaseDataObject- Returns:
- List of strings making up the history
-
transformHistory
public List<String> transformHistory(boolean includeCoordinated)
Description copied from interface:IBaseDataObjectList of places the data object was carried to.- Specified by:
transformHistoryin interfaceIBaseDataObject- Parameters:
includeCoordinated- include the places that were coordinated- Returns:
- List of strings making up the history
-
clearTransformHistory
public void clearTransformHistory()
Description copied from interface:IBaseDataObjectClear the transformation history- Specified by:
clearTransformHistoryin interfaceIBaseDataObject
-
appendTransformHistory
public void appendTransformHistory(String key)
Description copied from interface:IBaseDataObjectAppends the new key to the transform history. This is called by MobileAgent before moving to the new place. It usually adds the four-tuple of a place's key- Specified by:
appendTransformHistoryin interfaceIBaseDataObject- Parameters:
key- the new value to append- See Also:
MobileAgent.agentControl(emissary.place.IServiceProviderPlace)
-
appendTransformHistory
public void appendTransformHistory(String key, boolean coordinated)
Description copied from interface:IBaseDataObjectAppends the new key to the transform history. This is called by MobileAgent before moving to the new place. It usually adds the four-tuple of a place's key. Coordinated history keys are meant for informational purposes and have no bearing on the routing algorithm. It is important to list the places visited in coordination, but should not report as the last place visited.- Specified by:
appendTransformHistoryin interfaceIBaseDataObject- Parameters:
key- the new value to appendcoordinated- true if history entries are for informational purposes only- See Also:
MobileAgent.agentControl(emissary.place.IServiceProviderPlace)
-
setHistory
public void setHistory(TransformHistory newHistory)
Description copied from interface:IBaseDataObjectReplace history with the new history- Specified by:
setHistoryin interfaceIBaseDataObject- Parameters:
newHistory- of new history strings to use
-
whereAmI
public String whereAmI()
Description copied from interface:IBaseDataObjectReturn what machine we are located on- Specified by:
whereAmIin interfaceIBaseDataObject- Returns:
- string local host name
-
getLastPlaceVisited
@Nullable public DirectoryEntry getLastPlaceVisited()
Description copied from interface:IBaseDataObjectReturn an SDE based on the last item in the transform history or null if empty- Specified by:
getLastPlaceVisitedin interfaceIBaseDataObject- Returns:
- last item in history
-
getPenultimatePlaceVisited
@Nullable public DirectoryEntry getPenultimatePlaceVisited()
Description copied from interface:IBaseDataObjectReturn an SDE based on the penultimate item in the transform history or null if empty- Specified by:
getPenultimatePlaceVisitedin interfaceIBaseDataObject- Returns:
- penultimate item in history
-
hasVisited
public boolean hasVisited(String pattern)
Description copied from interface:IBaseDataObjectReturn true if the payload has been to a place matching the key passed in.- Specified by:
hasVisitedin interfaceIBaseDataObject- Parameters:
pattern- the key pattern to match
-
beforeStart
public boolean beforeStart()
Description copied from interface:IBaseDataObjectTrue if this payload hasn't had any processing yet Does not count parent processing as being for this payload- Specified by:
beforeStartin interfaceIBaseDataObject- Returns:
- true if not yet started
-
clearParameters
public void clearParameters()
Description copied from interface:IBaseDataObjectClear all metadata elements- Specified by:
clearParametersin interfaceIBaseDataObject
-
hasParameter
public boolean hasParameter(String key)
Description copied from interface:IBaseDataObjectDetermine if parameter is present- Specified by:
hasParameterin interfaceIBaseDataObject- Parameters:
key- name of metadata element to check
-
setParameters
public void setParameters(Map<? extends String,? extends Object> map)
Description copied from interface:IBaseDataObjectReplace all of the metadata elements with a new set- Specified by:
setParametersin interfaceIBaseDataObject- Parameters:
map- the new set
-
setParameter
public void setParameter(String key, Object val)
Description copied from interface:IBaseDataObjectSet a new parameter value, deleting an old one- Specified by:
setParameterin interfaceIBaseDataObject- Parameters:
key- the name of the elementval- the value of the element
-
putParameter
public void putParameter(String key, Object val)
Description copied from interface:IBaseDataObjectPut a new metadata element into the map- Specified by:
putParameterin interfaceIBaseDataObject- Parameters:
key- the name of the elementval- the value of the element
-
putParameters
public void putParameters(Map<? extends String,? extends Object> m)
Put a collection of parameters into the metadata map, keeping both old and new values- Specified by:
putParametersin interfaceIBaseDataObject- Parameters:
m- the map of new parameters
-
putParameters
public void putParameters(Map<? extends String,? extends Object> m, IBaseDataObject.MergePolicy policy)
Merge in new parameters using the specified policy to determine whether to keep all values, unique values, or prefer existing values- Specified by:
putParametersin interfaceIBaseDataObject- Parameters:
m- map of new parameterspolicy- the merge policy
-
putUniqueParameters
public void putUniqueParameters(Map<? extends String,? extends Object> m)
Put a collection of parameters into the metadata map, adding only distinct k/v pairs- Specified by:
putUniqueParametersin interfaceIBaseDataObject- Parameters:
m- the map of new parameters
-
mergeParameters
public void mergeParameters(Map<? extends String,? extends Object> m)
Merge in parameters keeping existing keys unchanged- Specified by:
mergeParametersin interfaceIBaseDataObject- Parameters:
m- map of new parameters to consider
-
getParameter
@Nullable public List<Object> getParameter(String key)
Description copied from interface:IBaseDataObjectRetrieve a specified metadata element- Specified by:
getParameterin interfaceIBaseDataObject- Parameters:
key- name of the metadata element- Returns:
- the value or null if no such element
-
appendParameter
public void appendParameter(String key, CharSequence value)
Description copied from interface:IBaseDataObjectAppend data to the specified metadata element- Specified by:
appendParameterin interfaceIBaseDataObject- Parameters:
key- name of the metadata elementvalue- the value to append
-
appendParameter
public void appendParameter(String key, Iterable<? extends CharSequence> values)
Description copied from interface:IBaseDataObjectAppend data values to the specified metadata element- Specified by:
appendParameterin interfaceIBaseDataObject- Parameters:
key- name of the metadata elementvalues- the values to append
-
appendUniqueParameter
public boolean appendUniqueParameter(String key, CharSequence value)
Append data to the specified metadata element if it doesn't already exist If you expect to append a lot if things this way, this method might not have the performance characteristics that you expect. You can build a set and externally and append the values after they are uniqued.- Specified by:
appendUniqueParameterin interfaceIBaseDataObject- Parameters:
key- name of the metadata elementvalue- the value to append- Returns:
- true if the item is added, false if it already exists
-
getParameterAsString
@Nullable public String getParameterAsString(String key)
Description copied from interface:IBaseDataObjectRetrieve the metadata value identified by key where the element is converted to a string- Specified by:
getParameterAsStringin interfaceIBaseDataObject- Parameters:
key- name of the metadata element- Returns:
- parameter converted to strings
-
getParameters
public Map<String,Collection<Object>> getParameters()
Retrieve all the metadata elements of this object This method returns possibly mapped metadata element names- Specified by:
getParametersin interfaceIBaseDataObject- Returns:
- map of metadata elements
-
getCookedParameters
public Map<String,String> getCookedParameters()
Get a processed represenation of the parameters for external use- Specified by:
getCookedParametersin interfaceIBaseDataObject- Returns:
- map of metadata elements
-
getParameterKeys
public Set<String> getParameterKeys()
Description copied from interface:IBaseDataObjectRetrieve all of the current metadata keys- Specified by:
getParameterKeysin interfaceIBaseDataObject- Returns:
- set of charsequence keys
-
deleteParameter
public List<Object> deleteParameter(String key)
Description copied from interface:IBaseDataObjectDelete the specified metadata element named- Specified by:
deleteParameterin interfaceIBaseDataObject- Parameters:
key- the name of the metadata item to delete- Returns:
- the object deleted of null if none
-
setNumChildren
public void setNumChildren(int num)
Description copied from interface:IBaseDataObjectSets the number of children that the current agents spawned.- Specified by:
setNumChildrenin interfaceIBaseDataObject- Parameters:
num- the number value to set
-
setNumSiblings
public void setNumSiblings(int num)
Description copied from interface:IBaseDataObjectSets the number of siblings for this data object.- Specified by:
setNumSiblingsin interfaceIBaseDataObject- Parameters:
num- the number of siblings to set
-
setBirthOrder
public void setBirthOrder(int num)
Description copied from interface:IBaseDataObjectWhat number is this sibling in the family- Specified by:
setBirthOrderin interfaceIBaseDataObject- Parameters:
num- the birthorder number value to set
-
getNumChildren
public int getNumChildren()
Description copied from interface:IBaseDataObjectGets the number of children that have this as a parent- Specified by:
getNumChildrenin interfaceIBaseDataObject- Returns:
- the number of children that have this parent
-
getNumSiblings
public int getNumSiblings()
Description copied from interface:IBaseDataObjectGet the number of siblings- Specified by:
getNumSiblingsin interfaceIBaseDataObject- Returns:
- the number of siblings including this one
-
getBirthOrder
public int getBirthOrder()
Description copied from interface:IBaseDataObjectGet this sibling number, count from one.- Specified by:
getBirthOrderin interfaceIBaseDataObject- Returns:
- the birth order of this sibling
-
header
public byte[] header()
Return a reference to the header byte array. WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.- Specified by:
headerin interfaceIBaseDataObject- Returns:
- byte array of header information or null if none
-
headerBuffer
@Deprecated public ByteBuffer headerBuffer()
Deprecated.Description copied from interface:IBaseDataObjectReturn the header wrapped in a ByteBuffer class.- Specified by:
headerBufferin interfaceIBaseDataObject- Returns:
- buffer required by the HTML Velocity templates.
-
footer
public byte[] footer()
Return a reference to the footer byte array. WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.- Specified by:
footerin interfaceIBaseDataObject- Returns:
- byte array of footer data or null if none
-
footerBuffer
@Deprecated public ByteBuffer footerBuffer()
Deprecated.Description copied from interface:IBaseDataObjectReturn the footer wrapped in a ByteBuffer class.- Specified by:
footerBufferin interfaceIBaseDataObject- Returns:
- buffer required by the HTML Velocity templates.
-
dataBuffer
@Deprecated public ByteBuffer dataBuffer()
Deprecated.Description copied from interface:IBaseDataObjectReturn theData wrapped in a ByteBuffer class.- Specified by:
dataBufferin interfaceIBaseDataObject- Returns:
- buffer required by the HTML Velocity templates.
-
getFontEncoding
public String getFontEncoding()
Description copied from interface:IBaseDataObjectGet the font encoding string- Specified by:
getFontEncodingin interfaceIBaseDataObject- Returns:
- string name of font encoding for the data
-
setFontEncoding
public void setFontEncoding(String fe)
Description copied from interface:IBaseDataObjectSet the font encoding string- Specified by:
setFontEncodingin interfaceIBaseDataObject- Parameters:
fe- string name of font encoding for the data
-
setFileType
public void setFileType(@Nullable String v)Put the FILETYPE parameter, null to clear- Specified by:
setFileTypein interfaceIBaseDataObject- Parameters:
v- the value to store or null
-
setFileTypeIfEmpty
@Deprecated public boolean setFileTypeIfEmpty(String v, String[] empties)
Deprecated.Description copied from interface:IBaseDataObjectSet FILETYPE parameter iff empty.- Specified by:
setFileTypeIfEmptyin interfaceIBaseDataObject- Parameters:
v- the value of the filetype to setempties- the list of things caller considers equal to being empty- Returns:
- true if it was empty and set
-
setFileTypeIfEmpty
public boolean setFileTypeIfEmpty(String v)
Description copied from interface:IBaseDataObjectSet FILETYPE parameter iff empty using the built-in definition of empty- Specified by:
setFileTypeIfEmptyin interfaceIBaseDataObject- Parameters:
v- the value of the filetype to set- Returns:
- true if it was empty and set
-
isFileTypeEmpty
public boolean isFileTypeEmpty()
Description copied from interface:IBaseDataObjectReturn true if the file type is null or in one of the "don't care" set- Specified by:
isFileTypeEmptyin interfaceIBaseDataObject
-
isFileTypeEmpty
protected boolean isFileTypeEmpty(@Nullable String[] empties)Return true if the file type is null or in one of the specified set of empties- Parameters:
empties- a list of types that count as empty
-
getFileType
public String getFileType()
Description copied from interface:IBaseDataObjectGet the FILETYPE parameter- Specified by:
getFileTypein interfaceIBaseDataObject- Returns:
- the string value of the FILETYPE parameter
-
getNumAlternateViews
public int getNumAlternateViews()
Description copied from interface:IBaseDataObjectDisclose how many multipart alternative views of the data exist- Specified by:
getNumAlternateViewsin interfaceIBaseDataObject- Returns:
- count of alternate views
-
getAlternateView
public byte[] getAlternateView(String s)
Return a specified multipart alternative view of the data WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.- Specified by:
getAlternateViewin interfaceIBaseDataObject- Parameters:
s- the name of the view to retrieve- Returns:
- byte array of alternate view data or null if none
-
appendAlternateView
public void appendAlternateView(String name, byte[] data)
Description copied from interface:IBaseDataObjectAppend the specified data to the alternate view- Specified by:
appendAlternateViewin interfaceIBaseDataObject- Parameters:
name- the name of the new viewdata- the byte array of data for the view
-
appendAlternateView
public void appendAlternateView(String name, byte[] data, int offset, int length)
Description copied from interface:IBaseDataObjectAppend to a multipart alternative view of the data- Specified by:
appendAlternateViewin interfaceIBaseDataObject- Parameters:
name- the name of the viewdata- the byte array conatining data for the viewoffset- index of the first byte to uselength- number of bytes to use
-
getAlternateViewBuffer
@Nullable @Deprecated public ByteBuffer getAlternateViewBuffer(String s)
Deprecated.Return a specified multipart alternative view of the data in a buffer- Specified by:
getAlternateViewBufferin interfaceIBaseDataObject- Parameters:
s- the name of the view to retrieve- Returns:
- buffer of alternate view data or null if none
-
addAlternateView
public void addAlternateView(String name, @Nullable byte[] data)
Add a multipart alternative view of the data WARNING: this implementation returns the actual array directly, no copy is made so the caller must be aware that modifications to the returned array are live.- Specified by:
addAlternateViewin interfaceIBaseDataObject- Parameters:
name- the name of the new viewdata- the byte array of data for the view
-
addAlternateView
public void addAlternateView(String name, @Nullable byte[] data, int offset, int length)
Description copied from interface:IBaseDataObjectAdd a multipart alternative view of the data- Specified by:
addAlternateViewin interfaceIBaseDataObject- Parameters:
name- the name of the new viewdata- the byte array conatining data for the viewoffset- index of the first byte to uselength- number of bytes to use
-
getAlternateViewNames
public Set<String> getAlternateViewNames()
Get the set of alt view names for new foreach loops- Specified by:
getAlternateViewNamesin interfaceIBaseDataObject- Returns:
- an ordered set of alternate view names
-
getAlternateViews
public Map<String,byte[]> getAlternateViews()
Get the alternate view map. WARNING: this implementation returns the actual map directly, no copy is made so the caller must be aware that modifications to the returned map are live.- Specified by:
getAlternateViewsin interfaceIBaseDataObject- Returns:
- an map of alternate views ordered by name, key = String, value = byte[]
-
isBroken
public boolean isBroken()
Description copied from interface:IBaseDataObjectTest for broken document- Specified by:
isBrokenin interfaceIBaseDataObject- Returns:
- true if broken
-
setBroken
public void setBroken(@Nullable String v)Description copied from interface:IBaseDataObjectSet brokenness for document- Specified by:
setBrokenin interfaceIBaseDataObject- Parameters:
v- the message to record
-
getBroken
@Nullable public String getBroken()
Description copied from interface:IBaseDataObjectGet brokenness indicator message- Specified by:
getBrokenin interfaceIBaseDataObject- Returns:
- string message of what is broken
-
setClassification
public void setClassification(String classification)
Description copied from interface:IBaseDataObjectSet the classification.- Specified by:
setClassificationin interfaceIBaseDataObject- Parameters:
classification- string classification value
-
getClassification
public String getClassification()
Description copied from interface:IBaseDataObjectGet the classification string for the data- Specified by:
getClassificationin interfaceIBaseDataObject- Returns:
- String classification value
-
getPriority
public int getPriority()
Description copied from interface:IBaseDataObjectGet data object's priority.- Specified by:
getPriorityin interfaceIBaseDataObject- Returns:
- int priority (lower the number, higher the priority).
-
setPriority
public void setPriority(int priority)
Description copied from interface:IBaseDataObjectSet the data object's priority, typically based on input dir/file priority.- Specified by:
setPriorityin interfaceIBaseDataObject- Parameters:
priority- int (lower the number, higher the priority).
-
clone
@Deprecated public IBaseDataObject clone() throws CloneNotSupportedException
Deprecated.Clone this payload- Specified by:
clonein interfaceIBaseDataObject- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getCreationTimestamp
public Instant getCreationTimestamp()
Description copied from interface:IBaseDataObjectGet the timestamp for when the object was created. This attribute will be used for data provenance.- Specified by:
getCreationTimestampin interfaceIBaseDataObject- Returns:
- date - the timestamp the object was created
-
setCreationTimestamp
public void setCreationTimestamp(Instant creationTimestamp)
The creation timestamp is part of the provenance of the event represented by this instance. It is normally set from the constructor- Specified by:
setCreationTimestampin interfaceIBaseDataObject- Parameters:
creationTimestamp- when this item was created
-
getExtractedRecords
public List<IBaseDataObject> getExtractedRecords()
Description copied from interface:IBaseDataObjectGet the List of extracted records- Specified by:
getExtractedRecordsin interfaceIBaseDataObject
-
setExtractedRecords
public void setExtractedRecords(List<? extends IBaseDataObject> records)
Description copied from interface:IBaseDataObjectSet/replace the list of extracted children- Specified by:
setExtractedRecordsin interfaceIBaseDataObject- Parameters:
records- the list of extracted children
-
addExtractedRecord
public void addExtractedRecord(IBaseDataObject record)
Description copied from interface:IBaseDataObjectAdd an extracted child- Specified by:
addExtractedRecordin interfaceIBaseDataObject- Parameters:
record- the extracted child to add
-
addExtractedRecords
public void addExtractedRecords(List<? extends IBaseDataObject> records)
Description copied from interface:IBaseDataObjectAdd extracted children- Specified by:
addExtractedRecordsin interfaceIBaseDataObject- Parameters:
records- the extracted children to add
-
hasExtractedRecords
public boolean hasExtractedRecords()
Description copied from interface:IBaseDataObjectDetermine if this object has extracted records.- Specified by:
hasExtractedRecordsin interfaceIBaseDataObject- Returns:
- true if this object has extracted records.
-
clearExtractedRecords
public void clearExtractedRecords()
Description copied from interface:IBaseDataObjectClear the list of extracted records.- Specified by:
clearExtractedRecordsin interfaceIBaseDataObject
-
getExtractedRecordCount
public int getExtractedRecordCount()
Description copied from interface:IBaseDataObjectGet count of extracted records- Specified by:
getExtractedRecordCountin interfaceIBaseDataObject
-
getInternalId
public UUID getInternalId()
Description copied from interface:IBaseDataObjectReturns the internally generated identifier used to track the object- Specified by:
getInternalIdin interfaceIBaseDataObject- Returns:
- a String representing the internal ID
-
isOutputable
public boolean isOutputable()
Description copied from interface:IBaseDataObjectTest if tree is outputable- Specified by:
isOutputablein interfaceIBaseDataObject- Returns:
- true if this tree is not able to be output, false otherwise
-
setOutputable
public void setOutputable(boolean outputable)
Description copied from interface:IBaseDataObjectSet whether or not the tree is able to be written out- Specified by:
setOutputablein interfaceIBaseDataObject- Parameters:
outputable- true if this tree is not able to be output, false otherwise
-
getId
public String getId()
Description copied from interface:IBaseDataObjectGet ID- Specified by:
getIdin interfaceIBaseDataObject- Returns:
- the unique identifier of the IBaseDataObject
-
setId
public void setId(String id)
Description copied from interface:IBaseDataObjectSet the unique identifier of the IBaseDataObject- Specified by:
setIdin interfaceIBaseDataObject- Parameters:
id- the unique identifier of the IBaseDataObject
-
getWorkBundleId
public String getWorkBundleId()
Description copied from interface:IBaseDataObjectGet the Work Bundle ID- Specified by:
getWorkBundleIdin interfaceIBaseDataObject- Returns:
- the unique identifier of the
WorkBundle
-
setWorkBundleId
public void setWorkBundleId(String workBundleId)
Description copied from interface:IBaseDataObjectSet the unique identifier of theWorkBundle- Specified by:
setWorkBundleIdin interfaceIBaseDataObject- Parameters:
workBundleId- the unique identifier of theWorkBundle
-
getTransactionId
public String getTransactionId()
Description copied from interface:IBaseDataObjectGet the Transaction ID- Specified by:
getTransactionIdin interfaceIBaseDataObject- Returns:
- the unique identifier of the transaction
-
setTransactionId
public void setTransactionId(String transactionId)
Description copied from interface:IBaseDataObjectSet the unique identifier of the transaction- Specified by:
setTransactionIdin interfaceIBaseDataObject- Parameters:
transactionId- the unique identifier of the transaction
-
getTld
public IBaseDataObject getTld()
Description copied from interface:IBaseDataObjectReturn the top level document or null if there is none for this IBaseDataObject- Specified by:
getTldin interfaceIBaseDataObject- Returns:
- The TLD IBaseDataObject
-
-