org.apache.batik.dom.svg
Interface ExtendedTraitAccess

All Superinterfaces:
TraitAccess
All Known Implementing Classes:
SVGOMElement

public interface ExtendedTraitAccess
extends TraitAccess

Interface for SVG DOM classes to expose information about the traits (XML attributes and CSS properties) their elements support.


Method Summary
 int getAttributeType(String ns, String ln)
          Returns the SVG type of the given XML attribute.
 int getPropertyType(String pn)
          Returns the SVG type of the given CSS property.
 boolean hasProperty(String pn)
          Returns whether the given CSS property is available on this element.
 boolean hasTrait(String ns, String ln)
          Returns whether the given trait is available on this element.
 boolean isAttributeAdditive(String ns, String ln)
          Returns whether the given XML attribute is additive.
 boolean isAttributeAnimatable(String ns, String ln)
          Returns whether the given XML attribute is animatable.
 boolean isPropertyAdditive(String pn)
          Returns whether the given CSS property is additive.
 boolean isPropertyAnimatable(String pn)
          Returns whether the given CSS property is animatable.
 boolean isTraitAdditive(String ns, String tn)
          Returns whether the given trait is additive.
 boolean isTraitAnimatable(String ns, String tn)
          Returns whether the given trait is animatable.
 

Method Detail

hasProperty

public boolean hasProperty(String pn)
Returns whether the given CSS property is available on this element.


hasTrait

public boolean hasTrait(String ns,
                        String ln)
Returns whether the given trait is available on this element.


isPropertyAnimatable

public boolean isPropertyAnimatable(String pn)
Returns whether the given CSS property is animatable.


isAttributeAnimatable

public boolean isAttributeAnimatable(String ns,
                                     String ln)
Returns whether the given XML attribute is animatable.


isPropertyAdditive

public boolean isPropertyAdditive(String pn)
Returns whether the given CSS property is additive.


isAttributeAdditive

public boolean isAttributeAdditive(String ns,
                                   String ln)
Returns whether the given XML attribute is additive.


isTraitAnimatable

public boolean isTraitAnimatable(String ns,
                                 String tn)
Returns whether the given trait is animatable.


isTraitAdditive

public boolean isTraitAdditive(String ns,
                               String tn)
Returns whether the given trait is additive.


getPropertyType

public int getPropertyType(String pn)
Returns the SVG type of the given CSS property. Must return one of the TYPE_* constants defined in SVGTypes.


getAttributeType

public int getAttributeType(String ns,
                            String ln)
Returns the SVG type of the given XML attribute. Must return one of the TYPE_* constants defined in SVGTypes.



Copyright © 2009 Apache Software Foundation. All Rights Reserved.