public class Resource extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ResourceKey |
key |
protected String |
name |
protected Resource |
parent |
static String |
ROOT_FOLDER_NAME |
Constructor and Description |
---|
Resource(ResourceType type,
String id) |
Resource(ResourceType type,
String id,
Resource parent) |
Resource(ResourceType type,
String id,
String name) |
Resource(ResourceType type,
String id,
String name,
Resource parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<Resource> |
getChildren() |
String |
getId() |
ResourceKey |
getKey() |
String |
getName() |
Resource |
getParent() |
String |
getPath() |
ResourceType |
getType() |
int |
hashCode() |
boolean |
isFolder() |
boolean |
isQuery() |
boolean |
isQueryFolder() |
boolean |
isResource() |
boolean |
isView() |
boolean |
isViewFolder() |
void |
setChildren(Set<Resource> children) |
void |
setName(String name) |
void |
setParent(Resource parent) |
String |
toString() |
public static final String ROOT_FOLDER_NAME
protected ResourceKey key
protected String name
protected Resource parent
public Resource(ResourceType type, String id)
public Resource(ResourceType type, String id, Resource parent)
public Resource(ResourceType type, String id, String name)
public Resource(ResourceType type, String id, String name, Resource parent)
public ResourceKey getKey()
public String getId()
public ResourceType getType()
public String getName()
public void setName(String name)
public void setParent(Resource parent)
public Resource getParent()
public String getPath()
public boolean isViewFolder()
public boolean isQueryFolder()
public boolean isView()
public boolean isQuery()
public boolean isResource()
public boolean isFolder()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.