The Style objects currently make use of the following:
#2 setRules( Rule )
#4 addRule( Rule )
I can hook those up to events:
#1- something changed
#2- something added w/ range
But we did not go for full JavaBeans indexed property compliance:
getRules( int index )
setRules( int index, Rule )
(Not to mention Rule vs Rules plays with the JavaBean convention)
An alternative would be to go for Lists, and implement a List that
intercepts modifications and fires events (this would be compatible with
the direction GeoAPI went).
- List getRules() (really List<Rule>)
At least one developer on the GeoAPI list does seem keen on SLD 1.0.20,
has anyone on this list heard of it being used? (or know if a document
based on SLD 1.0.20 will ever be public?).
So what can we do:
- List rules() - wrapped around the array
- Rule getRules( int )
- setRules( int, Rule )
and ignore GeoAPI....