Interface RepositoryElementType<T>

Type Parameters:
T - Type of the element value
All Superinterfaces:
ElementType<T>, ModelItemType, PluginAware, RepositoryModelItemType
All Known Subinterfaces:
ComplexRepositoryElementType<T>
All Known Implementing Classes:
BinaryRepositoryElementType, BooleanRepositoryElementType, ContentContentElementType, ContentRepositoryElementType, DateRepositoryElementType, DateTimeRepositoryElementType, DoubleRepositoryElementType, FileContentElementType, FileRepositoryElementType, GeocodeRepositoryElementType, HTMLRichTextContentElementType, HTMLRichTextRepositoryElementType, LongRepositoryElementType, MultilingualStringRepositoryElementType, PasswordRepositoryElementType, ReferenceContentElementType, ReferenceRepositoryElementType, RichTextContentElementType, RichTextRepositoryElementType, StringRepositoryElementType, UserRepositoryElementType

Interface for types of elements stored in the repository
  • Method Details

    • read

      Read the value in the given repository data
      Parameters:
      parentData - repository data containing the value
      name - the name of the element to read
      Returns:
      the value. Can return a T or a T[]. That's why the return type is Object
      Throws:
      BadItemTypeException - if the reading value doesn't match this element type
    • write

      void write(ModifiableRepositoryData parentData, String name, Object value) throws BadItemTypeException
      Write the value into the given repository data
      Parameters:
      parentData - repository where to store the value.
      name - the name of the element to write
      value - the value to write. Can be a T or a T[]. That's why it is an Object
      Throws:
      BadItemTypeException - If the given value doesn't match this element type
    • externalizableValueToSAX

      Retrieve the value to SAX for externalizable data
      Parameters:
      value - the value to SAX This view item gives context for the SAX event that will be generated here.
      context - The context of the data to SAX
      Returns:
      the value to SAX for externalizable data