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 StringgetName()StringgetPseudoFileName()Gets the data source as a pseudo file name (faux-file).StringgetRevision()StringgetSchema()StringgetSuffixFromType()Map the type to a file suffix associated with aLanguageStringgetType()voidsetName(String name)voidsetRevision(String revision)voidsetSchema(String schema)voidsetType(String type)StringtoString()
-
-
-
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.
-
-