T
- value type. Should be serializable to string and have a constructor with string parampublic class Param<T> extends Object implements Serializable
Constructor and Description |
---|
Param() |
Param(String name,
Class<T> type,
T value) |
Param(String name,
T value) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Class<T> |
getType() |
String |
getTypeString() |
T |
getValue() |
static <T> Param<T> |
load(InputStream stream) |
static <T> Param<T> |
load(Node node) |
void |
save(Document doc,
Node node) |
void |
save(OutputStream stream) |
void |
setName(String name) |
void |
setType(Class<T> type) |
void |
setTypeString(String type) |
String |
toString() |
public String getName()
public void setName(String name)
public String getTypeString()
public void setTypeString(String type)
public T getValue()
public void save(OutputStream stream) throws TransformerException, TikaException
TransformerException
TikaException
public static <T> Param<T> load(InputStream stream) throws SAXException, IOException, TikaException
SAXException
IOException
TikaException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.