org.sonar.api.database.model
Class ResourceModel
java.lang.Object
org.sonar.api.database.BaseIdentifiable
org.sonar.api.database.model.ResourceModel
- All Implemented Interfaces:
- Cloneable
public class ResourceModel
- extends BaseIdentifiable
- implements Cloneable
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
ResourceModel
public ResourceModel()
ResourceModel
public ResourceModel(String scope,
String key,
String qualifier,
Integer rootId,
String name)
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.