Class CustomItemAnnotation<C extends ContentItem>

java.lang.Object
com.oracle.content.sdk.util.CustomItemAnnotation<C>

public class CustomItemAnnotation<C extends ContentItem> extends Object
Utility class for dealing with custom annotations on a class object. This is used by GetCustomContentItemRequest This is experimental code.
  • Constructor Details

    • CustomItemAnnotation

      public CustomItemAnnotation(Class objectClass)
  • Method Details

    • getCustomType

      public String getCustomType()
      Returns the type value specified in the @CustomContentType or null
      Returns:
      type value or null
    • verifyTypeMatch

      public boolean verifyTypeMatch(String type)
      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

      public void parseAnnotationFields(C item)
      Parse each annotation in the class and retrieve/assign fields.
      Parameters:
      item - item to parse