code: public boolean isType(final String t) {
          final String dt = decode(t);
          if (dt.equals(getType())) {
              return true;
          }
          return "attribute".equals(getType())
                  && dt.equalsIgnoreCase(getString());
      }
docs: Check this object against a sought after type string.
  
  @param t type we want to match
  @return true if this object matches