net.sourceforge.pmd

Class SourceType

public final class SourceType extends Object implements Comparable<SourceType>

Enumeration of the types of source code.

Author: Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be

Field Summary
static SourceTypeJAVA_13
static SourceTypeJAVA_14
static SourceTypeJAVA_15
static SourceTypeJAVA_16
static SourceTypeJSP
Method Summary
intcompareTo(SourceType other)
booleanequals(Object other)
StringgetId()
static SourceTypegetSourceTypeForId(String id)
Get the SourceType for a certain Id.
inthashCode()
StringtoString()

Field Detail

JAVA_13

public static final SourceType JAVA_13

JAVA_14

public static final SourceType JAVA_14

JAVA_15

public static final SourceType JAVA_15

JAVA_16

public static final SourceType JAVA_16

JSP

public static final SourceType JSP

Method Detail

compareTo

public int compareTo(SourceType other)

equals

public boolean equals(Object other)

getId

public String getId()

getSourceTypeForId

public static SourceType getSourceTypeForId(String id)
Get the SourceType for a certain Id. Case insensitive.

Returns: null if not found

hashCode

public int hashCode()

toString

public String toString()