Class SourceObject

java.lang.Object
net.sourceforge.pmd.util.database.SourceObject

public class SourceObject extends Object
Instantiate the fields required to retrieve the source code.
Author:
sturton
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 a Language
      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.