T
- value type. Should be serializable to string and have a constructor with string parampublic class Param<T>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Param() |
Param(java.lang.String name,
java.lang.Class<T> type,
T value) |
Param(java.lang.String name,
T value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
java.lang.String |
getTypeString() |
T |
getValue() |
static <T> Param<T> |
load(java.io.InputStream stream) |
static <T> Param<T> |
load(org.w3c.dom.Node node) |
void |
save(org.w3c.dom.Node node) |
void |
save(java.io.OutputStream stream) |
void |
setName(java.lang.String name) |
void |
setType(java.lang.Class<T> type) |
void |
setTypeString(java.lang.String type) |
java.lang.String |
toString() |
public Param()
public Param(java.lang.String name, T value)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Class<T> getType()
public void setType(java.lang.Class<T> type)
public java.lang.String getTypeString()
public void setTypeString(java.lang.String type)
public T getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public void save(java.io.OutputStream stream) throws javax.xml.transform.TransformerException, TikaException
javax.xml.transform.TransformerException
TikaException
public void save(org.w3c.dom.Node node)
public static <T> Param<T> load(java.io.InputStream stream) throws org.xml.sax.SAXException, java.io.IOException, TikaException
org.xml.sax.SAXException
java.io.IOException
TikaException
public static <T> Param<T> load(org.w3c.dom.Node node)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"