public abstract class TDataObject extends java.lang.Object implements TStreamable
Modifier | Constructor and Description |
---|---|
protected |
TDataObject()
Default Constructor.
|
protected |
TDataObject(java.util.Locale locale)
Default Constructor.
|
protected |
TDataObject(java.lang.String collection,
java.lang.String doctype,
java.lang.String contentType)
Special Constructor.
|
protected |
TDataObject(java.lang.String collection,
java.lang.String doctype,
java.lang.String contentType,
java.util.Locale locale)
Special Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canWriteToOutputStream()
Indicates if the object's XML content can be currently written to
an output stream.
|
java.lang.String |
getCollection()
Gets the collection of this Tamino document.
|
java.lang.String |
getContentType()
Gets the contentType of this Tamino document.
|
abstract java.lang.String |
getDocname()
Gets the ino:docname attribute of this Tamino document.
|
java.lang.String |
getDoctype()
Gets the doctype of this Tamino document.
|
abstract java.lang.String |
getId()
Gets the ino:id attribute of this Tamino document.
|
java.lang.String |
getLastModified()
Gets the 'last modified' attribute, the time a Tamino document was modified last
of this Tamino document.
|
java.util.Locale |
getLocale()
Gets the locale.
|
boolean |
hasCollection()
Checks whether the collection of this Tamino document is set.
|
boolean |
hasDocname()
Check whether the ino:docname attribute of this Tamino document is set.
|
boolean |
hasDoctype()
Check whether the doctype on this Tamino document is set.
|
boolean |
hasId()
Check whether the ino:id attribute of this Tamino document is set.
|
protected void |
readDocumentStateFrom(java.io.ObjectInputStream in)
This abstract method serves as a plugin method for readStateFrom.
|
protected void |
readStateFrom(java.io.ObjectInputStream in)
Reads the adapter's state from the given ObjectOutputStream.
|
void |
setCollection(java.lang.String collection)
Sets the collection of this Tamino document.
|
void |
setContentType(java.lang.String contentType)
Sets the contentType of this Tamino document.
|
abstract void |
setDocname(java.lang.String docname)
Sets the ino:docname attribute of this Tamino document.
|
void |
setDoctype(java.lang.String doctype)
Sets the doctype of this Tamino document.
|
abstract void |
setId(java.lang.String id)
Sets the ino:id attribute of this Tamino document.
|
void |
setLastModified(java.lang.String lastModified)
Sets the 'last modified' attribute, the time a Tamino document was modified last
of this Tamino document.
|
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
protected void |
writeDocumentStateTo(java.io.ObjectOutputStream out)
This method serves as a plugin method for writeStateTo.
|
protected void |
writeStateTo(java.io.ObjectOutputStream out)
Writes the current state to the given ObjectOutputStream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrom, readFrom, writeTo, writeTo
protected TDataObject()
protected TDataObject(java.util.Locale locale)
protected TDataObject(java.lang.String collection, java.lang.String doctype, java.lang.String contentType)
collection
- the Tamino collection name.doctype
- the Tamino doctype name.contentType
- the content type.protected TDataObject(java.lang.String collection, java.lang.String doctype, java.lang.String contentType, java.util.Locale locale)
collection
- the Tamino collection name.doctype
- the Tamino doctype name.contentType
- the content type.public void setCollection(java.lang.String collection)
collection
- the collection tha contains this TDataObject instance.public void setDoctype(java.lang.String doctype)
doctype
- the doctype of this TDataObject instance.public abstract void setDocname(java.lang.String docname)
docname
- the ino:docname attribute of this TDataObject instance.public abstract void setId(java.lang.String id)
id
- the ino:id attribute of this TDataObject instance.public void setContentType(java.lang.String contentType)
contentType
- the MimeType of this TDataObject instance.public void setLastModified(java.lang.String lastModified)
lastModified
- time of the last modification as a string.public java.lang.String getCollection()
public java.lang.String getDoctype()
public abstract java.lang.String getDocname()
public abstract java.lang.String getId()
public java.lang.String getContentType()
getContentType
in interface TStreamable
public java.lang.String getLastModified()
public boolean hasCollection()
public boolean hasDoctype()
public boolean hasDocname()
public boolean hasId()
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
protected abstract boolean canWriteToOutputStream()
protected void writeStateTo(java.io.ObjectOutputStream out) throws java.io.IOException
ObjectOutputStream
- instance to which the state is written to.java.io.IOException
protected void writeDocumentStateTo(java.io.ObjectOutputStream out) throws java.io.IOException
out
- the ObjectOutputStream needed for serialization.java.io.IOException
protected void readStateFrom(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
ObjectInputStream
- instance from which the state is read.java.io.IOException
java.lang.ClassNotFoundException
protected void readDocumentStateFrom(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
out
- the ObjectOutputStream needed for serialization.java.io.IOException
java.lang.ClassNotFoundException
Copyright (c) 2017 Software AG. All Rights Reserved.