@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && CLASS.equals(localName)) { decorators.add(new XmlMetadata<String>(qName, trim(nestedText), file, locator.getLineNumber())); } }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && CLASS.equals(localName)) { alternativesClasses.add(new XmlMetadata<String>(qName, trim(nestedText), file, locator.getLineNumber())); } else if (isInNamespace(uri) && STEREOTYPE.equals(localName)) { alternativeStereotypes.add(new XmlMetadata<String>(qName, trim(nestedText), file, locator.getLineNumber())); } }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && CLASS.equals(localName)) { interceptors.add(new XmlMetadata<String>(qName, trim(nestedText), file, locator.getLineNumber())); } }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && "class".equals(localName)) { alternativeClasses.add(new XmlMetadata<String>(qName, propertyReplacer.replaceProperties(trim(nestedText)), file, locator.getLineNumber())); } else if (isInNamespace(uri) && "stereotype".equals(localName)) { alternativeStereotypes.add(new XmlMetadata<String>(qName, propertyReplacer.replaceProperties(trim(nestedText)), file, locator.getLineNumber())); } }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && "class".equals(localName)) { interceptors.add(new XmlMetadata<String>(qName, propertyReplacer.replaceProperties(trim(nestedText)), file, locator.getLineNumber())); } }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isInNamespace(uri) && "class".equals(localName)) { decorators.add(new XmlMetadata<String>(qName, propertyReplacer.replaceProperties(trim(nestedText)), file, locator.getLineNumber())); } }
private void classAvailable(StartElement element, Consumer<Metadata<ClassAvailableActivation>> consumer, boolean inverse) { String className = getAttribute(element, NAME_ATTRIBUTE_NAME); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(element.getName().toString(), new ClassAvailableActivationImpl(className, inverse), beansXml, element.getLocation().getLineNumber()); consumer.accept(classAvailableActivation); }
private void classAvailable(StartElement element, Consumer<Metadata<ClassAvailableActivation>> consumer, boolean inverse) { String className = getAttribute(element, NAME_ATTRIBUTE_NAME); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(element.getName().toString(), new ClassAvailableActivationImpl(className, inverse), beansXml, element.getLocation().getLineNumber()); consumer.accept(classAvailableActivation); }
private void classAvailable(StartElement element, Consumer<Metadata<ClassAvailableActivation>> consumer, boolean inverse) { String className = getAttribute(element, NAME_ATTRIBUTE_NAME); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(element.getName().toString(), new ClassAvailableActivationImpl(className, inverse), beansXml, element.getLocation().getLineNumber()); consumer.accept(classAvailableActivation); }
private void classAvailable(StartElement element, Consumer<Metadata<ClassAvailableActivation>> consumer, boolean inverse) { String className = getAttribute(element, NAME_ATTRIBUTE_NAME); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(element.getName().toString(), new ClassAvailableActivationImpl(className, inverse), beansXml, element.getLocation().getLineNumber()); consumer.accept(classAvailableActivation); }
@Override public void processEndChildElement(String uri, String localName, String qName, String nestedText) { if (isFilterElement(uri, localName)) { Metadata<Filter> filter = new XmlMetadata<Filter>(qName, new FilterImpl(pattern, name, systemPropertyActivations, classAvailableActivations), file, locator.getLineNumber()); if ("include".equals(localName)) { includes.add(filter); } else if ("exclude".equals(localName)) { excludes.add(filter); } // reset name = null; pattern = null; systemPropertyActivations = null; classAvailableActivations = null; } }
private void classAvailable(StartElement element, Consumer<Metadata<ClassAvailableActivation>> consumer, boolean inverse) { String className = getAttribute(element, NAME_ATTRIBUTE_NAME); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(element.getName().toString(), new ClassAvailableActivationImpl(className, inverse), beansXml, element.getLocation().getLineNumber()); consumer.accept(classAvailableActivation); }
private void systemProperty(StartElement element, Consumer<Metadata<SystemPropertyActivation>> consumer) { String name = getAttribute(element, NAME_ATTRIBUTE_NAME); String value = getAttribute(element, VALUE_ATTRIBUTE_NAME); Metadata<SystemPropertyActivation> activation = new XmlMetadata<SystemPropertyActivation>(element.getName().toString(), new SystemPropertyActivationImpl(name, value), beansXml, element.getLocation().getLineNumber()); consumer.accept(activation); }
private void systemProperty(StartElement element, Consumer<Metadata<SystemPropertyActivation>> consumer) { String name = getAttribute(element, NAME_ATTRIBUTE_NAME); String value = getAttribute(element, VALUE_ATTRIBUTE_NAME); Metadata<SystemPropertyActivation> activation = new XmlMetadata<SystemPropertyActivation>(element.getName().toString(), new SystemPropertyActivationImpl(name, value), beansXml, element.getLocation().getLineNumber()); consumer.accept(activation); }
private void parseDecorators(XMLEventReader reader, XMLEvent event) throws XMLStreamException { if (enabledDecorators != null) { throw XmlLogger.LOG.multipleDecorators(beansXml + "@" + event.asStartElement().getLocation().getLineNumber()); } enabledDecorators = new LinkedList<>(); while (reader.hasNext()) { event = reader.nextEvent(); if (isEnd(event, DECORATORS)) { return; } else if (event.isStartElement()) { StartElement element = event.asStartElement(); if (isStartElement(element, CLASS)) { enabledDecorators.add(new XmlMetadata<String>(element.getName().toString(), getTrimmedElementText(reader), beansXml, element.getLocation().getLineNumber())); } } } }
private void systemProperty(StartElement element, Consumer<Metadata<SystemPropertyActivation>> consumer) { String name = getAttribute(element, NAME_ATTRIBUTE_NAME); String value = getAttribute(element, VALUE_ATTRIBUTE_NAME); Metadata<SystemPropertyActivation> activation = new XmlMetadata<SystemPropertyActivation>(element.getName().toString(), new SystemPropertyActivationImpl(name, value), beansXml, element.getLocation().getLineNumber()); consumer.accept(activation); }
private void systemProperty(StartElement element, Consumer<Metadata<SystemPropertyActivation>> consumer) { String name = getAttribute(element, NAME_ATTRIBUTE_NAME); String value = getAttribute(element, VALUE_ATTRIBUTE_NAME); Metadata<SystemPropertyActivation> activation = new XmlMetadata<SystemPropertyActivation>(element.getName().toString(), new SystemPropertyActivationImpl(name, value), beansXml, element.getLocation().getLineNumber()); consumer.accept(activation); }
private void parseDecorators(XMLEventReader reader, XMLEvent event) throws XMLStreamException { if (enabledDecorators != null) { throw XmlLogger.LOG.multipleDecorators(beansXml + "@" + event.asStartElement().getLocation().getLineNumber()); } enabledDecorators = new LinkedList<>(); while (reader.hasNext()) { event = reader.nextEvent(); if (isEnd(event, DECORATORS)) { return; } else if (event.isStartElement()) { StartElement element = event.asStartElement(); if (isStartElement(element, CLASS)) { enabledDecorators.add(new XmlMetadata<String>(element.getName().toString(), getTrimmedElementText(reader), beansXml, element.getLocation().getLineNumber())); } } } }
private void systemProperty(StartElement element, Consumer<Metadata<SystemPropertyActivation>> consumer) { String name = getAttribute(element, NAME_ATTRIBUTE_NAME); String value = getAttribute(element, VALUE_ATTRIBUTE_NAME); Metadata<SystemPropertyActivation> activation = new XmlMetadata<SystemPropertyActivation>(element.getName().toString(), new SystemPropertyActivationImpl(name, value), beansXml, element.getLocation().getLineNumber()); consumer.accept(activation); }
@Override public void processStartChildElement(String uri, String localName, String qName, Attributes attributes) { if (isFilterElement(uri, localName)) { name = trim(attributes.getValue("name")); pattern = trim(attributes.getValue("pattern")); systemPropertyActivations = new ArrayList<Metadata<SystemPropertyActivation>>(); classAvailableActivations = new ArrayList<Metadata<ClassAvailableActivation>>(); } else if (isInNamespace(uri) && "if-system-property".equals(localName)) { String systemPropertyName = trim(attributes.getValue("name")); String systemPropertyValue = trim(attributes.getValue("value")); Metadata<SystemPropertyActivation> systemPropertyActivation = new XmlMetadata<SystemPropertyActivation>(qName, new SystemPropertyActivationImpl(systemPropertyName, systemPropertyValue), file, locator.getLineNumber()); systemPropertyActivations.add(systemPropertyActivation); } else if (isInNamespace(uri) && "if-class-available".equals(localName)) { String className = trim(attributes.getValue("name")); Metadata<ClassAvailableActivation> classAvailableActivation = new XmlMetadata<ClassAvailableActivation>(qName, new ClassAvailableActivationImpl(className), file, locator.getLineNumber()); classAvailableActivations.add(classAvailableActivation); } }