public abstract class AttributeSerializer<T,U extends ConfigurationInfo,B extends ConfigurationBuilderInfo> extends Object
Attribute serialization to external format.| Constructor and Description |
|---|
AttributeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(String name,
AttributeDefinition attributeDefinition) |
String |
getSerializationName(Attribute<T> attribute,
U configurationElement) |
Object |
getSerializationValue(Attribute<T> attribute,
U configurationElement) |
Object |
readAttributeValue(String enclosingElement,
AttributeDefinition attributeDefinition,
Object attrValue,
B builderInfo)
Read attribute value from serialized format, if
canRead(String, AttributeDefinition) is true
for this instance of serializer. |
public boolean canRead(String name, AttributeDefinition attributeDefinition)
public String getSerializationName(Attribute<T> attribute, U configurationElement)
public Object getSerializationValue(Attribute<T> attribute, U configurationElement)
public Object readAttributeValue(String enclosingElement, AttributeDefinition attributeDefinition, Object attrValue, B builderInfo)
canRead(String, AttributeDefinition) is true
for this instance of serializer.enclosingElement - The parent element where the attribute is located.attributeDefinition - The serialized attribute definition.attrValue - The serialize attribute value.builderInfo - the ConfigurationBuilderInfo where the attribute is defined.Copyright © 2022 JBoss by Red Hat. All rights reserved.