public class SVGAttributeHolder extends AttributeHolder<SVGAttributeType>
| Constructor and Description |
|---|
SVGAttributeHolder(SVGDocumentDataProvider dataProvider) |
| Modifier and Type | Method and Description |
|---|---|
SVGAttributeType |
createAttributeType(String name)
This method is used each time a new
AttributeWrapper is needed. |
<TValue> TValue |
getAttributeValue(String name,
Class<TValue> clazz,
TValue defaultValue)
Returns the value of the desired attribute as the desired type using the provided key or the given default value should the attribute not exist.
|
getAttribute, getAttribute, getAttributeOrFail, getAttributespublic SVGAttributeHolder(SVGDocumentDataProvider dataProvider)
public final <TValue> TValue getAttributeValue(String name, Class<TValue> clazz, TValue defaultValue) throws SVGException
TValue - type of the value of the attribute desired.name - name of the propertyclazz - class of the type of the property used for casting.defaultValue - the default value to provide if the desired attribute was not found.TValue or the default value should the attribute not exist.SVGException - when an error occurs during the retrieval of the value.public SVGAttributeType createAttributeType(String name)
AttributeHolderAttributeWrapper is needed.createAttributeType in class AttributeHolder<SVGAttributeType>name - the name of the content type to be created.TAttribute for the given name.Copyright © 2016 Saxonia Systems AG. All rights reserved.