Class ConvertToARFF.IdAttribute

  • All Implemented Interfaces:
    ConvertToARFF.Attribute
    Enclosing class:
    ConvertToARFF

    public static class ConvertToARFF.IdAttribute
    extends java.lang.Object
    implements ConvertToARFF.Attribute
    An attribute that just gives each instance a unique id. The application name is prepended, so each unique id really unique, even across applications. Obviously, this attribute shouldn't be used as input to a learning algorithm.

    Uses the Element's uid attribute if it has one.

    • Constructor Summary

      Constructors 
      Constructor Description
      IdAttribute()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getInstanceValue​(org.dom4j.Element element, java.lang.String appName)  
      java.lang.String getName()  
      java.lang.String getRange()  
      void scan​(org.dom4j.Element element, java.lang.String appName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdAttribute

        public IdAttribute()
    • Method Detail

      • scan

        public void scan​(org.dom4j.Element element,
                         java.lang.String appName)
                  throws edu.umd.cs.findbugs.ml.ConvertToARFF.MissingNodeException
        Specified by:
        scan in interface ConvertToARFF.Attribute
        Throws:
        edu.umd.cs.findbugs.ml.ConvertToARFF.MissingNodeException
      • getInstanceValue

        public java.lang.String getInstanceValue​(org.dom4j.Element element,
                                                 java.lang.String appName)
                                          throws edu.umd.cs.findbugs.ml.ConvertToARFF.MissingNodeException
        Specified by:
        getInstanceValue in interface ConvertToARFF.Attribute
        Throws:
        edu.umd.cs.findbugs.ml.ConvertToARFF.MissingNodeException