public class StiResource extends java.lang.Object implements IStiName, IStiInherited, IStiJsonReportObject, IStiSerializableToString
| Modifier and Type | Class and Description |
|---|---|
static class |
StiResource.Order |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
content |
boolean |
inherited |
java.lang.String |
key |
StiResourceType |
type |
| Constructor and Description |
|---|
StiResource()
Creates an object of the type StiResource.
|
StiResource(java.lang.String name,
StiResourceType type,
byte[] content)
Creates an object of the type StiResource.
|
StiResource(java.lang.String name,
java.lang.String alias,
boolean inherited,
StiResourceType type,
byte[] content) |
StiResource(java.lang.String name,
java.lang.String alias,
boolean inherited,
StiResourceType type,
byte[] content,
boolean availableInTheViewer)
Creates an object of the type StiResource.
|
StiResource(java.lang.String name,
java.lang.String alias,
StiResourceType type,
byte[] content)
Creates an object of the type StiResource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(java.lang.String strObject) |
java.lang.String |
getAlias()
An alias of the file.
|
StiComponentId |
getComponentId() |
byte[] |
getContent() |
boolean |
getInherited() |
java.lang.String |
getKey()
The key of the dictionary object.
|
java.lang.String |
getName()
A name of the file.
|
java.lang.String |
getPropName() |
StiImage |
getResourceAsImage() |
StiResourceType |
getType()
The key of the dictionary object.
|
boolean |
isAvailableInTheViewer() |
void |
LoadFromJsonObject(JSONObject jObject) |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
java.lang.String |
serialize() |
void |
setAlias(java.lang.String alias)
An alias of the file.
|
void |
setAvailableInTheViewer(boolean availableInTheViewer) |
void |
setContent(byte[] content) |
void |
setInherited(boolean inherited) |
void |
setKey(java.lang.String key)
The key of the dictionary object.
|
void |
setName(java.lang.String value)
A name of the file.
|
void |
setType(StiResourceType type)
The key of the dictionary object.
|
java.lang.String |
toString() |
public boolean inherited
public byte[] content
public java.lang.String key
public StiResourceType type
public StiResource()
public StiResource(java.lang.String name,
StiResourceType type,
byte[] content)
name - Name of the resource.type - Type of the resource.content - Content of the resource.public StiResource(java.lang.String name,
java.lang.String alias,
StiResourceType type,
byte[] content)
name - Name of the resource.alias - Alias of the resource.type - Type of the resource.content - Content of the resource.public StiResource(java.lang.String name,
java.lang.String alias,
boolean inherited,
StiResourceType type,
byte[] content)
public StiResource(java.lang.String name,
java.lang.String alias,
boolean inherited,
StiResourceType type,
byte[] content,
boolean availableInTheViewer)
name - Name of the resource.alias - Alias of the resource.inherited - Value which indicates that this resource inherited in dictionary from the master
report.type - Type of the resource.content - Content of the resource.public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectJSONExceptionpublic StiComponentId getComponentId()
public java.lang.String getPropName()
public boolean getInherited()
getInherited in interface IStiInheritedpublic void setInherited(boolean inherited)
setInherited in interface IStiInheritedinherited - the inherited to setpublic java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias - the alias to setpublic byte[] getContent()
public void setContent(byte[] content)
content - the content to setpublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - the key to setpublic StiResourceType getType()
public boolean isAvailableInTheViewer()
public void setAvailableInTheViewer(boolean availableInTheViewer)
availableInTheViewer - the availableInTheViewer to setpublic void setType(StiResourceType type)
type - the type to setpublic StiImage getResourceAsImage()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String serialize()
serialize in interface IStiSerializableToStringpublic void deserialize(java.lang.String strObject)
deserialize in interface IStiSerializableToStringCopyright © 2019 Stimulsoft. All Rights Reserved.