Package org.xml.sax.helpers

Examples of org.xml.sax.helpers.AttributeListImpl.addAttribute()


        atts.addAttribute("property", "CDATA", col.getProperty());
        if (col.getPrefix() != null)
          atts.addAttribute("prefix", "CDATA", col.getPrefix());
        // FIXME: cleaner really requires object support ... :-(
        if (col.getCleaner() != null)
          atts.addAttribute("cleaner", "CDATA", col.getCleaner().getClass().getName());
        if (col.isSplit())
          atts.addAttribute("split-on", "CDATA", col.getSplitOn());

        pp.startElement("column", atts);
        pp.endElement("column");
View Full Code Here


          atts.addAttribute("prefix", "CDATA", col.getPrefix());
        // FIXME: cleaner really requires object support ... :-(
        if (col.getCleaner() != null)
          atts.addAttribute("cleaner", "CDATA", col.getCleaner().getClass().getName());
        if (col.isSplit())
          atts.addAttribute("split-on", "CDATA", col.getSplitOn());

        pp.startElement("column", atts);
        pp.endElement("column");
      }
    }
View Full Code Here

            for (int x=0; x<this.undecl.size(); x++) {
                NamespacesTable.Declaration dec=null;
                dec=(NamespacesTable.Declaration)this.undecl.elementAt(x);
                String aname="xmlns";
                if (dec.getPrefix().length()>0) aname="xmlns:"+dec.getPrefix();
                a2.addAttribute(aname,"CDATA",dec.getUri());
            }
            this.undecl.clear();
        }
        // Set the real attributes
        for (int x=0; x<a.getLength(); x++) {
View Full Code Here

        for (int x=0; x<a.getLength(); x++) {
            NamespacesTable.Name aname=namespaces.resolve(a.getURI(x),
                                                          a.getQName(x),
                                                          null,
                                                          a.getLocalName(x));
            a2.addAttribute(aname.getQName(),a.getType(x),a.getValue(x));
        }
        // Call the document handler startElement() method.
        this.documentHandler.startElement(name.getQName(),a2);
    }
View Full Code Here

  leaveSchema();
  enterDirectory();

  // dsml:entry dn
  attrList = new AttributeListImpl();
  attrList.addAttribute( XML.Entries.Attributes.DN, "CDATA", entry.getDN() );
  // dsml:entry
  _docHandler.startElement( prefix( XML.Entries.Elements.Entry ), attrList );
 
  attrSet = entry.getAttributeSet();
  if ( attrSet != null ) {
View Full Code Here

    // dsml:attr
    attr = (LDAPAttribute) enumeration.nextElement();
    if ( attr.getName().equals( "objectclass" ) )
        continue;
    attrList = new AttributeListImpl();
    attrList.addAttribute( XML.Entries.Attributes.Name, "CDATA", attr.getName() );
    _docHandler.startElement( prefix( XML.Entries.Elements.Attribute ), attrList );
   
    values = attr.getByteValues();
    while ( values.hasMoreElements() ) {
        char[] chars;
View Full Code Here

          MimeBase64Encoder encoder;
         
          encoder = new MimeBase64Encoder();
          encoder.translate( value );
          chars = encoder.getCharArray();
          attrList.addAttribute( XML.Entries.Attributes.Encoding, "NMTOKEN",
               XML.Entries.Attributes.Encodings.Base64 );
      }
        }

        _docHandler.startElement( prefix( XML.Entries.Elements.Value ), attrList );
View Full Code Here

  leaveDirectory();
  enterSchema();
 
  attrList = new AttributeListImpl();
  // dsml:class id
  attrList.addAttribute( XML.Schema.Attributes.Id, "ID", schema.getName() );
  // dsml:class superior
  superiors = schema.getSuperiors();
  superior = null;
  for ( i = 0 ; i < superiors.length ; ++i ) {
      if ( i == 0 )
View Full Code Here

    superior = superiors[ i ];
      else
    superior = superior + "," + superiors[ i ];
  }
  if ( i > 0 )
      attrList.addAttribute( XML.Schema.Attributes.Superior, "CDATA", superior );
  // dsml:class obsolete
  attrList.addAttribute( XML.Schema.Attributes.Obsolete, null,
             schema.isObsolete() ? "true" : "false" );
  // dsml:class type
  switch ( schema.getType() ) {
View Full Code Here

    superior = superior + "," + superiors[ i ];
  }
  if ( i > 0 )
      attrList.addAttribute( XML.Schema.Attributes.Superior, "CDATA", superior );
  // dsml:class obsolete
  attrList.addAttribute( XML.Schema.Attributes.Obsolete, null,
             schema.isObsolete() ? "true" : "false" );
  // dsml:class type
  switch ( schema.getType() ) {
  case LDAPObjectClassSchema.STRUCTURAL:
      attrList.addAttribute( XML.Schema.Attributes.Type, null,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.