Package net.sf.archimede.model.metadata

Examples of net.sf.archimede.model.metadata.ValueElementImpl


public class ConversionUtil {
    public static Element createValueElement(String title, String value, Metadata metadata, Element rootElement) {
        Element element = new DefaultElementImpl(metadata, rootElement);
        element.setName(title);
        List elementValues = new ArrayList();
        Element valueElement = new ValueElementImpl(metadata, element);
        //Attributes
        List attributes = new ArrayList();
        Attribute attribute = AttributeImpl.createValueAttributeInstance(element, AttributeTypeEnum.STRING_TYPE);
        attribute.setValue(value);
        attributes.add(attribute);
        valueElement.setAttributes(attributes);
        elementValues.add(valueElement);
        element.setElements(elementValues);
       
        return element;
    }
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.metadata.ValueElementImpl

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.