@Test public void testIncludeAll() { final Map<String, Object> selector = new HashMap<String, Object>(); final Map<String, Object> sectionAssocs = new HashMap<String, Object>(); sectionAssocs.put("*", true); sectionAssocs.put("beginDate", false); selector.put("studentSectionAssociations", sectionAssocs); final ClassType student = provider.getClassType("Student"); final SemanticSelector semanticSelector = defaultSelectorSemanticModel.parse(selector, student); }
public SemanticSelector parse(final Map<String, Object> selectors, final ClassType type) throws SelectorParseException { if (type == null) { throw new IllegalArgumentException("type"); } if (selectors == null) { throw new IllegalArgumentException("selectors"); } final SemanticSelector selector = new SemanticSelector(); if (selectors.isEmpty()) { selector.addSelector(type, new EmptySelectorElement(type)); } for (final Map.Entry<String, Object> entry : selectors.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); addEntryToSelector(type, selector, key, value); } return selector; }
DefaultSelectorSemanticModel implements SelectorSemanticModel { public SemanticSelector parse(final Map<String, Object> selectors, final ClassType type) throws SelectorParseException { if (type == null) { throw new IllegalArgumentException("type"); } if (selectors == null) { throw new IllegalArgumentException("selectors"); } final SemanticSelector selector = new SemanticSelector(); if (selectors.isEmpty()) { selector.addSelector(type, new EmptySelectorElement(type)); } for (final Map.Entry<String, Object> entry : selectors.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); addEntryToSelector(type, selector, key, value); } return selector; } }
DefaultSelectorSemanticModel implements SelectorSemanticModel { public SemanticSelector parse(final Map<String, Object> selectors, final ClassType type) throws SelectorParseException { if (type == null) { throw new IllegalArgumentException("type"); } if (selectors == null) { throw new IllegalArgumentException("selectors"); } final SemanticSelector selector = new SemanticSelector(); if (selectors.isEmpty()) { selector.addSelector(type, new EmptySelectorElement(type)); } for (final Map.Entry<String, Object> entry : selectors.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); addEntryToSelector(type, selector, key, value); } return selector; }  }
DefaultSelectorSemanticModel implements SelectorSemanticModel { public SemanticSelector parse(final Map<String, Object> selectors, final ClassType type) throws SelectorParseException { if (type == null) { throw new IllegalArgumentException("type"); } if (selectors == null) { throw new IllegalArgumentException("selectors"); } final SemanticSelector selector = new SemanticSelector(); if (selectors.isEmpty()) { selector.addSelector(type, new EmptySelectorElement(type)); } for (final Map.Entry<String, Object> entry : selectors.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); addEntryToSelector(type, selector, key, value); } return selector; }  SemanticSelector parse(final Map<String, Object> selectors, final ClassType type); }
DefaultSelectorSemanticModel implements SelectorSemanticModel { public SemanticSelector parse(final Map<String, Object> selectors, final ClassType type) throws SelectorParseException { if (type == null) { throw new IllegalArgumentException("type"); } if (selectors == null) { throw new IllegalArgumentException("selectors"); } final SemanticSelector selector = new SemanticSelector(); if (selectors.isEmpty()) { selector.addSelector(type, new EmptySelectorElement(type)); } for (final Map.Entry<String, Object> entry : selectors.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); addEntryToSelector(type, selector, key, value); } return selector; }  SemanticSelector parse(final Map<String, Object> selectors, final ClassType type);  }