Package org.apache.batik.svggen
Class SVGAttribute
- java.lang.Object
-
- org.apache.batik.svggen.SVGAttribute
-
public class SVGAttribute extends java.lang.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 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set
applicabilitySet
Set of Element tags to which the attribute does or does not apply.private boolean
isSetInclusive
Controls the semantic of applicabilitySet.private java.lang.String
name
SVG syntax for the attribute
-
Constructor Summary
Constructors Constructor Description SVGAttribute(java.util.Set applicabilitySet, boolean isSetInclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesTo(java.lang.String tag)
-
-
-
Field Detail
-
name
private java.lang.String name
SVG syntax for the attribute
-
applicabilitySet
private java.util.Set applicabilitySet
Set of Element tags to which the attribute does or does not apply.
-
isSetInclusive
private boolean isSetInclusive
Controls the semantic of applicabilitySet. If true, then the applicabilitySet contains the elments to which the attribute applies. If false, the Set contains the elements to which the attribute does not apply.
-
-
Constructor Detail
-
SVGAttribute
public SVGAttribute(java.util.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
-
-