Package weka.core

Enum Capabilities.Capability

    • Method Detail

      • values

        public static Capabilities.Capability[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Capabilities.Capability c : Capabilities.Capability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Capabilities.Capability valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isAttribute

        public boolean isAttribute()
        returns true if the capability is an attribute
        Returns:
        true if the capability is an attribute
      • isClass

        public boolean isClass()
        returns true if the capability is a class
        Returns:
        true if the capability is a class
      • isAttributeCapability

        public boolean isAttributeCapability()
        returns true if the capability is an attribute capability
        Returns:
        true if the capability is an attribute capability
      • isOtherCapability

        public boolean isOtherCapability()
        returns true if the capability is a class capability
        Returns:
        true if the capability is a class capability
      • isClassCapability

        public boolean isClassCapability()
        returns true if the capability is a other capability
        Returns:
        true if the capability is a other capability
      • toString

        public java.lang.String toString()
        returns the display string of the capability
        Overrides:
        toString in class java.lang.Enum<Capabilities.Capability>
        Returns:
        the display string