org.quattor.pan.template
Enum Template.TemplateType
java.lang.Object
java.lang.Enum<Template.TemplateType>
org.quattor.pan.template.Template.TemplateType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Template.TemplateType>
- Enclosing class:
- Template
public static enum Template.TemplateType
- extends java.lang.Enum<Template.TemplateType>
An enumeration of the possible template types. An ordinary template can
contain any valid pan statements, an object template defines a machine
profile, a declaration template contains only function and type
declarations, and a structure template contains only relative paths.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ORDINARY
public static final Template.TemplateType ORDINARY
OBJECT
public static final Template.TemplateType OBJECT
DECLARATION
public static final Template.TemplateType DECLARATION
STRUCTURE
public static final Template.TemplateType STRUCTURE
UNIQUE
public static final Template.TemplateType UNIQUE
values
public static Template.TemplateType[] 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 (Template.TemplateType c : Template.TemplateType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Template.TemplateType 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
Copyright © 2011 Quattor. All Rights Reserved.