org.apache.batik.svggen
Class SVGAttribute
java.lang.Object
org.apache.batik.svggen.SVGAttribute
public class SVGAttribute
- extends Object
Represents an SVG attribute and provides convenience
methods to determine whether or not the attribute applies
to a given element type.
- Version:
- $Id: SVGAttribute.java 1733416 2016-03-03 07:07:13Z gadams $
- Author:
- Vincent Hardy
|
Constructor Summary |
SVGAttribute(Set applicabilitySet,
boolean isSetInclusive)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVGAttribute
public SVGAttribute(Set applicabilitySet,
boolean isSetInclusive)
- Parameters:
applicabilitySet - Set of Element tags (Strings) to which
the attribute appliesisSetInclusive - defines whether elements in applicabilitySet
define the list of elements to which the attribute
applies or to which it does not apply
appliesTo
public boolean appliesTo(String tag)
- Parameters:
tag - the tag of the Element to which the attribute
could apply.
- Returns:
- true if the attribute applies to the given Element
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.