Package org.tentackle.wurblet
Enum Class WurbletArgumentType
- All Implemented Interfaces:
Serializable,Comparable<WurbletArgumentType>,Constable
The type of a
WurbletArgument.- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether anAttributeis allowed.booleanReturns whether anAttributemay be given optionally.booleanReturns whether anAttributeis required.booleanReturns whether the name of the method argument is optional.booleanReturns whether aRelationpath is allowed.booleanReturns whether aRelationpath may be given optionally.booleanReturns whether aRelationpath is required.booleanReturns whether the relop is optional.static WurbletArgumentTypeReturns the enum constant of this class with the specified name.static WurbletArgumentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isPathOptional
public boolean isPathOptional()Returns whether aRelationpath may be given optionally.- Returns:
- true if optional, false if none or required
-
isPathRequired
public boolean isPathRequired()Returns whether aRelationpath is required.- Returns:
- true if must be given, false if not allowed or optional
-
isPathAllowed
public boolean isPathAllowed()Returns whether aRelationpath is allowed.- Returns:
- true if optional or required
-
isAttributeOptional
public boolean isAttributeOptional()Returns whether anAttributemay be given optionally.- Returns:
- true if optional, false if not allowed or required
-
isAttributeRequired
public boolean isAttributeRequired()Returns whether anAttributeis required.- Returns:
- true if must be given, false if none or optional
-
isAttributeAllowed
public boolean isAttributeAllowed()Returns whether anAttributeis allowed.- Returns:
- true if optional or required
-
isNameOptional
public boolean isNameOptional()Returns whether the name of the method argument is optional.- Returns:
- true if optional, false if not allowed
-
isRelopOptional
public boolean isRelopOptional()Returns whether the relop is optional.- Returns:
- true if optional, false if not allowed
-