Class SourceObject
- java.lang.Object
-
- net.sourceforge.pmd.util.database.SourceObject
-
public class SourceObject extends java.lang.Object
Instantiate the fields required to retrieveSourceCode
.- Author:
- sturton
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
getPseudoFileName()
Gets the data source as a pseudo file name (faux-file).java.lang.String
getRevision()
java.lang.String
getSchema()
java.lang.String
getSuffixFromType()
Map the type to a file suffix associated with aLanguage
java.lang.String
getType()
void
setName(java.lang.String name)
void
setRevision(java.lang.String revision)
void
setSchema(java.lang.String schema)
void
setType(java.lang.String type)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSchema
public java.lang.String getSchema()
- Returns:
- the schema
-
setSchema
public void setSchema(java.lang.String schema)
- Parameters:
schema
- the schema to set
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
-
getType
public java.lang.String getType()
- Returns:
- the type
-
setType
public void setType(java.lang.String type)
- Parameters:
type
- the type to set
-
getRevision
public java.lang.String getRevision()
- Returns:
- the revision
-
setRevision
public void setRevision(java.lang.String revision)
- Parameters:
revision
- the revision to set
-
getSuffixFromType
public java.lang.String getSuffixFromType()
Map the type to a file suffix associated with aLanguage
- Returns:
- inferred suffix
-
getPseudoFileName
public java.lang.String getPseudoFileName()
Gets the data source as a pseudo file name (faux-file). Adding a suffix matching the source object type ensures that the appropriate language parser is used.
-
-