Package org.faceless.pdf2
Class XMP.Property
- java.lang.Object
-
- org.faceless.pdf2.XMP.Property
-
- All Implemented Interfaces:
Comparable<XMP.Property>
- Enclosing class:
- XMP
public static class XMP.Property extends Object implements Comparable<XMP.Property>
A Property is a "key" for any values set on the XMP. Properties are used both for top-level XMP properties, as qualifiers onXMP.Value
s, and also for keys on structured Values (i.e. a Value that contain a Map of other Values). The latter use is called a "Field" rather than a Property in ISO16684 and in PDF/A-1 to 3, but this class represents both concepts. A Property acting as a "Field" will have a non-null return value fromgetOwnerType()
.
-
-
Field Summary
Fields Modifier and Type Field Description static XMP.Property
LANG
The "xml:lang" qualifier property, which can be set on any non-List value.static XMP.Property
TYPE
The "rdf:type" qualifier property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(XMP.Property p)
boolean
equals(Object o)
String
getDescription()
Return the Description of this PropertyString
getName()
Return the name of the propertyXMP.Type
getOwnerType()
XMP.Type
getType()
Return the Type of the propertyString
getURI()
Return the namespace of the property - the same as theXMP.Schema.getURI()
method on the Schema that created this Propertyint
hashCode()
boolean
isDefinedIn(String standard)
Return true if this property is known to the specified standard.boolean
isExternal()
Return whether this Property is external.boolean
isQualifier()
Return whether this Property is a qualifier property.boolean
isValid()
Return true if the property is valid according to XMP.String
toString()
-
-
-
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 theXMP.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()
-
isExternal
public boolean isExternal()
Return whether this Property is external. The purpose of this value is unknown
-
isQualifier
public boolean isQualifier()
Return whether this Property is a qualifier property. Qualifiers can be set on a Value withXMP.Value.putQualifier(org.faceless.pdf2.XMP.Property, org.faceless.pdf2.XMP.Value)
, but cannot be set on the XMP itself.
-
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
-
compareTo
public int compareTo(XMP.Property p)
- Specified by:
compareTo
in interfaceComparable<XMP.Property>
-
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
-
-