Class SourceObject
- java.lang.Object
-
- net.sourceforge.pmd.util.database.SourceObject
-
public class SourceObject extends Object
Instantiate the fields required to retrieveSourceCode
.- Author:
- sturton
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getPseudoFileName()
Gets the data source as a pseudo file name (faux-file).String
getRevision()
String
getSchema()
String
getSuffixFromType()
Map the type to a file suffix associated with aLanguage
String
getType()
void
setName(String name)
void
setRevision(String revision)
void
setSchema(String schema)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
getSchema
public String getSchema()
- Returns:
- the schema
-
setSchema
public void setSchema(String schema)
- Parameters:
schema
- the schema to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
getType
public String getType()
- Returns:
- the type
-
setType
public void setType(String type)
- Parameters:
type
- the type to set
-
getRevision
public String getRevision()
- Returns:
- the revision
-
setRevision
public void setRevision(String revision)
- Parameters:
revision
- the revision to set
-
getSuffixFromType
public String getSuffixFromType()
Map the type to a file suffix associated with aLanguage
- Returns:
- inferred suffix
-
getPseudoFileName
public 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.
-
-