/** * Tell if any of the bits of interest are set for a named attribute type. * * @param name non-null reference to attribute name, in any case. * @param flags flag mask. * @return true if any of the flags are set for the named attribute. */ public boolean isAttrFlagSet(String name, int flags) { return (null != m_attrs) ? ((m_attrs.getIgnoreCase(name) & flags) != 0) : false; }
/** * Set an attribute name and it's bit properties. * * @param name non-null name of attribute, in upper case. * @param flags flag bits. */ void setAttr(String name, int flags) { if (null == m_attrs) m_attrs = new StringToIntTable(); m_attrs.put(name, flags); }