Package electric.xml

Examples of electric.xml.Element


        return obj instanceof Namespace;
    }

    public String getElementName(Object obj)
    {
        Element elem = (Element) obj;

        return elem.getName();
    }
View Full Code Here


        return elem.getName();
    }

    public String getElementNamespaceUri(Object obj)
    {
        Element elem = (Element) obj;
       
        return elem.getNamespace();
    }
View Full Code Here

    public Iterator getNamespaceAxisIterator(Object contextNode)
    {
        if ( contextNode instanceof Element )
        {
            Element elem = (Element) contextNode;
            Map nsMap = new HashMap();

            Element current = elem;

            while ( current != null ) {
                Dictionary namespaces = current.getNamespaces();

                if ( namespaces != null ) {
                    Enumeration keys = namespaces.keys();
                   
                    while ( keys.hasMoreElements() ) {
                       
                        String prefix = (String)keys.nextElement();
                        if ( !nsMap.containsKey(prefix) ) {

                            String uri = (String)namespaces.get(prefix);
                            nsMap.put( prefix,
                                       new Namespace(elem, prefix, uri) );
                        }
                    }
                }
                Parent parent = current.getParent();
                if ( parent instanceof Element )
                    current = (Element)parent;
                else
                    break;
            }
View Full Code Here

        if ( ! ( contextNode instanceof Element ) )
        {
            return null;
        }

        Element elem = (Element) contextNode;

        return new AttributesIterator( elem.getAttributes() );
    }
View Full Code Here

        if ( contextNode instanceof Document )
        {
            return contextNode;
        }

        Element elem = (Element) contextNode;

        return elem.getDocument();
    }
View Full Code Here

        return elem.getDocument();
    }

    public String getElementQName(Object obj)
    {
        Element elem = (Element) obj;

        return elem.getQName();
    }
View Full Code Here

        return attr.getValue();
    }

    public String getElementStringValue(Object obj)
    {
        Element elem = (Element) obj;

        return getStringValue( elem );
    }
View Full Code Here

        return cmt.getString();
    }

    public String translateNamespacePrefixToUri(String prefix, Object context)
    {
        Element element = null;

        if ( context instanceof Element )
        {
            element = (Element) context;
        }

        if ( element != null )
        {
            return element.getNamespace( prefix );
        }

        return null;
    }
View Full Code Here

                    {
                        messageContext.setProperty(BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, txContext) ;
                    }
                }

                final Element soapHeaderElement = soapMessage.getHeaderElement(CoordinationConstants.WSCOOR_NAMESPACE, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT) ;

                if (soapHeaderElement != null)
                {
                    final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
View Full Code Here

    {
      if (soapMessage != null)
      {
            try
            {
                final Element soapHeaderElement = soapMessage.getHeaderElement(CoordinationConstants.WSCOOR_NAMESPACE,
                        CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT) ;
                if (soapHeaderElement != null)
                {
                    final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
                    final String coordinationType = cc.getCoordinationType().getValue() ;
View Full Code Here

TOP

Related Classes of electric.xml.Element

Copyright © 2018 www.massapicom. 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.