Class XMP.Property

    • Field Detail

      • LANG

        public static final XMP.Property LANG
        The "xml:lang" qualifier property, which can be set on any non-List value.
      • TYPE

        public static final XMP.Property TYPE
        The "rdf:type" qualifier property. This can be set as a qualifier any structual (i.e "Map") Value to make it an RDF "Typed Node". Typed Nodes are disallowed in XMP prior to 2012.
    • Method Detail

      • getName

        public String getName()
        Return the name of the property
      • getURI

        public String getURI()
        Return the namespace of the property - the same as the XMP.Schema.getURI() method on the Schema that created this Property
      • getType

        public XMP.Type getType()
        Return the Type of the property
      • getOwnerType

        public XMP.Type getOwnerType()
        For a Property that serves as a "Field" in a Complex XMP.Type, return the owning XMP.Type. Otherwise, for top-level properties, return null.
      • isExternal

        public boolean isExternal()
        Return whether this Property is external. The purpose of this value is unknown
      • getDescription

        public String getDescription()
        Return the Description of this Property
      • isValid

        public boolean isValid()
        Return true if the property is valid according to XMP. Currently this only means that the namespace URI ends in "#" or "/"
        Since:
        2.25
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isDefinedIn

        public boolean isDefinedIn​(String standard)
        Return true if this property is known to the specified standard. The supplied value is the year of the XMP standard we're checking against - 2004, 2005, 2008, 2012 or 2019 - or one of the two special values "other" (we know of the property, but from another standard), "extension" (the property is defined in a PDF/A extension schema loaded with the PDF) and "any" (we know of the property any source other than a PDF/A extension schema).
        Parameters:
        standard - one of "2004", "2005", "2008", "2012", "2019", "other", "any" or "extension"
        Since:
        2.25