net.sourceforge.pmd.util.database
Class SourceObject

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

public class SourceObject
extends Object

Instantiate the fields required to retrieve SourceCode.

Author:
sturton

Method Summary
 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 a Language
 String getType()
           
 void setName(String name)
           
 void setRevision(String revision)
           
 void setSchema(String schema)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.



Copyright © 2002-2015 InfoEther. All Rights Reserved.