Class CadfAttachment


  • public class CadfAttachment
    extends Object
    The CADF Attachment type is used as one means to add domain-specific information to certain CADF entities or data types.
    • Constructor Detail

      • CadfAttachment

        public CadfAttachment​(String contentType,
                              Object content,
                              String name)
        Create an attachment object with a user-friendly name.
        Parameters:
        contentType - URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"
        content - A container with attachment data. Required.
        name - An optional name that can be used to identify content (e.g. file name)
      • CadfAttachment

        public CadfAttachment​(String contentType,
                              Object content)
        Create an attachment object.
        Parameters:
        contentType - URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"
        content - A container with attachment data. Required.
    • Method Detail

      • getContentType

        public String getContentType()
      • setContentType

        public void setContentType​(String contentType)
      • getContent

        public Object getContent()
      • setContent

        public void setContent​(Object content)
      • getName

        public String getName()
      • setName

        public void setName​(String name)