Package com.ads.api.beans.common
Enum Class Node.Depth
- All Implemented Interfaces:
Serializable,Comparable<Node.Depth>,Constable
- Enclosing class:
- Node
These constants are used to specify the Depth such as NAMES, NAMES_IDS,
DETAILS, DETAILS_DOCUMENTS, DETAILS_PROJECT_RESOURCES, ALL. The constants
of this enumerated type provides a simple classification of the declared
elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionALL is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, projectDocuments Details and projectResources Details.DETAILS is used when the Depth we want to retrieve is the names of the projects, projectIds along with the project details i.e
ProjectDescription, costCenter, projectSponserFullName, projectBusinessSponserFullName, projectOwnerFullName and auditHistory Details.DETAILS_DOCUMENTS is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, along with projectDocuments Details
i.e ProjectDocumentId, ProjectDocumentName, ProjectDocumentType, projectDocumentIntendedDescription, projectDocumentOwner, projectDocumentObject, projectDocumentOwner, projectDocumentStatus, projectDocumentsApprovalRequiredFlag, projectDocumentObjectLink.DETAILS_PROJECT_RESOURCES is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, along with projectResources Details
i.e projectResourcesAssignedRole, projectResourcesAssignedRespnsibilities, projectResourcesUserId, projectResourcesRoleId.NAMES is used when the Depth we want to retrieve is only the names of the projects.NAMES_IDS is used when the Depth we want to retrieve is the names of the projects along with the projectIds. -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.DepthReturns the depth of the specified value.static Node.DepthReturns the enum constant of this class with the specified name.static Node.Depth[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAMES
NAMES is used when the Depth we want to retrieve is only the names of the projects. -
NAMES_IDS
NAMES_IDS is used when the Depth we want to retrieve is the names of the projects along with the projectIds. -
DETAILS
DETAILS is used when the Depth we want to retrieve is the names of the projects, projectIds along with the project details i.e
ProjectDescription, costCenter, projectSponserFullName, projectBusinessSponserFullName, projectOwnerFullName and auditHistory Details. -
DETAILS_DOCUMENTS
DETAILS_DOCUMENTS is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, along with projectDocuments Details
i.e ProjectDocumentId, ProjectDocumentName, ProjectDocumentType, projectDocumentIntendedDescription, projectDocumentOwner, projectDocumentObject, projectDocumentOwner, projectDocumentStatus, projectDocumentsApprovalRequiredFlag, projectDocumentObjectLink. -
DETAILS_PROJECT_RESOURCES
DETAILS_PROJECT_RESOURCES is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, along with projectResources Details
i.e projectResourcesAssignedRole, projectResourcesAssignedRespnsibilities, projectResourcesUserId, projectResourcesRoleId. -
ALL
ALL is used when the Depth we want to retrieve is the names of the projects,projectIds, projectDetails, projectDocuments Details and projectResources Details.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDepth
Returns the depth of the specified value.
Depth has values NAMES, NAMES_IDS, DETAILS, DETAILS_DOCUMENTS, DETAILS_PROJECT_RESOURCES, ALL.- Parameters:
value- String- Returns:
- Depth Value
-