public PatternGroup() { itsPatterns = new ArrayList(); itsAlternateGroups = new ArrayList(); itsConstraints = new ArrayList(); itsQueryPartAlternate = new QueryGroupOr(); itsQueryPartPatterns = new QueryGroupPatterns(); itsQueryPartOptionalPatterns = new QueryGroupPatterns(); itsQueryPartOptional = new QueryGroupOptional(itsQueryPartOptionalPatterns); itsQueryPartConstraints = new QueryGroupConstraints( ); }
public QueryGroup Resolve(ResourceMap map) { QueryGroup resolved; try { resolved = new QueryGroupOptional(itsGroup.Resolve(map)); } catch (UnknownGraphMemberException) { resolved = new QueryGroupOptional(new QueryGroupPatterns()); } return(resolved); }