public class TransformationResult
extends java.lang.Object
ResourceTransformer.
In most cases the new transformation result just contains new
content (provided through getInputStream().
However, if the transformer is able to detect the new resource
type and sets it, it must also provide a unique id (
getResourceType() and getId().| Constructor and Description |
|---|
TransformationResult() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Attributes include the bundle symbolic name, bundle version, etc.
|
java.lang.String |
getId()
Get the new unique id
|
java.io.InputStream |
getInputStream()
Get the new input stream
|
java.lang.String |
getResourceType()
Get the new resource type
|
org.osgi.framework.Version |
getVersion()
Get the version
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attr)
Set the new attributes.
|
void |
setId(java.lang.String id)
Set a new unique id.
|
void |
setInputStream(java.io.InputStream inputStream)
Set a new input stream.
|
void |
setResourceType(java.lang.String resourceType)
Set a new resource type.
|
void |
setVersion(org.osgi.framework.Version version)
Set the version.
|
java.lang.String |
toString() |
public java.lang.String getResourceType()
null.public java.io.InputStream getInputStream()
null.public java.lang.String getId()
null.public void setResourceType(java.lang.String resourceType)
resourceType - The resource typepublic void setId(java.lang.String id)
id - The unique idpublic void setInputStream(java.io.InputStream inputStream)
inputStream - The input streampublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attr)
attr - The map of attributespublic void setVersion(org.osgi.framework.Version version)
version - The new versionpublic org.osgi.framework.Version getVersion()
nullpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved