A helpful class for sifting through an SLD Style object while implementing an editor. Consider it a wrapper that allows you to easily edit (it will completely write any and all changes directly to the wrapped style).
Used by a StyleConfigurator or IStyledEditorPage working with SLD style content on the blackboard.
A Style object can contain any number of FeatureTypeStyle objects, which can in turn contain any number of Rule objects, which can in turn contain any number of Symbolizer objects.
The SLDContentManager provides support for the following concepts:
- notion of a default FeatureTypeStyle (with a single rule)
- notion of a default Rule
This allows IStyleConfigurator implementation who simply want to add a new symbolizer to the style to forgo the creation and setup of the style hierarchy.
To help keep everything straight here are a couple of naming conventions:
- to access something:
- access methods will drill down and provide the requested object or null if not available
- get methods will drill down and return the requested object (creating it if needed)
- Create methods exist and will create the requested object and add it to the style in one go (if you want to just create something use the StyleBuilder; or directly use the StyleFactory)
This class also provides the ability to look up symbolizers by class against the "default" rule (ie the rule with the name "default"). This allows an SLDConfigurator interested in a particular symbolizer to 'track' the instance of it as the default rule is changed.
@author Justin Deoliveira
@since 0.9