org.sonar.api.database.model
Class ResourceModel

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.database.model.ResourceModel
All Implemented Interfaces:
Cloneable

public class ResourceModel
extends BaseIdentifiable
implements Cloneable


Field Summary
static int DESCRIPTION_COLUMN_SIZE
           
static int KEY_SIZE
           
static int NAME_COLUMN_SIZE
           
static String QUALIFIER_PROJECT_TRUNK
           
static String SCOPE_PROJECT
           
 
Constructor Summary
ResourceModel()
           
ResourceModel(String scope, String key, String qualifier, Integer rootId, String name)
           
 
Method Summary
static ResourceModel build(Resource resource)
           
 Object clone()
           
 boolean equals(Object obj)
           
 Integer getCopyResourceId()
           
 String getDescription()
           
 Boolean getEnabled()
           
 String getKey()
           
 String getLanguageKey()
           
 String getName()
           
 ProjectLink getProjectLink(String key)
           
 List<ProjectLink> getProjectLinks()
           
 String getQualifier()
           
 Integer getRootId()
           
 RulesProfile getRulesProfile()
           
 String getScope()
           
 int hashCode()
           
 void setCopyResourceId(Integer copyResourceId)
           
 void setDescription(String description)
           
 void setEnabled(Boolean enabled)
           
 void setKey(String key)
           
 void setLanguageKey(String lang)
           
 void setName(String name)
           
 void setProjectLinks(List<ProjectLink> projectLinks)
           
 void setQualifier(String qualifier)
           
 void setRootId(Integer rootId)
           
 void setRulesProfile(RulesProfile rulesProfile)
           
 void setScope(String scope)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCOPE_PROJECT

public static final String SCOPE_PROJECT
See Also:
Constant Field Values

QUALIFIER_PROJECT_TRUNK

public static final String QUALIFIER_PROJECT_TRUNK
See Also:
Constant Field Values

DESCRIPTION_COLUMN_SIZE

public static final int DESCRIPTION_COLUMN_SIZE
See Also:
Constant Field Values

NAME_COLUMN_SIZE

public static final int NAME_COLUMN_SIZE
See Also:
Constant Field Values

KEY_SIZE

public static final int KEY_SIZE
See Also:
Constant Field Values
Constructor Detail

ResourceModel

public ResourceModel()

ResourceModel

public ResourceModel(String scope,
                     String key,
                     String qualifier,
                     Integer rootId,
                     String name)
Method Detail

getProjectLinks

public List<ProjectLink> getProjectLinks()

setProjectLinks

public void setProjectLinks(List<ProjectLink> projectLinks)

getProjectLink

public ProjectLink getProjectLink(String key)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getName

public String getName()

setName

public void setName(String name)

getEnabled

public Boolean getEnabled()

setEnabled

public void setEnabled(Boolean enabled)

getScope

public String getScope()

setScope

public void setScope(String scope)

getKey

public String getKey()

getLanguageKey

public String getLanguageKey()

setLanguageKey

public void setLanguageKey(String lang)

getCopyResourceId

public Integer getCopyResourceId()

setCopyResourceId

public void setCopyResourceId(Integer copyResourceId)

setKey

public void setKey(String key)

getRootId

public Integer getRootId()

setRootId

public void setRootId(Integer rootId)

getRulesProfile

public RulesProfile getRulesProfile()

setRulesProfile

public void setRulesProfile(RulesProfile rulesProfile)

getQualifier

public String getQualifier()

setQualifier

public void setQualifier(String qualifier)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Overrides:
clone in class Object

build

public static ResourceModel build(Resource resource)


Copyright © 2009 SonarSource SA. All Rights Reserved.