Examples of ElementImpl


Examples of org.apache.axiom.om.impl.dom.ElementImpl

    /** Creates an OMElement with the builder. */
    public OMElement createOMElement(String localName, OMNamespace ns,
                                     OMContainer parent, OMXMLParserWrapper builder) {
        switch (((ParentNode) parent).getNodeType()) {
            case Node.ELEMENT_NODE: // We are adding a new child to an elem
                ElementImpl parentElem = (ElementImpl) parent;
                ElementImpl elem = new ElementImpl((DocumentImpl) parentElem
                        .getOwnerDocument(), localName, (NamespaceImpl) ns,
                                             builder, this);
                parentElem.appendChild(elem);
                return elem;
            case Node.DOCUMENT_NODE:
                DocumentImpl docImpl = (DocumentImpl) parent;
                ElementImpl elem2 = new ElementImpl(docImpl, localName,
                                                    (NamespaceImpl) ns, builder, this);
                docImpl.appendChild(elem2);
                return elem2;

            case Node.DOCUMENT_FRAGMENT_NODE:
                DocumentFragmentImpl docFragImpl = (DocumentFragmentImpl) parent;
                return new ElementImpl((DocumentImpl) docFragImpl
                        .getOwnerDocument(), localName, (NamespaceImpl) ns,
                                             builder, this);
            default:
                throw new OMDOMException(
                        "The parent container can only be an ELEMENT, DOCUMENT " +
View Full Code Here

Examples of org.apache.axis2.om.impl.dom.ElementImpl

  public void setDocument(DocumentImpl document) {
    this.document = document;
  }
 
  public OMElement createOMElement(String localName, OMNamespace ns) {
    return new ElementImpl((DocumentImpl)this.createOMDocument(), localName, (NamespaceImpl)ns);
  }
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

        String localName,
        String qName,
        Attributes attributes)
        throws SAXException
    {
        ElementImpl element = constructElement(localName, attributes);

        push(element);
    }
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

    }

    private ElementImpl constructElement(String name, Attributes attributes)
    {
        ElementImpl result = new ElementImpl();
        result.setElementName(name);
        result.setLocation(getLocation());

        int count = attributes.getLength();
        for (int i = 0; i < count; i++)
        {
            Attribute a = new AttributeImpl(attributes.getLocalName(i), attributes.getValue(i));

            result.addAttribute(a);
        }

        if (_root == null)
            _root = result;
        else
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

{
    public void testPushAttributeRule()
    {
        MockControl control = newControl(SchemaProcessor.class);

        ElementImpl element = new ElementImpl();
        element.setElementName("myelement");

        Attribute attribute = new AttributeImpl("fred", "flintstone");

        element.addAttribute(attribute);

        PushAttributeRule rule = new PushAttributeRule();

        rule.setAttributeName("fred");
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

        new InterceptorDescriptor().toString();
        new ModuleImpl().toString();
        new RegistryImpl(null, Locale.ENGLISH).toString();
        new ContributionImpl().toString();
        new ConfigurationPointImpl().toString();
        new ElementImpl().toString();
        new AttributeImpl("foo", "bar").toString();
        new ServiceInterceptorContributionImpl().toString();
        new ServicePointImpl().toString();
        new InterceptorStackImpl(null, mockServicePoint, null).toString();
    }
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

        return result;
    }

    private Element forgeElement()
    {
        ElementImpl e = new ElementImpl();
        Location l = new LocationImpl(getResource("TestEnumerationTranslator.class"), 50);
        e.setLocation(l);

        return e;
    }
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

    }

    public void testBadClass() throws Exception
    {
        ObjectTranslator t = new ObjectTranslator();
        ElementImpl e = new ElementImpl();
        Location l = new LocationImpl(getResource("TestObjectTranslator.class"), 50);
        e.setLocation(l);

        MockControl c = newControl(Module.class);
        Module m = (Module) c.getMock();

        m.getClassResolver();
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

    }

    public void testPrivateObject() throws Exception
    {
        ObjectTranslator t = new ObjectTranslator();
        ElementImpl e = new ElementImpl();
        Location l = new LocationImpl(getResource("TestObjectTranslator.class"), 50);
        e.setLocation(l);

        MockControl c = newControl(Module.class);
        Module m = (Module) c.getMock();

        m.getClassResolver();
View Full Code Here

Examples of org.apache.hivemind.impl.ElementImpl

        new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();
        new SubModuleDescriptor().toString();
        new DependencyDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ElementImpl().toString();
        new AttributeImpl("foo", "bar").toString();
    }
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.