|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.icc.render.obj.Content
public class Content
Holder object for the type and data of a resolved Data Module.
Nested Class Summary | |
---|---|
static class |
Content.ModuleType
Enum to specify the type of module. |
Constructor Summary | |
---|---|
Content(Content.ModuleType moduleType,
byte[] data,
java.lang.String toolTip,
MimeType mimeType,
java.lang.String moduleId)
Constructor with parameters. |
|
Content(Content.ModuleType moduleType,
byte[] data,
java.lang.String toolTip,
MimeType mimeType,
java.lang.String moduleId,
boolean empty)
Constructor with parameters. |
|
Content(Content.ModuleType moduleType,
byte[] data,
java.lang.String toolTip,
MimeType mimeType,
java.lang.String moduleId,
boolean empty,
java.util.Vector ancestry)
Constructor with parameters. |
|
Content(Content.ModuleType moduleType,
byte[] data,
java.lang.String toolTip,
MimeType mimeType,
java.lang.String moduleId,
boolean empty,
java.util.Vector ancestry,
int moduleIdent)
Constructor with parameters. |
Method Summary | |
---|---|
void |
applyAncestry(java.util.Vector ancestry)
Sets the lineage (Object[][]) based on the ancestry (Vector |
byte[] |
getData()
Returns the module content as byte[]. |
java.lang.Byte[] |
getDataArray()
Returns the module content as Byte[]. |
java.lang.Object[][] |
getLineage()
Returns array of arrays where sub-array index 0 is a String representing the GUID of every parent module in the result's
lineage if the content was nested in a list or condition. |
MimeType |
getMimeType()
Returns mime type of module content. |
java.lang.String |
getModuleId()
Returns the module id. |
int |
getModuleIdent()
Returns the indentation value. |
Content.ModuleType |
getModuleType()
Returns the module type. |
java.util.Set |
getParentKeepWithNext()
|
java.lang.String |
getToolTip()
Returns the module tool tip. |
boolean |
isEmpty()
Returns true if the content is explicitly empty (e.g. |
boolean |
isKeepWithNext()
|
boolean |
isNoPageBreak()
|
boolean |
isOriginalKeepWithNext()
|
boolean |
isOriginalNoPageBreak()
|
void |
setData(byte[] data)
Sets the module content as byte[]. |
void |
setDataArray(java.lang.Byte[] dataArray)
Sets the module content as Byte[]. |
void |
setEmpty(boolean empty)
Sets flag to indicate that module content is empty. |
void |
setKeepWithNext(boolean keepWithNext)
|
void |
setLineage(java.lang.Object[][] lineage)
Sets lineage of this content. |
void |
setMimeType(MimeType mimeType)
Sets mime type of module content. |
void |
setModuleId(java.lang.String moduleId)
Sets the module id. |
void |
setModuleIdent(int moduleIdent)
Sets the indentation value. |
void |
setModuleType(Content.ModuleType moduleType)
Sets the module type. |
void |
setNoPageBreak(boolean noPageBreak)
|
void |
setOriginalKeepWithNext(boolean originalKeepWithNext)
|
void |
setOriginalNoPageBreak(boolean originalNoPageBreak)
|
void |
setParentKeepWithNext(java.util.Set parentKeepWithNext)
|
void |
setToolTip(java.lang.String toolTip)
Sets module tool tip. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Content(Content.ModuleType moduleType, byte[] data, java.lang.String toolTip, MimeType mimeType, java.lang.String moduleId)
moduleType
- type of the module.data
- content of module.toolTip
- module tooltip.mimeType
- mime type of module content.moduleId
- id of module.public Content(Content.ModuleType moduleType, byte[] data, java.lang.String toolTip, MimeType mimeType, java.lang.String moduleId, boolean empty)
moduleType
- type of the module.data
- content of module.toolTip
- module tooltip.mimeType
- mime type of module content.moduleId
- id of module.empty
- flag to indiciate that module is empty.public Content(Content.ModuleType moduleType, byte[] data, java.lang.String toolTip, MimeType mimeType, java.lang.String moduleId, boolean empty, java.util.Vector ancestry)
moduleType
- type of the module.data
- content of module.toolTip
- module tooltip.mimeType
- mime type of module content.moduleId
- id of module.empty
- flag to indiciate that module is empty.ancestry
- ancestry.public Content(Content.ModuleType moduleType, byte[] data, java.lang.String toolTip, MimeType mimeType, java.lang.String moduleId, boolean empty, java.util.Vector ancestry, int moduleIdent)
moduleType
- type of the module.data
- content of module.toolTip
- module tooltip.mimeType
- mime type of module content.moduleId
- id of module.empty
- flag to indiciate that module is empty.ancestry
- ancestry.moduleIdent
- indentation level of module.Method Detail |
---|
public Content.ModuleType getModuleType()
public void setModuleType(Content.ModuleType moduleType)
moduleType
- module type.public byte[] getData()
public void setData(byte[] data)
data
- module contentpublic java.lang.String getToolTip()
public void setToolTip(java.lang.String toolTip)
toolTip
- module tool tippublic MimeType getMimeType()
public void setMimeType(MimeType mimeType)
mimeType
- the mimeType to setpublic java.lang.Byte[] getDataArray()
public void setDataArray(java.lang.Byte[] dataArray)
data
- module contentpublic java.lang.String getModuleId()
public void setModuleId(java.lang.String moduleId)
moduleId
- module id.public boolean isEmpty()
public void setEmpty(boolean empty)
empty
- indicates that module content is emptypublic java.lang.Object[][] getLineage()
String
representing the GUID of every parent module in the result's
lineage if the content was nested in a list or condition. Sub-array index 1 is an integer >= 0 representing the identifier
of each parent module. The array lists every parent in order from oldest to youngest. If the content was not nested, this property
is null.
public void setLineage(java.lang.Object[][] lineage)
lineage
- array of arrays representing lineagepublic int getModuleIdent()
public void setModuleIdent(int moduleIdent)
moduleIdent
- the moduleIdent to setpublic void applyAncestry(java.util.Vector ancestry)
public boolean isOriginalNoPageBreak()
public void setOriginalNoPageBreak(boolean originalNoPageBreak)
originalNoPageBreak
- the originalNoPageBreak to setpublic boolean isOriginalKeepWithNext()
public void setOriginalKeepWithNext(boolean originalKeepWithNext)
originalKeepWithNext
- the originalKeepWithNext to setpublic boolean isNoPageBreak()
public void setNoPageBreak(boolean noPageBreak)
noPageBreak
- the noPageBreak to setpublic boolean isKeepWithNext()
public void setKeepWithNext(boolean keepWithNext)
keepWithNext
- the keepWithNext to setpublic java.util.Set getParentKeepWithNext()
public void setParentKeepWithNext(java.util.Set parentKeepWithNext)
parentKeepWithNext
- the parentKeepWithNext to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |