Package weka.core

Examples of weka.core.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

   * @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;
    ArrayList<String>    values;
    ProtectedProperties  metadata;
    Vector    list;
    ArrayList<Attribute>    atts;
   
    result = null;
   
View Full Code Here

TOP

Related Classes of weka.core.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.