- 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 String
xmlns
the namesspace-
Fields inherited from class java.util.Properties
defaults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
addProperty(String key, String value)
static String
escape(String content)
String
getXmlns()
protected void
process(StringBuffer buf, Object p)
Processes a propertyObject
setProperty(String key, LangAlt value)
Object
setProperty(String key, XmpArray value)
Object
setProperty(String key, String value)
String
toString()
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:
toString
in 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:
setProperty
in 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)
-
-