Enum VendorOptions
- java.lang.Object
-
- java.lang.Enum<VendorOptions>
-
- org.hortonmachine.gears.utils.style.VendorOptions
-
- All Implemented Interfaces:
Serializable,Comparable<VendorOptions>
public enum VendorOptions extends Enum<VendorOptions>
Enumeration of possible vendor options.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VENDOROPTION_AUTOWRAPVENDOROPTION_FOLLOWLINEVENDOROPTION_MAXANGLEDELTAVENDOROPTION_MAXDISPLACEMENTVENDOROPTION_OTHERVENDOROPTION_REPEATVENDOROPTION_SPACEAROUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static VendorOptionstoVendorOption(String defString)Return the vendoroption based on the definition string.static VendorOptionsvalueOf(String name)Returns the enum constant of this type with the specified name.static VendorOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VENDOROPTION_MAXDISPLACEMENT
public static final VendorOptions VENDOROPTION_MAXDISPLACEMENT
-
VENDOROPTION_AUTOWRAP
public static final VendorOptions VENDOROPTION_AUTOWRAP
-
VENDOROPTION_SPACEAROUND
public static final VendorOptions VENDOROPTION_SPACEAROUND
-
VENDOROPTION_REPEAT
public static final VendorOptions VENDOROPTION_REPEAT
-
VENDOROPTION_MAXANGLEDELTA
public static final VendorOptions VENDOROPTION_MAXANGLEDELTA
-
VENDOROPTION_FOLLOWLINE
public static final VendorOptions VENDOROPTION_FOLLOWLINE
-
VENDOROPTION_OTHER
public static final VendorOptions VENDOROPTION_OTHER
-
-
Method Detail
-
values
public static VendorOptions[] 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 (VendorOptions c : VendorOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VendorOptions valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toVendorOption
public static VendorOptions toVendorOption(String defString)
Return the vendoroption based on the definition string.- Parameters:
defString- the option definition string.- Returns:
- the
VendorOptionsor null.
-
toString
public String toString()
- Overrides:
toStringin classEnum<VendorOptions>
-
-