@Override protected ElementFilter createXmlEntityCompletionFilter() { if (isCaseInsensitive()) { return new AndFilter( new OrFilter ( new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS), new XmlTokenTypeFilter(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN) ), new TextContainFilter("&") ); } return super.createXmlEntityCompletionFilter(); }
protected ElementFilter createXmlEntityCompletionFilter() { if (isCaseInsensitive()) { return new AndFilter( new OrFilter ( new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS), new XmlTokenTypeFilter(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN) ), new TextContainFilter("&") ); } return super.createXmlEntityCompletionFilter(); }
@Override public XmlElement[] getEnumeratedValues() { final List<XmlElement> result = new ArrayList<XmlElement>(); processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this); return result.toArray(new XmlElement[result.size()]); }
protected ElementFilter createXmlEntityCompletionFilter() { return new AndFilter(new LeftNeighbour(new XmlTextFilter("&")), new OrFilter(new XmlTokenTypeFilter(XmlTokenType.XML_DATA_CHARACTERS), new XmlTokenTypeFilter( XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN))); }
public XmlElement[] getEnumeratedValues() { final List<XmlElement> result = new ArrayList<XmlElement>(); processElements(new FilterElementProcessor(new XmlTokenTypeFilter(XmlTokenType.XML_NAME), result), this); return result.toArray(new XmlElement[result.size()]); }