public MarkLogicDatasetGraph withRulesets ( SPARQLRuleset ... rulesets ) { if ( this . rulesets == null ) { this . rulesets = rulesets ; } else { Collection < SPARQLRuleset > collection = new ArrayList < SPARQLRuleset > ( ) ; collection . addAll ( Arrays . asList ( this . rulesets ) ) ; collection . addAll ( Arrays . asList ( rulesets ) ) ; this . rulesets = collection . toArray ( new SPARQLRuleset [ ] { } ) ; } return this ; }
Fluent setter for rulesets .