org.quattor.pan.repository
Enum SourceType

java.lang.Object
  extended by java.lang.Enum<SourceType>
      extended by org.quattor.pan.repository.SourceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SourceType>

public enum SourceType
extends java.lang.Enum<SourceType>

Source files are either a pan language template or a text file.

Author:
loomis

Enum Constant Summary
ABSENT_SOURCE
           
ABSENT_TEXT
           
PAN
           
PANX
           
TEXT
           
TPL
           
 
Method Summary
 java.lang.String getExtension()
           
static java.util.List<java.lang.String> getExtensions()
           
static boolean hasSourceFileExtension(java.lang.String filename)
           
 boolean isAbsent()
           
 boolean isSource()
           
static SourceType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SourceType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

PAN

public static final SourceType PAN

PANX

public static final SourceType PANX

TPL

public static final SourceType TPL

TEXT

public static final SourceType TEXT

ABSENT_SOURCE

public static final SourceType ABSENT_SOURCE

ABSENT_TEXT

public static final SourceType ABSENT_TEXT
Method Detail

values

public static SourceType[] 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 (SourceType c : SourceType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SourceType 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

isSource

public boolean isSource()

isAbsent

public boolean isAbsent()

getExtension

public java.lang.String getExtension()

getExtensions

public static java.util.List<java.lang.String> getExtensions()

hasSourceFileExtension

public static boolean hasSourceFileExtension(java.lang.String filename)


Copyright © 2011 Quattor. All Rights Reserved.