Package org.exist.util.serializer

Examples of org.exist.util.serializer.AttrList.addAttribute()


        attribs.addAttribute(THREAD_ATTRIB, Thread.currentThread().getName());
        attribs.addAttribute(NAME_ATTRIB, action.getClass().getName());
        attribs.addAttribute(ELAPSED_ATTRIB, Long.toString(elapsed));
        attribs.addAttribute(ID_ATTRIB, action.getId());
        if (action.getParent() != null && !(action.getParent() instanceof ActionThread))
            attribs.addAttribute(PARENT_ATTRIB, action.getParent().getId());
        if (action.getDescription() != null)
            attribs.addAttribute(DESCRIPTION_ATTRIB, action.getDescription());
        if (action.getLastResult() != null)
            attribs.addAttribute(RESULT_ATTRIB, action.getLastResult());
        try {
View Full Code Here


        attribs.addAttribute(ELAPSED_ATTRIB, Long.toString(elapsed));
        attribs.addAttribute(ID_ATTRIB, action.getId());
        if (action.getParent() != null && !(action.getParent() instanceof ActionThread))
            attribs.addAttribute(PARENT_ATTRIB, action.getParent().getId());
        if (action.getDescription() != null)
            attribs.addAttribute(DESCRIPTION_ATTRIB, action.getDescription());
        if (action.getLastResult() != null)
            attribs.addAttribute(RESULT_ATTRIB, action.getLastResult());
        try {
            serializer.startElement(ACTION_ELEMENT, attribs);
            if (message != null)
View Full Code Here

        if (action.getParent() != null && !(action.getParent() instanceof ActionThread))
            attribs.addAttribute(PARENT_ATTRIB, action.getParent().getId());
        if (action.getDescription() != null)
            attribs.addAttribute(DESCRIPTION_ATTRIB, action.getDescription());
        if (action.getLastResult() != null)
            attribs.addAttribute(RESULT_ATTRIB, action.getLastResult());
        try {
            serializer.startElement(ACTION_ELEMENT, attribs);
            if (message != null)
                serializer.characters(message);
            serializer.endElement(ACTION_ELEMENT);
View Full Code Here

        }
    }

    public synchronized void threadStarted(ActionThread thread) {
        AttrList attribs = new AttrList();
        attribs.addAttribute(NAME_ATTRIB, thread.getName());
        try {
            serializer.startElement(THREAD_ELEMENT, attribs);
            serializer.endElement(ACTION_ELEMENT);
        } catch (SAXException e) {
            e.printStackTrace();
View Full Code Here

        }
    }

    public synchronized void groupStart(Group group) {
        AttrList attribs = new AttrList();
        attribs.addAttribute(NAME_ATTRIB, group.getName());
        try {
            serializer.startElement(GROUP_ELEMENT, attribs);
        } catch (SAXException e) {
            e.printStackTrace();
        }
View Full Code Here

                            }

                            final AttrList attribs = new AttrList();
                            for( int j = 0; j < reader.getAttributeCount(); j++ ) {
                                final QName qn = new QName( reader.getAttributeLocalName( j ), reader.getAttributeNamespace( j ), reader.getAttributePrefix( j ) );
                                attribs.addAttribute( qn, reader.getAttributeValue( j ) );
                            }
                            receiver.startElement( new QName( reader.getLocalName(), reader.getNamespaceURI(), reader.getPrefix() ), attribs );
                            break;
                        }
View Full Code Here

        } catch (final TransformerConfigurationException e) {
            throw new SAXException(e.getMessage(), e);
        }
        setXSLHandler(null, false);
    final AttrList attrs = new AttrList();
    attrs.addAttribute(ATTR_HITS_QNAME, Integer.toString(seq.getItemCount()));
    attrs.addAttribute(ATTR_START_QNAME, Integer.toString(start));
    attrs.addAttribute(ATTR_COUNT_QNAME, Integer.toString(count));
    if (outputProperties.getProperty(PROPERTY_SESSION_ID) != null) {
            attrs.addAttribute(ATTR_SESSION_ID, outputProperties.getProperty(PROPERTY_SESSION_ID));
        }
View Full Code Here

            throw new SAXException(e.getMessage(), e);
        }
        setXSLHandler(null, false);
    final AttrList attrs = new AttrList();
    attrs.addAttribute(ATTR_HITS_QNAME, Integer.toString(seq.getItemCount()));
    attrs.addAttribute(ATTR_START_QNAME, Integer.toString(start));
    attrs.addAttribute(ATTR_COUNT_QNAME, Integer.toString(count));
    if (outputProperties.getProperty(PROPERTY_SESSION_ID) != null) {
            attrs.addAttribute(ATTR_SESSION_ID, outputProperties.getProperty(PROPERTY_SESSION_ID));
        }
    receiver.startDocument();
View Full Code Here

        }
        setXSLHandler(null, false);
    final AttrList attrs = new AttrList();
    attrs.addAttribute(ATTR_HITS_QNAME, Integer.toString(seq.getItemCount()));
    attrs.addAttribute(ATTR_START_QNAME, Integer.toString(start));
    attrs.addAttribute(ATTR_COUNT_QNAME, Integer.toString(count));
    if (outputProperties.getProperty(PROPERTY_SESSION_ID) != null) {
            attrs.addAttribute(ATTR_SESSION_ID, outputProperties.getProperty(PROPERTY_SESSION_ID));
        }
    receiver.startDocument();
    if(wrap) {
View Full Code Here

    final AttrList attrs = new AttrList();
    attrs.addAttribute(ATTR_HITS_QNAME, Integer.toString(seq.getItemCount()));
    attrs.addAttribute(ATTR_START_QNAME, Integer.toString(start));
    attrs.addAttribute(ATTR_COUNT_QNAME, Integer.toString(count));
    if (outputProperties.getProperty(PROPERTY_SESSION_ID) != null) {
            attrs.addAttribute(ATTR_SESSION_ID, outputProperties.getProperty(PROPERTY_SESSION_ID));
        }
    receiver.startDocument();
    if(wrap) {
      receiver.startPrefixMapping("exist", Namespaces.EXIST_NS);
      receiver.startElement(ELEM_RESULT_QNAME, attrs);
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.