private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
public String getMessage() { if (getLine() == -1) { return "The attribute " + name + " specified in " + getResourceURI() + " was not recognized."; } else { return "The attribute " + name + " specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " was not recognized."; } }
protected void validateAttributes(XMLStreamReader reader, IntrospectionContext context, ModelObject... sources) { Location location = reader.getLocation(); for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!attributes.contains(name)) { UnrecognizedAttribute failure = new UnrecognizedAttribute(name, location, sources); context.addError(failure); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"source".equals(name) && !"target".equals(name) && !"requires".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"provides".equals(name) && !"appliesTo".equals(name) && !"phase".equals(name) && !"attachTo".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"requires".equals(name) && !"policySets".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"requires".equals(name) && !"promote".equals(name) && !"policySets".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"requires".equals(name) && !"policySets".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"alwaysProvides".equals(name) && !"mayProvide".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"targetNamespace".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"alwaysProvides".equals(name) && !"mayProvide".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"class".equals(name) && !"interface".equals(name) && !"callbackInterface".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!"name".equals(name) && !"constrains".equals(name) && !"requires".equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!NAME.equals(name) && !MANY.equals(name) && !MUST_SUPPLY.equals(name) && !TYPE.equals(name) && !SOURCE.equals(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }
private void validateAttributes(XMLStreamReader reader, IntrospectionContext context) { for (int i = 0; i < reader.getAttributeCount(); i++) { String name = reader.getAttributeLocalName(i); if (!ATTRIBUTES.containsKey(name)) { context.addError(new UnrecognizedAttribute(name, reader)); } } }