Home » pdfbox-1.1.0-src » org.apache.jempbox.xmp » [javadoc | source]
org.apache.jempbox.xmp
public class: XMPSchema [javadoc | source]
java.lang.Object
   org.apache.jempbox.xmp.XMPSchema

Direct Known Subclasses:
    XMPSchemaMediaManagement, XMPSchemaDynamicMedia, XMPSchemaBasic, XMPSchemaPDFAField, XMPSchemaPhotoshop, XMPSchemaRightsManagement, XMPSchemaPDFASchema, XMPSchemaPDF, XMPSchemaPagedText, XMPSchemaPDFAId, XMPSchemaPDFAType, XMPSchemaDublinCore, XMPSchemaBasicJobTicket, XMPSchemaPDFAProperty, XMPSchemaIptc4xmpCore

This class represents a metadata schema that can be stored in an XMP document. It handles all generic properties that are available. See subclasses for access to specific properties.
Field Summary
public static final  String NS_NAMESPACE    The standard xmlns namespace. 
protected  String prefix    The XML schema prefix. 
protected  Element schema    The DOM representation of this object. 
Constructor:
 public XMPSchema(Element element,
    String aPrefix) 
    Create schema from an existing XML element.
    Parameters:
    element - The existing XML element.
    aPrefix - The XML prefix.
 public XMPSchema(XMPMetadata parent,
    String namespaceName,
    String namespaceURI) 
    Create a new blank schema that can be populated.
    Parameters:
    parent - The parent XMP document that this schema will be part of.
    namespaceName - The name of the namespace, ie pdf,dc,...
    namespaceURI - The URI of the namespace, ie "http://ns.adobe.com/pdf/1.3/"
Method from org.apache.jempbox.xmp.XMPSchema Summary:
addBagValue,   addSequenceDateValue,   addSequenceValue,   addSequenceValue,   getAbout,   getBagList,   getBooleanProperty,   getDateProperty,   getElement,   getEventSequenceList,   getIntegerProperty,   getLanguageProperty,   getLanguagePropertyLanguages,   getSequenceDateList,   getSequenceList,   getTextProperty,   getThumbnailProperty,   merge,   removeBagValue,   removeSequenceDateValue,   removeSequenceValue,   removeSequenceValue,   setAbout,   setBooleanProperty,   setDateProperty,   setIntegerProperty,   setLanguageProperty,   setTextProperty,   setThumbnailProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jempbox.xmp.XMPSchema Detail:
 public  void addBagValue(String bagName,
    String bagValue) 
    Add an entry to a bag property.
 public  void addSequenceDateValue(String seqName,
    Calendar date) 
    Add a date sequence value to the list.
 public  void addSequenceValue(String seqName,
    String seqValue) 
    Add a new value to a sequence property.
 public  void addSequenceValue(String seqName,
    Elementable seqValue) 
    Add a new value to a sequence property.
 public String getAbout() 
    Get the RDF about attribute.
 public List<String> getBagList(String bagName) 
    Get all the values of the bag property. This will return a list of java.lang.String objects, this is a read-only list.
 public Boolean getBooleanProperty(String propertyName) 
    Get the value of the property as a boolean.
 public Calendar getDateProperty(String propertyName) throws IOException 
    Get the value of the property as a date.
 public Element getElement() 
    Get the XML element that is represented by this schema.
 public List<ResourceEvent> getEventSequenceList(String seqName) 
    Get a list of ResourceEvent objects.
 public Integer getIntegerProperty(String propertyName) 
    Get the value of the property as an integer.
 public String getLanguageProperty(String propertyName,
    String language) 
    Get the value of a multi-lingual property.
 public List<String> getLanguagePropertyLanguages(String propertyName) 
    Get a list of all languages that are currently defined for a specific property.
 public List<Calendar> getSequenceDateList(String seqName) throws IOException 
    Get all the date values in a sequence property.
 public List<String> getSequenceList(String seqName) 
    Get all the values in a sequence property.
 public String getTextProperty(String propertyName) 
    Get the value of a simple text property.
 public Thumbnail getThumbnailProperty(String propertyName,
    String language) 
    Get the value of a multi-lingual property.
 public  void merge(XMPSchema xmpSchema) throws IOException 
    A basic schema merge, it merges bags and sequences and replace everything else.
 public  void removeBagValue(String bagName,
    String bagValue) 
    Remove all matching entries with the given value from the bag.
 public  void removeSequenceDateValue(String seqName,
    Calendar date) 
    Remove a date sequence value from the list.
 public  void removeSequenceValue(String seqName,
    String seqValue) 
    Remove all matching values from a sequence property.
 public  void removeSequenceValue(String seqName,
    Elementable seqValue) 
    Remove a value from a sequence property. This will remove all entries from the list.
 public  void setAbout(String about) 
    Set the RDF 'about' attribute. Passing in null will clear this attribute.
 public  void setBooleanProperty(String propertyName,
    Boolean bool) 
    Set the value of the property as a boolean.
 public  void setDateProperty(String propertyName,
    Calendar date) 
    Set the value of the property as a date.
 public  void setIntegerProperty(String propertyName,
    Integer intValue) 
    Set the value of the property as an integer.
 public  void setLanguageProperty(String propertyName,
    String language,
    String value) 
    Set the value of a multi-lingual property.
 public  void setTextProperty(String propertyName,
    String propertyValue) 
    Set a simple text property on the schema.
 public  void setThumbnailProperty(String propertyName,
    String language,
    Thumbnail value) 
    Set the value of a multi-lingual property.