final class UnmodifiableCOSDictionary extends COSDictionary
items
Constructor and Description |
---|
UnmodifiableCOSDictionary(COSDictionary dict) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(COSDictionary dic)
This will add all of the dictionaries keys/values to this dictionary.
|
void |
clear()
This will clear all items in the map.
|
void |
mergeInto(COSDictionary dic)
This will add all of the dictionaries keys/values to this dictionary, but
only if they don't already exist.
|
void |
removeItem(COSName key)
This will remove an item for the dictionary.
|
void |
setBoolean(COSName key,
boolean value)
This will set an item in the dictionary.
|
void |
setBoolean(java.lang.String key,
boolean value)
This will set an item in the dictionary.
|
void |
setDate(COSName key,
java.util.Calendar date)
Set the date object.
|
void |
setDate(java.lang.String key,
java.util.Calendar date)
Set the value of a date entry in the dictionary.
|
void |
setEmbeddedDate(java.lang.String embedded,
COSName key,
java.util.Calendar date)
Set the date object.
|
void |
setEmbeddedDate(java.lang.String embedded,
java.lang.String key,
java.util.Calendar date)
Set the value of a date entry in the dictionary.
|
void |
setEmbeddedInt(java.lang.String embeddedDictionary,
COSName key,
int value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setEmbeddedInt(java.lang.String embeddedDictionary,
java.lang.String key,
int value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setEmbeddedString(java.lang.String embedded,
COSName key,
java.lang.String value)
This is a convenience method that will convert the value to a COSString object.
|
void |
setEmbeddedString(java.lang.String embedded,
java.lang.String key,
java.lang.String value)
This is a convenience method that will convert the value to a COSString object.
|
void |
setFloat(COSName key,
float value)
This is a convenience method that will convert the value to a COSFloat object.
|
void |
setFloat(java.lang.String key,
float value)
This is a convenience method that will convert the value to a COSFloat object.
|
void |
setInt(COSName key,
int value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setInt(java.lang.String key,
int value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setItem(COSName key,
COSBase value)
This will set an item in the dictionary.
|
void |
setItem(COSName key,
COSObjectable value)
This will set an item in the dictionary.
|
void |
setItem(java.lang.String key,
COSBase value)
This will set an item in the dictionary.
|
void |
setItem(java.lang.String key,
COSObjectable value)
This will set an item in the dictionary.
|
void |
setLong(COSName key,
long value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setLong(java.lang.String key,
long value)
This is a convenience method that will convert the value to a COSInteger object.
|
void |
setName(COSName key,
java.lang.String value)
This is a convenience method that will convert the value to a COSName object.
|
void |
setName(java.lang.String key,
java.lang.String value)
This is a convenience method that will convert the value to a COSName object.
|
void |
setString(COSName key,
java.lang.String value)
This is a convenience method that will convert the value to a COSString object.
|
void |
setString(java.lang.String key,
java.lang.String value)
This is a convenience method that will convert the value to a COSString object.
|
accept, asUnmodifiableDictionary, containsKey, containsKey, containsValue, entrySet, getBoolean, getBoolean, getBoolean, getCOSArray, getCOSDictionary, getCOSName, getCOSName, getCOSObject, getCOSStream, getDate, getDate, getDate, getDate, getDictionaryObject, getDictionaryObject, getDictionaryObject, getDictionaryObject, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedString, getEmbeddedString, getEmbeddedString, getEmbeddedString, getFlag, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getInt, getInt, getInt, getItem, getItem, getItem, getKeyForValue, getLong, getLong, getLong, getLong, getLong, getNameAsString, getNameAsString, getNameAsString, getNameAsString, getObjectFromPath, getString, getString, getString, getString, getValues, isNeedToBeUpdated, keySet, setFlag, setNeedToBeUpdated, size, toString
getCOSObject, isDirect, setDirect
UnmodifiableCOSDictionary(COSDictionary dict)
public void clear()
clear
in class COSDictionary
public void setItem(COSName key, COSBase value)
setItem
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setItem(COSName key, COSObjectable value)
setItem
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setItem(java.lang.String key, COSObjectable value)
setItem
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setBoolean(java.lang.String key, boolean value)
setBoolean
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setBoolean(COSName key, boolean value)
setBoolean
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setItem(java.lang.String key, COSBase value)
setItem
in class COSDictionary
key
- The key to the dictionary object.value
- The value to the dictionary object.public void setName(java.lang.String key, java.lang.String value)
setName
in class COSDictionary
key
- The key to the object,value
- The string value for the name.public void setName(COSName key, java.lang.String value)
setName
in class COSDictionary
key
- The key to the object,value
- The string value for the name.public void setDate(java.lang.String key, java.util.Calendar date)
setDate
in class COSDictionary
key
- The key to the date value.date
- The date value.public void setDate(COSName key, java.util.Calendar date)
setDate
in class COSDictionary
key
- The key to the date.date
- The date to set.public void setEmbeddedDate(java.lang.String embedded, java.lang.String key, java.util.Calendar date)
setEmbeddedDate
in class COSDictionary
embedded
- The embedded dictionary.key
- The key to the date value.date
- The date value.public void setEmbeddedDate(java.lang.String embedded, COSName key, java.util.Calendar date)
setEmbeddedDate
in class COSDictionary
embedded
- The embedded dictionary.key
- The key to the date.date
- The date to set.public void setString(java.lang.String key, java.lang.String value)
setString
in class COSDictionary
key
- The key to the object,value
- The string value for the name.public void setString(COSName key, java.lang.String value)
setString
in class COSDictionary
key
- The key to the object,value
- The string value for the name.public void setEmbeddedString(java.lang.String embedded, java.lang.String key, java.lang.String value)
setEmbeddedString
in class COSDictionary
embedded
- The embedded dictionary to set the item in.key
- The key to the object,value
- The string value for the name.public void setEmbeddedString(java.lang.String embedded, COSName key, java.lang.String value)
setEmbeddedString
in class COSDictionary
embedded
- The embedded dictionary to set the item in.key
- The key to the object,value
- The string value for the name.public void setInt(java.lang.String key, int value)
setInt
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void setInt(COSName key, int value)
setInt
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void setLong(java.lang.String key, long value)
setLong
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void setLong(COSName key, long value)
setLong
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void setEmbeddedInt(java.lang.String embeddedDictionary, java.lang.String key, int value)
setEmbeddedInt
in class COSDictionary
embeddedDictionary
- The embedded dictionary.key
- The key to the object,value
- The int value for the name.public void setEmbeddedInt(java.lang.String embeddedDictionary, COSName key, int value)
setEmbeddedInt
in class COSDictionary
embeddedDictionary
- The embedded dictionary.key
- The key to the object,value
- The int value for the name.public void setFloat(java.lang.String key, float value)
setFloat
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void setFloat(COSName key, float value)
setFloat
in class COSDictionary
key
- The key to the object,value
- The int value for the name.public void removeItem(COSName key)
removeItem
in class COSDictionary
key
- The key to the item to remove from the dictionary.public void addAll(COSDictionary dic)
addAll
in class COSDictionary
dic
- The dictionaries to get the keys from.public void mergeInto(COSDictionary dic)
mergeInto
in class COSDictionary
dic
- The dictionaries to get the keys from.