public final class SVGUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <TSVGElementBase extends SVGElementBase<?>> |
resolveIRI(String data,
SVGDocumentDataProvider dataProvider,
Class<TSVGElementBase> clazz)
Returns the element which might be referenced by the given data.
|
static String |
stripIRIIdentifiers(String data)
Strips the given
String from the IRI identifiers if any. |
public static String stripIRIIdentifiers(String data) throws SVGException
String from the IRI identifiers if any.data - the String to be stripped, must not be null or empty.IllegalArgumentException - if data is null or empty.SVGExceptionpublic static <TSVGElementBase extends SVGElementBase<?>> TSVGElementBase resolveIRI(String data, SVGDocumentDataProvider dataProvider, Class<TSVGElementBase> clazz) throws SVGException
Constants.IRI_IDENTIFIER in order to be
resolved as a reference.TSVGElementBase - the type of element which is expected.data - the string which contains the reference to resolve.dataProvider - the SVGDocumentDataProvider which contains the data which is referenced.clazz - the class of the element that is expected.SVGElementBase which is referenced by the data.SVGException - if the data references a resource which is not contained in the SVGDocumentDataProvider.Copyright © 2016 Saxonia Systems AG. All rights reserved.