public enum CommentType extends Enum<CommentType>
| Enum Constant and Description |
|---|
COMMENT
Default comment type.
|
POST
Forum thread post comment type.
|
| Modifier and Type | Method and Description |
|---|---|
static CommentType |
fromParentType(String parentType)
Get comment type from parent document type.
|
String |
getParentType()
Getter for parentType.
|
String |
getSchema()
Getter for schema.
|
String |
getType()
Getter for type.
|
static CommentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentType COMMENT
public static final CommentType POST
public static CommentType[] values()
for (CommentType c : CommentType.values()) System.out.println(c);
public static CommentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CommentType fromParentType(String parentType)
parentType - parent document typepublic String getType()
public String getParentType()
public String getSchema()
Copyright © 2024. All rights reserved.