code: public void ifHasName(String template, Properties attributes) throws XDocletException
      {
          String name =  getDefForLevel(attributes.getProperty(ATTRIBUTE_LEVEL)).getName();
  
          if ((name != null) && (name.length() > 0))
          {
              generate(template);
          }
      }
docs: Processes the template if the current object on the specified level has a non-empty name.
  
  @param attributes            The attributes of the tag
  @return                      The property value
  @exception XDocletException  If an error occurs
  @doc.tag                     type="block"
  @doc.param                   name="level" optional="false" description="The level for the current object"
  values="class,field,reference,collection"