Class XMPBasicSchema


public class XMPBasicSchema extends XMPSchema
Representation of XMPBasic Schema
Author:
a183132
  • Field Details

  • Constructor Details

    • XMPBasicSchema

      public XMPBasicSchema(XMPMetadata metadata)
      Constructor of XMPBasic schema with preferred prefix
      Parameters:
      metadata - The metadata to attach this schema
    • XMPBasicSchema

      public XMPBasicSchema(XMPMetadata metadata, String ownPrefix)
      Constructor of XMPBasic schema with specified prefix
      Parameters:
      metadata - The metadata to attach this schema
      ownPrefix - The prefix to assign
  • Method Details

    • addThumbnails

      public void addThumbnails(Integer height, Integer width, String format, String img)
      Add thumbnail to thumbnails list
      Parameters:
      height - height format
      width - width format
      format - thumbnail format
      img - Image data
    • addAdvisory

      public void addAdvisory(String xpath)
      Add a property specification that were edited outside the authoring application
      Parameters:
      xpath - the value to add
    • removeAdvisory

      public void removeAdvisory(String xpath)
    • setBaseURL

      public void setBaseURL(String url)
      Set the base URL for relative URLs in the document content
      Parameters:
      url - the Base url value to set
    • setBaseURLProperty

      public void setBaseURLProperty(URLType url)
      Set the base URL property
      Parameters:
      url - the Base url property to set
    • setCreateDate

      public void setCreateDate(Calendar date)
      Set the date and time the resource was originally created
      Parameters:
      date - the value to set
    • setCreateDateProperty

      public void setCreateDateProperty(DateType date)
      Set the create date property
      Parameters:
      date - the create date property to set
    • setCreatorTool

      public void setCreatorTool(String creatorTool)
      set the name of the first known tool used to create this resource
      Parameters:
      creatorTool - the creator tool value to set
    • setCreatorToolProperty

      public void setCreatorToolProperty(AgentNameType creatorTool)
      set the creatorTool property
      Parameters:
      creatorTool - the creator tool property to set
    • addIdentifier

      public void addIdentifier(String text)
      Add a text string which unambiguously identify the resource within a given context
      Parameters:
      text - the identifier value to add
    • removeIdentifier

      public void removeIdentifier(String text)
    • setLabel

      public void setLabel(String text)
      set a word or a short phrase which identifies a document as a member of a user-defined collection
      Parameters:
      text - the label value to set
    • setLabelProperty

      public void setLabelProperty(TextType text)
      set the label property
      Parameters:
      text - the label property to set
    • setMetadataDate

      public void setMetadataDate(Calendar date)
      Set the date and time that any metadata for this resource was last changed. (should be equals or more recent than the createDate)
      Parameters:
      date - the Metadata Date value to set
    • setMetadataDateProperty

      public void setMetadataDateProperty(DateType date)
      Set the MetadataDate property
      Parameters:
      date - the Metadata Date property to set
    • setModifyDate

      public void setModifyDate(Calendar date)
      Set the date and time the resource was last modified
      Parameters:
      date - the Modify Date value to set
    • setModifierDate

      public void setModifierDate(Calendar date)
    • setModifyDateProperty

      public void setModifyDateProperty(DateType date)
      Set the ModifyDate property
      Parameters:
      date - the Modify Date property to set
    • setModifierDateProperty

      public void setModifierDateProperty(DateType date)
    • setNickname

      public void setNickname(String text)
      Set a short informal name for the resource
      Parameters:
      text - the Nickname value to set
    • setNicknameProperty

      public void setNicknameProperty(TextType text)
      Set the NickName property
      Parameters:
      text - the Nickname property to set
    • setRating

      public void setRating(Integer rate)
      Set a number that indicates a document's status relative to other documents, used to organize documents in a file browser (values are user-defined within an application-defined range)
      Parameters:
      rate - the rate value to set
    • setRatingProperty

      public void setRatingProperty(IntegerType rate)
      Set Rating Property
      Parameters:
      rate - the rate property to set
    • getAdvisoryProperty

      public ArrayProperty getAdvisoryProperty()
      Get the Advisory property
      Returns:
      the advisory property
    • getAdvisory

      public List<String> getAdvisory()
      Get the Advisory property values
      Returns:
      list of adivory values
    • getBaseURLProperty

      public TextType getBaseURLProperty()
      Get the BaseURL property
      Returns:
      the base url property
    • getBaseURL

      public String getBaseURL()
      Get the BaseURL property value
      Returns:
      the base url value
    • getCreateDateProperty

      public DateType getCreateDateProperty()
      Get the CreateDate property
      Returns:
      the CreateDate property
    • getCreateDate

      public Calendar getCreateDate()
      Get the CreateDate property value
      Returns:
      the CreateDate value
    • getCreatorToolProperty

      public TextType getCreatorToolProperty()
      Get the CreationTool property
      Returns:
      the CreationTool property
    • getCreatorTool

      public String getCreatorTool()
      Get the CreationTool property value
      Returns:
      the CreationTool value
    • getIdentifiersProperty

      public ArrayProperty getIdentifiersProperty()
      Get the Identifier property
      Returns:
      the Identifier property
    • getIdentifiers

      public List<String> getIdentifiers()
      Get the Identifier property values
      Returns:
      list of all identifier values
    • getLabelProperty

      public TextType getLabelProperty()
      Get the label property
      Returns:
      the label property
    • getLabel

      public String getLabel()
      Get the label property value
      Returns:
      the label value
    • getMetadataDateProperty

      public DateType getMetadataDateProperty()
      Get the MetadataDate property
      Returns:
      the MetadataDate property
    • getMetadataDate

      public Calendar getMetadataDate()
      Get the MetadataDate property value
      Returns:
      the MetadataDate value
    • getModifyDateProperty

      public DateType getModifyDateProperty()
      Get the ModifyDate property
      Returns:
      the ModifyDate property
    • getModifierDateProperty

      public DateType getModifierDateProperty()
    • getModifyDate

      public Calendar getModifyDate()
      Get the ModifyDate property value
      Returns:
      the ModifyDate value
    • getModifierDate

      public Calendar getModifierDate()
    • getNicknameProperty

      public TextType getNicknameProperty()
      Get the Nickname property
      Returns:
      the Nickname property
    • getNickname

      public String getNickname()
      Get the Nickname property value
      Returns:
      the Nickname value
    • getRatingProperty

      public IntegerType getRatingProperty()
      Get the Rating property
      Returns:
      the Rating property
    • getRating

      public Integer getRating()
      Get the Rating property value
      Returns:
      the Rating value
    • getThumbnailsProperty

      public List<ThumbnailType> getThumbnailsProperty() throws BadFieldValueException
      Get list of Thumbnails
      Returns:
      List of all thumbnails properties defined
      Throws:
      BadFieldValueException - if one thumbnail is not thumbnail type