Package com.oracle.content.sdk.util
Class CustomItemAnnotation<C extends ContentItem>
java.lang.Object
com.oracle.content.sdk.util.CustomItemAnnotation<C>
Utility class for dealing with custom annotations on a class object. This
is used by
GetCustomContentItemRequest
This is experimental code.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type value specified in the @CustomContentType or nullvoid
parseAnnotationFields
(C item) Parse each annotation in the class and retrieve/assign fields.boolean
verifyTypeMatch
(String type) Verify any custom type matches the specified type.
-
Constructor Details
-
CustomItemAnnotation
-
-
Method Details
-
getCustomType
Returns the type value specified in the @CustomContentType or null- Returns:
- type value or null
-
verifyTypeMatch
Verify any custom type matches the specified type. If it doesn't match, will log error.- Parameters:
type
- type from server- Returns:
- true if matches annotation, else false.
-
parseAnnotationFields
Parse each annotation in the class and retrieve/assign fields.- Parameters:
item
- item to parse
-