Package org.integratedmodelling.riskwiz.learning.data

Examples of org.integratedmodelling.riskwiz.learning.data.ProtectedProperties


     * @param parent  the attribute node
     * @return    the metadata, or null if none found
     * @throws Exception  if generation fails
     */
    protected ProtectedProperties createMetadata(Element parent) throws Exception {
        ProtectedProperties  result;
        Properties    props;
        Vector    list;
        Element    node;
        Element    metanode;
        int      i;
   
        result = null;
   
        // find metadata node directly underneath this attribute, but not in
        // deeper nested attributes (e.g., within relational attributes)
        metanode = null;
        list = getChildTags(parent, TAG_METADATA);
        if (list.size() > 0) {
            metanode = (Element) list.get(0);
        }
   
        // generate properties
        if (metanode != null) {
            props = new Properties();
            list = getChildTags(metanode, TAG_PROPERTY);
            for (i = 0; i < list.size(); i++) {
                node = (Element) list.get(i);
                props.setProperty(node.getAttribute(ATT_NAME), getContent(node));
            }
            result = new ProtectedProperties(props);
        }
   
        return result;
    }
View Full Code Here


        String    typeStr;
        String    name;
        int      type;
        Attribute    result;
        FastVector    values;
        ProtectedProperties  metadata;
        Vector    list;
        FastVector    atts;
   
        result = null;
   
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.learning.data.ProtectedProperties

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.