Add an attribute to the PrintQuery. It is used to get editable values
from the eFaps DataBase.

@param _attributes Attribute to add
@return this PrintQuery
189844
public AbstractPrintQuery addAttribute(final Attribute... _attributes)
    {
        if (isMarked4execute()) {
            for (final Attribute attr : _attributes) {
                final OneSelect oneselect = new OneSelect(this, attr);
                this.allSelects.add(oneselect);
                this.attr2OneSelect.put(attr.getName(), oneselect);
            }
        }
        return this;
    }
1002530
public static AttributeList setAttributes(String name, HashMap attributes) throws JMException
   {
      MBeanServer server = getMBeanServer();
      ObjectName objName = new ObjectName(name);
      MBeanInfo info = server.getMBeanInfo(objName);
      MBeanAttributeInfo[] attributesInfo = info.getAttributes();
      AttributeList newAttributes = new AttributeList();

      for (int a = 0; a < attributesInfo.length; a++)
      {
         MBeanAttributeInfo attrInfo = attributesInfo[a];
         String attrName = attrInfo.getName();

         if (!attributes.containsKey(attrName))
            continue;

         String value = (String) attributes.get(attrName);
         if (value.equals("null") && server.getAttribute(objName, attrName) == null)
         {
            if (trace)
               log.trace("ignoring 'null' for " + attrName);
            continue;
         }

         String attrType = attrInfo.getType();
         Attribute attr = null;
         try
         {
            Object realValue = PropertyEditors.convertValue(value, attrType);
            attr = new Attribute(attrName, realValue);
         }
         catch (ClassNotFoundException e)
         {
            if (trace)
               log.trace("Failed to load class for attribute: " + attrType, e);
            throw new ReflectionException(e, "Failed to load class for attribute: " + attrType);
         }
         catch (IntrospectionException e)
         {
            if (trace)
               log.trace("Skipped setting attribute: " + attrName + 
                         ", cannot find PropertyEditor for type: " + attrType);
            continue;
         }

         server.setAttribute(objName, attr);
         newAttributes.add(attr);
      }

      return newAttributes;
   }
74915
private static void printAttribute(final PrintWriter writer,
									   final HttpServletRequest request, final String attribute) {
		writer.println("<tr><td>"
				+ attribute
				+ "</td><td>"
				+ (request.getAttribute(attribute) != null ? request
				.getAttribute(attribute) : "") + "</td></tr>");
	}
954035
public static String createBeanAttributesId(BeanAttributes<?> attributes) {
        StringBuilder builder = new StringBuilder();
        builder.append(attributes.getName());
        builder.append(",");
        builder.append(attributes.getScope().getName());
        builder.append(",");
        builder.append(attributes.isAlternative());
        builder.append(AnnotatedTypes.createAnnotationCollectionId(attributes.getQualifiers()));
        builder.append(createTypeCollectionId(attributes.getStereotypes()));
        builder.append(createTypeCollectionId(attributes.getTypes()));
        return builder.toString();
    }
24077
public final void addAttributes(final Map<String,String> attributes) {
        if(attributes != null) {
            this.attributes.putAll(attributes);
        }
    }
918468
public void addMBeanAttribute(String mbean, MBeanAttribute attr)
			throws Exception {
		MBeanHolder mbeanHolder = mbeanMap.get(mbean);
		if (mbeanHolder == null) {
			mbeanHolder = new MBeanHolder(this, process, mbean);
			mbeanMap.put(mbean, mbeanHolder);
		}
		mbeanHolder.addAttribute(attr);
		log.info("Added attribute " + attr + " to " + mbean);
	}
950455
public Insert set(final CIAttribute _attr, final Object _value)
        throws EFapsException
    {
        return super.set(_attr.name, Converter.convert(_value));
    }
1034278
public OTAUpdateFile withAttributes(java.util.Map<String, String> attributes) {
        setAttributes(attributes);
        return this;
    }
1186783
public App withAttributes(java.util.Map<String, String> attributes) {
        setAttributes(attributes);
        return this;
    }
1371556
@Override
    protected String appendAttributeToQuery(final String queryBuilder, final String dataAttribute, final List<Object> queryValues) {
        if (queryBuilder != null) {
            return queryBuilder;
        }

        final String keyAttributeName;
        if (this.queryAttributeName != null) {
            keyAttributeName = this.queryAttributeName;
        } else {
            final IUsernameAttributeProvider usernameAttributeProvider = this.getUsernameAttributeProvider();
            keyAttributeName = usernameAttributeProvider.getUsernameAttribute();
        }

        if (keyAttributeName.equals(dataAttribute)) {
            return String.valueOf(queryValues.get(0));
        }

        return null;
    }
780214
public boolean printData(PrintWriter out, int iHtmlAttributes)
    {
        boolean bFieldsFound = false;
        Record recMenu = ((BaseMenuScreen)this.getScreenField()).getMainRecord();
        String strCellFormat = this.getHtmlString(recMenu);
        XMLParser parser = ((BaseMenuScreen)this.getScreenField()).getXMLParser(recMenu);
        parser.parseHtmlData(out, strCellFormat);
        parser.free();
        parser = null;
        return bFieldsFound;
    }
619279
public synchronized Filter addAttributes(Map<String, String> attributes) {
    for(Map.Entry<String, String> pair : attributes.entrySet()) {
      String key = pair.getKey();
      String value = pair.getValue();
      this.attributes.put(key, value);
    }
    return this;
  }
988669
public Attribute getAttribute4Attribute(final String _attributeName)
    {
        final OneSelect oneselect = this.attr2OneSelect.get(_attributeName);
        return oneselect == null ? null : oneselect.getAttribute();
    }
948786
private void registerMandatoryAttributes(Attributes attributes) {
    // see https://sourceforge.net/p/jerichohtml/discussion/350024/thread/501a7d05/
    Map<String, String> attrs = context.getMandatoryAttributes();
    if (!attrs.isEmpty()) {
      for (Entry<String, String> i : attrs.entrySet()) {
        String v = i.getValue();
        if (v == null) {
          outputDocument.insert(attributes.getBegin(), " " + i.getKey() + " ");
        } else {
          outputDocument.insert(attributes.getBegin(), " " + i.getKey() + "\"" + v + "\" ");
        }
      }
    }
  }
1286402
public Attribute attribute(final String _alias)
        throws EFapsException
    {
        initialize(true);
        Attribute ret = null;
        final Optional<Select> selectOpt = this.selection.getSelects()
                        .stream()
                        .filter(select -> _alias.equals(select.getAlias()))
                        .findFirst();
        if (selectOpt.isPresent()) {
            ret = attribute(selectOpt.get());
        }
        return ret;
    }
1018657
public AttributeQuery getAttributeQuery(final String _attributeName)
    {
        if (this.query == null) {
            try {
                final String attribute = getAttr4Select(_attributeName);
                this.query = new AttributeQuery(this.typeUUID, attribute.isEmpty() ? _attributeName : attribute)
                                    .setCompanyDependent(isCompanyDependent());
                prepareQuery();
            } catch (final EFapsException e) {
                QueryBuilder.LOG.error("Could not open AttributeQuery for uuid: {}", this.typeUUID);
            }
        }
        return (AttributeQuery) this.query;
    }
612226
public void addNotIn(String attribute, Query subQuery)
    {
		// PAW
		// addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getAlias()));
		addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getUserAlias(attribute)));
    }