public void write(XMLStreamWriter writer, String xmlElementName) throws XMLStreamException {
      if (isModified()) {
         writer.writeStartElement(xmlElementName);
         write(writer);
         writer.writeEndElement();
      }
   }
public void write ( XMLStreamWriter writer , String xmlElementName ) throws XMLStreamException { if ( isModified ( ) ) { writer . writeStartElement ( xmlElementName ) ; write ( writer ) ; writer . writeEndElement ( ) ; } }
Writes this attributeset to the specified XMLStreamWriter as an element
@param writer