- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- com.lowagie.text.xml.xmp.XmpSchema
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
- Direct Known Subclasses:
DublinCoreSchema,PdfA1Schema,PdfSchema,XmpBasicSchema,XmpMMSchema
public abstract class XmpSchema extends Properties
Abstract superclass of the XmpSchemas supported by iText.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringxmlnsthe namesspace-
Fields inherited from class java.util.Properties
defaults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaddProperty(String key, String value)static Stringescape(String content)StringgetXmlns()protected voidprocess(StringBuffer buf, Object p)Processes a propertyObjectsetProperty(String key, LangAlt value)ObjectsetProperty(String key, XmpArray value)ObjectsetProperty(String key, String value)StringtoString()The String representation of the contents.-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, values
-
-
-
-
Field Detail
-
xmlns
protected String xmlns
the namesspace
-
-
Constructor Detail
-
XmpSchema
public XmpSchema(String xmlns)
Constructs an XMP schema.- Parameters:
xmlns- xml namespace name
-
-
Method Detail
-
escape
public static String escape(String content)
- Parameters:
content- content- Returns:
- an escaped string
-
toString
public String toString()
The String representation of the contents.- Overrides:
toStringin classProperties- Returns:
- a String representation.
-
process
protected void process(StringBuffer buf, Object p)
Processes a property- Parameters:
buf- bufferp- object
-
getXmlns
public String getXmlns()
- Returns:
- Returns the xmlns.
-
addProperty
public Object addProperty(String key, String value)
- Parameters:
key- property keyvalue- value- Returns:
- the previous property (null if there wasn't one)
-
setProperty
public Object setProperty(String key, String value)
- Overrides:
setPropertyin classProperties- See Also:
Properties.setProperty(java.lang.String, java.lang.String)
-
setProperty
public Object setProperty(String key, XmpArray value)
- Parameters:
key- used as keyvalue- toString called on this value- Returns:
- the previous property (null if there wasn't one)
- See Also:
Properties.setProperty(java.lang.String, java.lang.String)
-
setProperty
public Object setProperty(String key, LangAlt value)
- Parameters:
key- used as keyvalue- toString called on this value- Returns:
- the previous property (null if there wasn't one)
- See Also:
Properties.setProperty(java.lang.String, java.lang.String)
-
-