T
- the attribute typepublic class TransformerFactoryAttribute<T> extends Object
TransformerFactory
in a
typed way.Constructor and Description |
---|
TransformerFactoryAttribute(String name)
Creates a new
TransformerFactoryAttribute instance. |
Modifier and Type | Method and Description |
---|---|
T |
get(TransformerFactory transformerFactory)
Allows the user to retrieve specific attributes of the underlying
implementation.
|
String |
getName()
Attribute Name
|
void |
set(TransformerFactory transformerFactory,
T value)
Allows the user to set specific attributes on the underlying implementation.
|
public TransformerFactoryAttribute(String name)
TransformerFactoryAttribute
instance.name
- Attribute Namepublic T get(TransformerFactory transformerFactory)
An IllegalArgumentException
is thrown if the underlying
implementation doesn't recognize the attribute.
transformerFactory
- the transformer factoryIllegalArgumentException
- if implementation does not recognize the
attributepublic void set(TransformerFactory transformerFactory, T value)
An IllegalArgumentException
is thrown if the underlying
implementation doesn't recognize the attribute.
transformerFactory
- the transformer factoryvalue
- the value of the attributeIllegalArgumentException
- if implementation does not recognize the
attributepublic String getName()
Copyright © 2025. All rights reserved.