org.apache.batik.dom.svg

Interface ExtendedTraitAccess

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
intgetAttributeType(String ns, String ln)
Returns the SVG type of the given XML attribute.
intgetPropertyType(String pn)
Returns the SVG type of the given CSS property.
booleanhasProperty(String pn)
Returns whether the given CSS property is available on this element.
booleanhasTrait(String ns, String ln)
Returns whether the given trait is available on this element.
booleanisAttributeAdditive(String ns, String ln)
Returns whether the given XML attribute is additive.
booleanisAttributeAnimatable(String ns, String ln)
Returns whether the given XML attribute is animatable.
booleanisPropertyAdditive(String pn)
Returns whether the given CSS property is additive.
booleanisPropertyAnimatable(String pn)
Returns whether the given CSS property is animatable.
booleanisTraitAdditive(String ns, String tn)
Returns whether the given trait is additive.
booleanisTraitAnimatable(String ns, String tn)
Returns whether the given trait is animatable.

Method Detail

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.

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.

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.

isAttributeAdditive

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

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.

isPropertyAnimatable

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

isTraitAdditive

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

isTraitAnimatable

public boolean isTraitAnimatable(String ns, String tn)
Returns whether the given trait is animatable.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.