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 class
BaseDataObject.DataState
-
Nested classes/interfaces inherited from interface emissary.core.IBaseDataObject
IBaseDataObject.MergePolicy
-
-
Field Summary
Fields Modifier and Type Field Description protected int
birthOrder
What child is this in the family orderprotected StringBuilder
brokenDocument
Keep track of if and how the document is broken so we can report on it laterprotected String
classification
Record the classification scheme for the documentprotected Instant
creationTimestamp
The timestamp for when the BaseDataObject was created.protected List<String>
currentForm
The currentForm is a stack of the itinerary items.protected String[]
emptyFileTypes
protected List<IBaseDataObject>
extractedRecords
The extracted records, if anyprotected String
fontEncoding
The last determined language(characterset) of the data.protected byte[]
footer
Any footer that goes along with the dataprotected byte[]
header
Any header that goes along with the dataprotected String
headerEncoding
If the header has some encoding scheme record itprotected TransformHistory
history
A travelogue built up as the agent moves about.protected String
id
The unique identifier of this objectprotected UUID
internalId
The internal identifier, generated for each constructed objectprotected static String
INVALID_STATE_MSG
protected static org.slf4j.Logger
logger
static int
MAX_BYTE_ARRAY_SIZE
protected Map<String,byte[]>
multipartAlternative
Hash of alternate views of the dataString
current form is the key, byte[] is the valueprotected int
numChildren
If this file caused other agents to be sprouted, indicate how manyprotected int
numSiblings
If this file has siblings that were sprouted at the same time, this will indicate how many total siblings there are.protected boolean
outputable
Check to see if this tree is able to be written out.protected com.google.common.collect.LinkedListMultimap<String,Object>
parameters
Dynamic facets or metadata attributes of the dataprotected int
priority
The integer priority of the data object.protected StringBuilder
procError
History of processing errors.protected SeekableByteChannelFactory
seekableByteChannelFactory
A factory to create channels for the referenced data.protected String
shortName
Terminal portion of theFileNameprotected byte[]
theData
protected String
theFileName
Original name of the input data.protected IBaseDataObject
tld
protected String
transactionId
The identifier used to track the object through the systemprotected String
workBundleId
The 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 void
addAlternateView(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.void
addAlternateView(String name, byte[] data, int offset, int length)
Add a multipart alternative view of the dataint
addCurrentFormAt(int i, String newForm)
Add current form newForm at idxvoid
addExtractedRecord(IBaseDataObject record)
Add an extracted childvoid
addExtractedRecords(List<? extends IBaseDataObject> records)
Add extracted childrenvoid
addProcessingError(String err)
Record a processing errorvoid
appendAlternateView(String name, byte[] data)
Append the specified data to the alternate viewvoid
appendAlternateView(String name, byte[] data, int offset, int length)
Append to a multipart alternative view of the datavoid
appendParameter(String key, CharSequence value)
Append data to the specified metadata elementvoid
appendParameter(String key, Iterable<? extends CharSequence> values)
Append data values to the specified metadata elementvoid
appendTransformHistory(String key)
Appends the new key to the transform history.void
appendTransformHistory(String key, boolean coordinated)
Appends the new key to the transform history.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.boolean
beforeStart()
True if this payload hasn't had any processing yet Does not count parent processing as being for this payloadvoid
clearExtractedRecords()
Clear the list of extracted records.void
clearParameters()
Clear all metadata elementsvoid
clearTransformHistory()
Clear the transformation historyIBaseDataObject
clone()
Deprecated.String
currentForm()
Return the current form of the data (top of the stack)String
currentFormAt(int i)
Return the current form at specified position of the listint
currentFormSize()
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.ByteBuffer
dataBuffer()
Deprecated.int
dataLength()
Fetch the size of the payload.int
deleteCurrentForm(String form)
Remove a form where ever it appears in the stackint
deleteCurrentFormAt(int i)
Remove a form at the specified location of the itinerary stackList<Object>
deleteParameter(String key)
Delete the specified metadata element namedint
enqueueCurrentForm(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.ByteBuffer
footerBuffer()
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.ByteBuffer
getAlternateViewBuffer(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.int
getBirthOrder()
Get this sibling number, count from one.String
getBroken()
Get brokenness indicator messageSeekableByteChannelFactory
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.long
getChannelSize()
Convenience method to get the size of the channel or byte array providing access to the data.String
getClassification()
Get the classification string for the dataMap<String,String>
getCookedParameters()
Get a processed represenation of the parameters for external useInstant
getCreationTimestamp()
Get the timestamp for when the object was created.protected BaseDataObject.DataState
getDataState()
Determine what state we're in with respect to the byte[] of data vs a channel.int
getExtractedRecordCount()
Get count of extracted recordsList<IBaseDataObject>
getExtractedRecords()
Get the List of extracted recordsString
getFilename()
Returns the filename associated with the data.String
getFileType()
Get the FILETYPE parameterString
getFontEncoding()
Get the font encoding stringString
getHeaderEncoding()
Get the value of headerEncoding.String
getId()
Get IDUUID
getInternalId()
Returns the internally generated identifier used to track the objectDirectoryEntry
getLastPlaceVisited()
Return an SDE based on the last item in the transform history or null if emptyint
getNumAlternateViews()
Disclose how many multipart alternative views of the data existint
getNumChildren()
Gets the number of children that have this as a parentint
getNumSiblings()
Get the number of siblingsList<Object>
getParameter(String key)
Retrieve a specified metadata elementString
getParameterAsString(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 namesDirectoryEntry
getPenultimatePlaceVisited()
Return an SDE based on the penultimate item in the transform history or null if emptyint
getPriority()
Get data object's priority.String
getProcessingError()
Retrieve the processing error(s)IBaseDataObject
getTld()
Return the top level document or null if there is none for this IBaseDataObjectString
getTransactionId()
Get the Transaction IDTransformHistory
getTransformHistory()
Get the transform historyString
getWorkBundleId()
Get the Work Bundle IDboolean
hasContent()
Checks if the data is defined with a non-zero length.boolean
hasExtractedRecords()
Determine if this object has extracted records.boolean
hasParameter(String key)
Determine if parameter is presentboolean
hasVisited(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.ByteBuffer
headerBuffer()
Deprecated.boolean
isBroken()
Test for broken documentboolean
isFileTypeEmpty()
Return true if the file type is null or in one of the "don't care" setprotected boolean
isFileTypeEmpty(String[] empties)
Return true if the file type is null or in one of the specified set of emptiesboolean
isOutputable()
Test if tree is outputablevoid
mergeParameters(Map<? extends String,? extends Object> m)
Merge in parameters keeping existing keys unchangedInputStream
newInputStream()
Returns a new InputStream to the data that this BaseDataObject contains.String
popCurrentForm()
Remove a form from the head of the listString
printMeta()
Print the parameters, nicely formattedvoid
pullFormToTop(String curForm)
Move curForm to the top of the stack pushing everything above it down one slotint
pushCurrentForm(String newForm)
Push a form onto the head of the listvoid
putParameter(String key, Object val)
Put a new metadata element into the mapvoid
putParameters(Map<? extends String,? extends Object> m)
Put a collection of parameters into the metadata map, keeping both old and new valuesvoid
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 valuesvoid
putUniqueParameters(Map<? extends String,? extends Object> m)
Put a collection of parameters into the metadata map, adding only distinct k/v pairsvoid
replaceCurrentForm(String form)
Replace all current forms with specifiedint
searchCurrentForm(String value)
Check to see if this value is already on the stack of itinerary itemsString
searchCurrentForm(Collection<String> values)
Check to see one of these values is on the stack of itinerary itemsvoid
setBirthOrder(int num)
What number is this sibling in the familyvoid
setBroken(String v)
Set brokenness for documentvoid
setChannelFactory(SeekableByteChannelFactory sbcf)
Set the byte channel factory using whichever implementation is providing access to the data.void
setClassification(String classification)
Set the classification.void
setCreationTimestamp(Instant creationTimestamp)
The creation timestamp is part of the provenance of the event represented by this instance.void
setCurrentForm(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"void
setCurrentForm(String newForm, boolean clearAllForms)
Replaces the current form of the data with a form passed and potentially clears the entire form stackvoid
setData(byte[] newData)
Set BaseDataObjects data to byte array passed in.void
setData(byte[] newData, int offset, int length)
Set new data on the BDO, using a range of the provided byte array.void
setExtractedRecords(List<? extends IBaseDataObject> records)
Set/replace the list of extracted childrenvoid
setFilename(String f)
Set the filenamevoid
setFileType(String v)
Put the FILETYPE parameter, null to clearboolean
setFileTypeIfEmpty(String v)
Set FILETYPE parameter iff empty using the built-in definition of emptyboolean
setFileTypeIfEmpty(String v, String[] empties)
Deprecated.void
setFontEncoding(String fe)
Set the font encoding stringvoid
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.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.void
setHeaderEncoding(String v)
Set the value of headerEncoding for proper interpretation and processing latervoid
setHistory(TransformHistory newHistory)
Replace history with the new historyvoid
setId(String id)
Set the unique identifier of the IBaseDataObjectvoid
setNumChildren(int num)
Sets the number of children that the current agents spawned.void
setNumSiblings(int num)
Sets the number of siblings for this data object.void
setOutputable(boolean outputable)
Set whether or not the tree is able to be written outvoid
setParameter(String key, Object val)
Set a new parameter value, deleting an old onevoid
setParameters(Map<? extends String,? extends Object> map)
Replace all of the metadata elements with a new setvoid
setPriority(int priority)
Set the data object's priority, typically based on input dir/file priority.void
setTransactionId(String transactionId)
Set the unique identifier of the transactionvoid
setWorkBundleId(String workBundleId)
Set the unique identifier of theWorkBundle
String
shortName()
Returns the name of the file without the path with which the file will be written.String
toString()
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.String
whereAmI()
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 areString
and 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 dataString
current 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.DataState
of 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:
setHeader
in 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:
getHeaderEncoding
in interfaceIBaseDataObject
- Returns:
- Value of headerEncoding.
-
setHeaderEncoding
public void setHeaderEncoding(String v)
Set the value of headerEncoding for proper interpretation and processing later- Specified by:
setHeaderEncoding
in 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:
setFooter
in interfaceIBaseDataObject
- Parameters:
footer
- byte array of footer data
-
setFilename
public void setFilename(String f)
Set the filename- Specified by:
setFilename
in 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:
setChannelFactory
in 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:
getChannelFactory
in 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:
newInputStream
in 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:
data
in interfaceIBaseDataObject
- Returns:
- the data as a byte array
- See Also:
getChannelFactory()
-
setData
public void setData(@Nullable byte[] newData)
Description copied from interface:IBaseDataObject
Set BaseDataObjects data to byte array passed in.- Specified by:
setData
in 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:
setData
in 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 IOException
Checks if the data is defined with a non-zero length.- Specified by:
hasContent
in interfaceIBaseDataObject
- Returns:
- if data is undefined or zero length.
- Throws:
IOException
-
getChannelSize
public long getChannelSize() throws IOException
Convenience method to get the size of the channel or byte array providing access to the data.- Specified by:
getChannelSize
in 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:
dataLength
in 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:IBaseDataObject
Returns the name of the file without the path with which the file will be written.- Specified by:
shortName
in interfaceIBaseDataObject
- Returns:
- the short name of the file (no path)
-
getFilename
public String getFilename()
Description copied from interface:IBaseDataObject
Returns the filename associated with the data.- Specified by:
getFilename
in interfaceIBaseDataObject
- Returns:
- the string name with path
-
currentForm
public String currentForm()
Description copied from interface:IBaseDataObject
Return the current form of the data (top of the stack)- Specified by:
currentForm
in interfaceIBaseDataObject
- Returns:
- string value of current form
-
currentFormAt
public String currentFormAt(int i)
Description copied from interface:IBaseDataObject
Return the current form at specified position of the list- Specified by:
currentFormAt
in 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:IBaseDataObject
Check to see if this value is already on the stack of itinerary items- Specified by:
searchCurrentForm
in 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:IBaseDataObject
Check to see one of these values is on the stack of itinerary items- Specified by:
searchCurrentForm
in 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:IBaseDataObject
Get the size of the itinerary stack- Specified by:
currentFormSize
in interfaceIBaseDataObject
- Returns:
- size of form stack
-
replaceCurrentForm
public void replaceCurrentForm(@Nullable String form)
Description copied from interface:IBaseDataObject
Replace all current forms with specified- Specified by:
replaceCurrentForm
in 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:
popCurrentForm
in interfaceIBaseDataObject
- Returns:
- The value that was removed, or
null
if the list was empty.
-
deleteCurrentForm
public int deleteCurrentForm(String form)
Description copied from interface:IBaseDataObject
Remove a form where ever it appears in the stack- Specified by:
deleteCurrentForm
in 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:IBaseDataObject
Remove a form at the specified location of the itinerary stack- Specified by:
deleteCurrentFormAt
in 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:IBaseDataObject
Add current form newForm at idx- Specified by:
addCurrentFormAt
in 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:IBaseDataObject
Add a form to the end of the list (the bottom of the stack)- Specified by:
enqueueCurrentForm
in 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:IBaseDataObject
Push a form onto the head of the list- Specified by:
pushCurrentForm
in 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:IBaseDataObject
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"- Specified by:
setCurrentForm
in interfaceIBaseDataObject
- Parameters:
newForm
- value of the the new form of the data
-
setCurrentForm
public void setCurrentForm(String newForm, boolean clearAllForms)
Description copied from interface:IBaseDataObject
Replaces the current form of the data with a form passed and potentially clears the entire form stack- Specified by:
setCurrentForm
in 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:IBaseDataObject
Return a clone the whole current form list Note this is not a reference to our private store- Specified by:
getAllCurrentForms
in interfaceIBaseDataObject
- Returns:
- ordered list of current forms
-
pullFormToTop
public void pullFormToTop(String curForm)
Description copied from interface:IBaseDataObject
Move curForm to the top of the stack pushing everything above it down one slot- Specified by:
pullFormToTop
in interfaceIBaseDataObject
- Parameters:
curForm
- the form to pull to the top
-
toString
public String toString()
Description copied from interface:IBaseDataObject
Return BaseDataObjects info as a String.- Specified by:
toString
in interfaceIBaseDataObject
- Overrides:
toString
in classObject
- Returns:
- string value of this object
-
printMeta
public String printMeta()
Description copied from interface:IBaseDataObject
Print the parameters, nicely formatted- Specified by:
printMeta
in interfaceIBaseDataObject
-
addProcessingError
public void addProcessingError(String err)
Description copied from interface:IBaseDataObject
Record a processing error- Specified by:
addProcessingError
in interfaceIBaseDataObject
- Parameters:
err
- the new error message to record
-
getProcessingError
public String getProcessingError()
Description copied from interface:IBaseDataObject
Retrieve the processing error(s)- Specified by:
getProcessingError
in interfaceIBaseDataObject
- Returns:
- string value of processing errors
-
getTransformHistory
public TransformHistory getTransformHistory()
Description copied from interface:IBaseDataObject
Get the transform history- Specified by:
getTransformHistory
in interfaceIBaseDataObject
- Returns:
- history of places visited
-
transformHistory
public List<String> transformHistory()
Description copied from interface:IBaseDataObject
List of places the data object was carried to.- Specified by:
transformHistory
in interfaceIBaseDataObject
- Returns:
- List of strings making up the history
-
transformHistory
public List<String> transformHistory(boolean includeCoordinated)
Description copied from interface:IBaseDataObject
List of places the data object was carried to.- Specified by:
transformHistory
in 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:IBaseDataObject
Clear the transformation history- Specified by:
clearTransformHistory
in interfaceIBaseDataObject
-
appendTransformHistory
public void appendTransformHistory(String key)
Description copied from interface:IBaseDataObject
Appends 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:
appendTransformHistory
in 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:IBaseDataObject
Appends 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:
appendTransformHistory
in 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:IBaseDataObject
Replace history with the new history- Specified by:
setHistory
in interfaceIBaseDataObject
- Parameters:
newHistory
- of new history strings to use
-
whereAmI
public String whereAmI()
Description copied from interface:IBaseDataObject
Return what machine we are located on- Specified by:
whereAmI
in interfaceIBaseDataObject
- Returns:
- string local host name
-
getLastPlaceVisited
@Nullable public DirectoryEntry getLastPlaceVisited()
Description copied from interface:IBaseDataObject
Return an SDE based on the last item in the transform history or null if empty- Specified by:
getLastPlaceVisited
in interfaceIBaseDataObject
- Returns:
- last item in history
-
getPenultimatePlaceVisited
@Nullable public DirectoryEntry getPenultimatePlaceVisited()
Description copied from interface:IBaseDataObject
Return an SDE based on the penultimate item in the transform history or null if empty- Specified by:
getPenultimatePlaceVisited
in interfaceIBaseDataObject
- Returns:
- penultimate item in history
-
hasVisited
public boolean hasVisited(String pattern)
Description copied from interface:IBaseDataObject
Return true if the payload has been to a place matching the key passed in.- Specified by:
hasVisited
in interfaceIBaseDataObject
- Parameters:
pattern
- the key pattern to match
-
beforeStart
public boolean beforeStart()
Description copied from interface:IBaseDataObject
True if this payload hasn't had any processing yet Does not count parent processing as being for this payload- Specified by:
beforeStart
in interfaceIBaseDataObject
- Returns:
- true if not yet started
-
clearParameters
public void clearParameters()
Description copied from interface:IBaseDataObject
Clear all metadata elements- Specified by:
clearParameters
in interfaceIBaseDataObject
-
hasParameter
public boolean hasParameter(String key)
Description copied from interface:IBaseDataObject
Determine if parameter is present- Specified by:
hasParameter
in interfaceIBaseDataObject
- Parameters:
key
- name of metadata element to check
-
setParameters
public void setParameters(Map<? extends String,? extends Object> map)
Description copied from interface:IBaseDataObject
Replace all of the metadata elements with a new set- Specified by:
setParameters
in interfaceIBaseDataObject
- Parameters:
map
- the new set
-
setParameter
public void setParameter(String key, Object val)
Description copied from interface:IBaseDataObject
Set a new parameter value, deleting an old one- Specified by:
setParameter
in 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:IBaseDataObject
Put a new metadata element into the map- Specified by:
putParameter
in 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:
putParameters
in 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:
putParameters
in 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:
putUniqueParameters
in 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:
mergeParameters
in interfaceIBaseDataObject
- Parameters:
m
- map of new parameters to consider
-
getParameter
@Nullable public List<Object> getParameter(String key)
Description copied from interface:IBaseDataObject
Retrieve a specified metadata element- Specified by:
getParameter
in 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:IBaseDataObject
Append data to the specified metadata element- Specified by:
appendParameter
in 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:IBaseDataObject
Append data values to the specified metadata element- Specified by:
appendParameter
in 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:
appendUniqueParameter
in 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:IBaseDataObject
Retrieve the metadata value identified by key where the element is converted to a string- Specified by:
getParameterAsString
in 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:
getParameters
in interfaceIBaseDataObject
- Returns:
- map of metadata elements
-
getCookedParameters
public Map<String,String> getCookedParameters()
Get a processed represenation of the parameters for external use- Specified by:
getCookedParameters
in interfaceIBaseDataObject
- Returns:
- map of metadata elements
-
getParameterKeys
public Set<String> getParameterKeys()
Description copied from interface:IBaseDataObject
Retrieve all of the current metadata keys- Specified by:
getParameterKeys
in interfaceIBaseDataObject
- Returns:
- set of charsequence keys
-
deleteParameter
public List<Object> deleteParameter(String key)
Description copied from interface:IBaseDataObject
Delete the specified metadata element named- Specified by:
deleteParameter
in 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:IBaseDataObject
Sets the number of children that the current agents spawned.- Specified by:
setNumChildren
in interfaceIBaseDataObject
- Parameters:
num
- the number value to set
-
setNumSiblings
public void setNumSiblings(int num)
Description copied from interface:IBaseDataObject
Sets the number of siblings for this data object.- Specified by:
setNumSiblings
in interfaceIBaseDataObject
- Parameters:
num
- the number of siblings to set
-
setBirthOrder
public void setBirthOrder(int num)
Description copied from interface:IBaseDataObject
What number is this sibling in the family- Specified by:
setBirthOrder
in interfaceIBaseDataObject
- Parameters:
num
- the birthorder number value to set
-
getNumChildren
public int getNumChildren()
Description copied from interface:IBaseDataObject
Gets the number of children that have this as a parent- Specified by:
getNumChildren
in interfaceIBaseDataObject
- Returns:
- the number of children that have this parent
-
getNumSiblings
public int getNumSiblings()
Description copied from interface:IBaseDataObject
Get the number of siblings- Specified by:
getNumSiblings
in interfaceIBaseDataObject
- Returns:
- the number of siblings including this one
-
getBirthOrder
public int getBirthOrder()
Description copied from interface:IBaseDataObject
Get this sibling number, count from one.- Specified by:
getBirthOrder
in 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:
header
in interfaceIBaseDataObject
- Returns:
- byte array of header information or null if none
-
headerBuffer
@Deprecated public ByteBuffer headerBuffer()
Deprecated.Description copied from interface:IBaseDataObject
Return the header wrapped in a ByteBuffer class.- Specified by:
headerBuffer
in 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:
footer
in interfaceIBaseDataObject
- Returns:
- byte array of footer data or null if none
-
footerBuffer
@Deprecated public ByteBuffer footerBuffer()
Deprecated.Description copied from interface:IBaseDataObject
Return the footer wrapped in a ByteBuffer class.- Specified by:
footerBuffer
in interfaceIBaseDataObject
- Returns:
- buffer required by the HTML Velocity templates.
-
dataBuffer
@Deprecated public ByteBuffer dataBuffer()
Deprecated.Description copied from interface:IBaseDataObject
Return theData wrapped in a ByteBuffer class.- Specified by:
dataBuffer
in interfaceIBaseDataObject
- Returns:
- buffer required by the HTML Velocity templates.
-
getFontEncoding
public String getFontEncoding()
Description copied from interface:IBaseDataObject
Get the font encoding string- Specified by:
getFontEncoding
in interfaceIBaseDataObject
- Returns:
- string name of font encoding for the data
-
setFontEncoding
public void setFontEncoding(String fe)
Description copied from interface:IBaseDataObject
Set the font encoding string- Specified by:
setFontEncoding
in 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:
setFileType
in interfaceIBaseDataObject
- Parameters:
v
- the value to store or null
-
setFileTypeIfEmpty
@Deprecated public boolean setFileTypeIfEmpty(String v, String[] empties)
Deprecated.Description copied from interface:IBaseDataObject
Set FILETYPE parameter iff empty.- Specified by:
setFileTypeIfEmpty
in 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:IBaseDataObject
Set FILETYPE parameter iff empty using the built-in definition of empty- Specified by:
setFileTypeIfEmpty
in 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:IBaseDataObject
Return true if the file type is null or in one of the "don't care" set- Specified by:
isFileTypeEmpty
in 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:IBaseDataObject
Get the FILETYPE parameter- Specified by:
getFileType
in interfaceIBaseDataObject
- Returns:
- the string value of the FILETYPE parameter
-
getNumAlternateViews
public int getNumAlternateViews()
Description copied from interface:IBaseDataObject
Disclose how many multipart alternative views of the data exist- Specified by:
getNumAlternateViews
in 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:
getAlternateView
in 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:IBaseDataObject
Append the specified data to the alternate view- Specified by:
appendAlternateView
in 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:IBaseDataObject
Append to a multipart alternative view of the data- Specified by:
appendAlternateView
in 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:
getAlternateViewBuffer
in 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:
addAlternateView
in 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:IBaseDataObject
Add a multipart alternative view of the data- Specified by:
addAlternateView
in 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:
getAlternateViewNames
in 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:
getAlternateViews
in interfaceIBaseDataObject
- Returns:
- an map of alternate views ordered by name, key = String, value = byte[]
-
isBroken
public boolean isBroken()
Description copied from interface:IBaseDataObject
Test for broken document- Specified by:
isBroken
in interfaceIBaseDataObject
- Returns:
- true if broken
-
setBroken
public void setBroken(@Nullable String v)
Description copied from interface:IBaseDataObject
Set brokenness for document- Specified by:
setBroken
in interfaceIBaseDataObject
- Parameters:
v
- the message to record
-
getBroken
@Nullable public String getBroken()
Description copied from interface:IBaseDataObject
Get brokenness indicator message- Specified by:
getBroken
in interfaceIBaseDataObject
- Returns:
- string message of what is broken
-
setClassification
public void setClassification(String classification)
Description copied from interface:IBaseDataObject
Set the classification.- Specified by:
setClassification
in interfaceIBaseDataObject
- Parameters:
classification
- string classification value
-
getClassification
public String getClassification()
Description copied from interface:IBaseDataObject
Get the classification string for the data- Specified by:
getClassification
in interfaceIBaseDataObject
- Returns:
- String classification value
-
getPriority
public int getPriority()
Description copied from interface:IBaseDataObject
Get data object's priority.- Specified by:
getPriority
in interfaceIBaseDataObject
- Returns:
- int priority (lower the number, higher the priority).
-
setPriority
public void setPriority(int priority)
Description copied from interface:IBaseDataObject
Set the data object's priority, typically based on input dir/file priority.- Specified by:
setPriority
in interfaceIBaseDataObject
- Parameters:
priority
- int (lower the number, higher the priority).
-
clone
@Deprecated public IBaseDataObject clone() throws CloneNotSupportedException
Deprecated.Clone this payload- Specified by:
clone
in interfaceIBaseDataObject
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getCreationTimestamp
public Instant getCreationTimestamp()
Description copied from interface:IBaseDataObject
Get the timestamp for when the object was created. This attribute will be used for data provenance.- Specified by:
getCreationTimestamp
in 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:
setCreationTimestamp
in interfaceIBaseDataObject
- Parameters:
creationTimestamp
- when this item was created
-
getExtractedRecords
public List<IBaseDataObject> getExtractedRecords()
Description copied from interface:IBaseDataObject
Get the List of extracted records- Specified by:
getExtractedRecords
in interfaceIBaseDataObject
-
setExtractedRecords
public void setExtractedRecords(List<? extends IBaseDataObject> records)
Description copied from interface:IBaseDataObject
Set/replace the list of extracted children- Specified by:
setExtractedRecords
in interfaceIBaseDataObject
- Parameters:
records
- the list of extracted children
-
addExtractedRecord
public void addExtractedRecord(IBaseDataObject record)
Description copied from interface:IBaseDataObject
Add an extracted child- Specified by:
addExtractedRecord
in interfaceIBaseDataObject
- Parameters:
record
- the extracted child to add
-
addExtractedRecords
public void addExtractedRecords(List<? extends IBaseDataObject> records)
Description copied from interface:IBaseDataObject
Add extracted children- Specified by:
addExtractedRecords
in interfaceIBaseDataObject
- Parameters:
records
- the extracted children to add
-
hasExtractedRecords
public boolean hasExtractedRecords()
Description copied from interface:IBaseDataObject
Determine if this object has extracted records.- Specified by:
hasExtractedRecords
in interfaceIBaseDataObject
- Returns:
- true if this object has extracted records.
-
clearExtractedRecords
public void clearExtractedRecords()
Description copied from interface:IBaseDataObject
Clear the list of extracted records.- Specified by:
clearExtractedRecords
in interfaceIBaseDataObject
-
getExtractedRecordCount
public int getExtractedRecordCount()
Description copied from interface:IBaseDataObject
Get count of extracted records- Specified by:
getExtractedRecordCount
in interfaceIBaseDataObject
-
getInternalId
public UUID getInternalId()
Description copied from interface:IBaseDataObject
Returns the internally generated identifier used to track the object- Specified by:
getInternalId
in interfaceIBaseDataObject
- Returns:
- a String representing the internal ID
-
isOutputable
public boolean isOutputable()
Description copied from interface:IBaseDataObject
Test if tree is outputable- Specified by:
isOutputable
in interfaceIBaseDataObject
- Returns:
- true if this tree is not able to be output, false otherwise
-
setOutputable
public void setOutputable(boolean outputable)
Description copied from interface:IBaseDataObject
Set whether or not the tree is able to be written out- Specified by:
setOutputable
in interfaceIBaseDataObject
- Parameters:
outputable
- true if this tree is not able to be output, false otherwise
-
getId
public String getId()
Description copied from interface:IBaseDataObject
Get ID- Specified by:
getId
in interfaceIBaseDataObject
- Returns:
- the unique identifier of the IBaseDataObject
-
setId
public void setId(String id)
Description copied from interface:IBaseDataObject
Set the unique identifier of the IBaseDataObject- Specified by:
setId
in interfaceIBaseDataObject
- Parameters:
id
- the unique identifier of the IBaseDataObject
-
getWorkBundleId
public String getWorkBundleId()
Description copied from interface:IBaseDataObject
Get the Work Bundle ID- Specified by:
getWorkBundleId
in interfaceIBaseDataObject
- Returns:
- the unique identifier of the
WorkBundle
-
setWorkBundleId
public void setWorkBundleId(String workBundleId)
Description copied from interface:IBaseDataObject
Set the unique identifier of theWorkBundle
- Specified by:
setWorkBundleId
in interfaceIBaseDataObject
- Parameters:
workBundleId
- the unique identifier of theWorkBundle
-
getTransactionId
public String getTransactionId()
Description copied from interface:IBaseDataObject
Get the Transaction ID- Specified by:
getTransactionId
in interfaceIBaseDataObject
- Returns:
- the unique identifier of the transaction
-
setTransactionId
public void setTransactionId(String transactionId)
Description copied from interface:IBaseDataObject
Set the unique identifier of the transaction- Specified by:
setTransactionId
in interfaceIBaseDataObject
- Parameters:
transactionId
- the unique identifier of the transaction
-
getTld
public IBaseDataObject getTld()
Description copied from interface:IBaseDataObject
Return the top level document or null if there is none for this IBaseDataObject- Specified by:
getTld
in interfaceIBaseDataObject
- Returns:
- The TLD IBaseDataObject
-
-