Package org.silverpeas.core.cmis.model
Enum TypeId
- java.lang.Object
-
- java.lang.Enum<TypeId>
-
- org.silverpeas.core.cmis.model.TypeId
-
- All Implemented Interfaces:
Serializable
,Comparable<TypeId>
public enum TypeId extends Enum<TypeId>
A CMIS type representing a type of a resource in Silverpeas. Each of these Silverpeas specific CMIS type is related to a basic CMIS type.- Author:
- mmoquillon
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SILVERPEAS_APPLICATION
The CMIS object represents a Silverpeas application.SILVERPEAS_DOCUMENT
The CMIS object represents a document in a Silverpeas application.SILVERPEAS_FOLDER
The CMIS object represents a folder of user contributions in a Silverpeas application.SILVERPEAS_PUBLICATION
The CMIS object represents a publication in a Silverpeas application.SILVERPEAS_SPACE
The CMIS object represents a Silverpeas space.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeId
fromValue(String v)
Gets the instance of theTypeId
enumeration from the specified qualified name of a Silverpeas custom type in CMIS.org.apache.chemistry.opencmis.commons.enums.BaseTypeId
getBaseTypeId()
Gets the base CMIS type from which this type is derived.String
toString()
String
value()
Gets the qualified name of this type in CMIS.static TypeId
valueOf(String name)
Returns the enum constant of this type with the specified name.static TypeId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SILVERPEAS_SPACE
public static final TypeId SILVERPEAS_SPACE
The CMIS object represents a Silverpeas space.
-
SILVERPEAS_APPLICATION
public static final TypeId SILVERPEAS_APPLICATION
The CMIS object represents a Silverpeas application.
-
SILVERPEAS_FOLDER
public static final TypeId SILVERPEAS_FOLDER
The CMIS object represents a folder of user contributions in a Silverpeas application.
-
SILVERPEAS_PUBLICATION
public static final TypeId SILVERPEAS_PUBLICATION
The CMIS object represents a publication in a Silverpeas application.
-
SILVERPEAS_DOCUMENT
public static final TypeId SILVERPEAS_DOCUMENT
The CMIS object represents a document in a Silverpeas application.
-
-
Method Detail
-
values
public static TypeId[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeId c : TypeId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeId valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
Gets the qualified name of this type in CMIS.- Returns:
- a String representation of this type in CMIS.
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
Gets the base CMIS type from which this type is derived.- Returns:
- a
BaseTypeId
enumeration value defining the base CMIS type of this type.
-
fromValue
public static TypeId fromValue(String v)
Gets the instance of theTypeId
enumeration from the specified qualified name of a Silverpeas custom type in CMIS. If the given name isn't known, then anIllegalArgumentException
is thrown.
-
-