Package org.apache.hivemind

Examples of org.apache.hivemind.Attribute


        Map map = new HashMap();
        int count = l.size();

        for (int i = 0; i < count; i++)
        {
            Attribute a = (Attribute) l.get(i);
            map.put(a.getName(), a.getValue());
        }

        if (attributes == null)
            count = 0;
        else
View Full Code Here


        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)
View Full Code Here

        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();
View Full Code Here

        Map map = new HashMap();
        int count = l.size();

        for (int i = 0; i < count; i++)
        {
            Attribute a = (Attribute) l.get(i);
            map.put(a.getName(), a.getValue());
        }

        if (attributes == null)
            count = 0;
        else
View Full Code Here

        List attributes = parameter.getAttributes();

        for (Iterator i = attributes.iterator(); i.hasNext();)
        {
            Attribute attribute = (Attribute) i.next();

            element.setAttribute(attribute.getName(), attribute.getValue());
        }

        List elements = parameter.getElements();

        for (Iterator i = elements.iterator(); i.hasNext();)
View Full Code Here

        Map map = new HashMap();
        int count = l.size();

        for (int i = 0; i < count; i++)
        {
            Attribute a = (Attribute) l.get(i);
            map.put(a.getName(), a.getValue());
        }

        if (attributes == null)
            count = 0;
        else
View Full Code Here

        Set required = new HashSet(_requiredAttributes);
        List errors = new ArrayList();

        for (int i = 0; i < count; i++)
        {
            Attribute a = (Attribute) l.get(i);
            String name = a.getName();

            if (!_knownAttributes.contains(name))
                errors.add(XmlImplMessages.unknownAttribute(name));

            required.remove(name);
View Full Code Here

        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();
View Full Code Here

            Map.Entry entry = (Map.Entry) i.next();

            String name = (String) entry.getKey();
            String value = (String) entry.getValue();

            Attribute a = new AttributeImpl(name, value);

            result.addAttribute(a);
        }

        return result;
View Full Code Here

        Set required = new HashSet(_requiredAttributes);
        List errors = new ArrayList();

        for (int i = 0; i < count; i++)
        {
            Attribute a = (Attribute) l.get(i);
            String name = a.getName();

            if (!_knownAttributes.contains(name))
                errors.add(ImplMessages.unknownAttribute(name));

            checkUniquness(name, a.getValue(), element.getLocation(), errors);

            required.remove(name);
        }

        Iterator it = required.iterator();
View Full Code Here

TOP

Related Classes of org.apache.hivemind.Attribute

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.