com.lowagie.text.xml.xmp

Class XmpSchema

public abstract class XmpSchema extends Properties

Abstract superclass of the XmpSchemas supported by iText.
Field Summary
protected Stringxmlns
the namesspace
Constructor Summary
XmpSchema(String xmlns)
Constructs an XMP schema.
Method Summary
ObjectaddProperty(String key, String value)
static Stringescape(String content)
StringgetXmlns()
protected voidprocess(StringBuffer buf, Object p)
Processes a property
ObjectsetProperty(String key, String value)
ObjectsetProperty(String key, XmpArray value)
ObjectsetProperty(String key, LangAlt value)
StringtoString()
The String representation of the contents.

Field Detail

xmlns

protected String xmlns
the namesspace

Constructor Detail

XmpSchema

public XmpSchema(String xmlns)
Constructs an XMP schema.

Parameters: xmlns

Method Detail

addProperty

public Object addProperty(String key, String value)

Parameters: key value

Returns: the previous property (null if there wasn't one)

escape

public static String escape(String content)

Parameters: content

Returns: an escaped string

getXmlns

public String getXmlns()

Returns: Returns the xmlns.

process

protected void process(StringBuffer buf, Object p)
Processes a property

Parameters: buf p

setProperty

public Object setProperty(String key, String value)

See Also: java.util.Properties#setProperty(java.lang.String, java.lang.String)

setProperty

public Object setProperty(String key, XmpArray value)

Parameters: key value

Returns: the previous property (null if there wasn't one)

See Also: java.util.Properties#setProperty(java.lang.String, java.lang.String)

setProperty

public Object setProperty(String key, LangAlt value)

Parameters: key value

Returns: the previous property (null if there wasn't one)

See Also: java.util.Properties#setProperty(java.lang.String, java.lang.String)

toString

public String toString()
The String representation of the contents.

Returns: a String representation.