Package com.volantis.mcs.eclipse.common.odom

Examples of com.volantis.mcs.eclipse.common.odom.ODOMFactory.element()


                            POLICY_DEFINITION_KEYWORD_ELEMENT_NAME,
                        namespace);
            ODOMFactory factory = context.getODOMFactory();
            Object[] keywords = selectionValueBuilder.getItems();
            for (int i=0; i<keywords.length; i++) {
                Element keyword = factory.element(
                            DeviceRepositorySchemaConstants.
                                POLICY_DEFINITION_KEYWORD_ELEMENT_NAME,
                            namespace);
                keyword.addContent(factory.text((String) keywords[i]));
                selectionElement.addContent(keyword);
View Full Code Here


     * @return the policy element with an appropriate default value
     */
    private Element createPolicyElement(final PolicyType policyType) {
        final JDOMFactory factory = new ODOMFactory();

        final Element policiesElement = factory.element(
                DeviceRepositorySchemaConstants.POLICIES_ELEMENT_NAME,
                DEVICE_NS);
        policyType.addDefaultPolicyValue(policiesElement,
                "myPolicy", factory, null);

View Full Code Here

                String sName = DeviceRepositorySchemaConstants.STANDARD_ELEMENT_NAME;

                ODOMElement e = (ODOMElement) manager.retrieveDeviceIdentification("PC");
                //create a standard element and add it to the device identification
                ODOMElement standard = (ODOMElement) jdomFactory.element(sName,
                        e.getNamespace());
                e.addContent(standard);

                List children = e.getChildren();
                Object[] childArray = children.toArray();
View Full Code Here

                String sName = DeviceRepositorySchemaConstants.STANDARD_ELEMENT_NAME;

                ODOMElement e = (ODOMElement) manager.retrieveDeviceIdentification("PC");
                // create a standard element
                ODOMElement standard = (ODOMElement) jdomFactory.element(sName,
                        e.getNamespace());
                //add to the element
                e.addContent(standard);

                List children = e.getChildren();
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.