The HasChildrenResult Enumeration declares whether a given parent has children. The IPluginFactory.hasChildrenInRelation method returns HasChildrenResult objects.

public enum HasChildrenResult
extends java.lang.Enum<HasChildrenResult>
implements java.io.Serializable

The HasChildrenResult enumeration defines the following constants:

  • public static final HasChildrenResult Yes

  • public static final HasChildrenResult No

  • public static final HasChildrenResult Unknown

The HasChildrenResult enumeration defines the following methods:

Method

Returns

Description

getValue()

int

Returns one of the following values:

1

Parent has children

-1

Parent has no children

0

Unknown, or invalid parameter

valueOf(java.lang.String name)

static HasChildrenResult

Returns an enumeration constant of this type with the specified name. The String must match exactly an identifier used to declare an enumeration constant of this type. Do not use whitespace characters in the enumeration name.

values()

static HasChildrenResult[]

Returns an array containing the constants of this enumeration type, in the order they are declared. This method can iterate over constants as follows:

for (HasChildrenResult c :
HasChildrenResult.values()) System.out.println(c);

The HasChildrenResult enumeration inherits the following methods from class java.lang.Enum:

clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf