org.sakaiproject.service.legacy.entity
Interface ResourceProperties

All Superinterfaces:
Serializable
All Known Subinterfaces:
ResourcePropertiesEdit
All Known Implementing Classes:
BaseResourceProperties, BaseResourceProperties, BaseResourcePropertiesEdit, BaseResourcePropertiesEdit

public interface ResourceProperties
extends Serializable

ResourceProperties is the core interface for the properties of all resources in CHEF (such as messages and message channels, content hosting collections and resources, etc).

ResourceProperties are read only, and are name, value pairs.

Pre-defined property names are defined in static string here.

Author:
Sakai Software Development Team

Field Summary
static String FILE_TYPE
          Used to find non structured object ContentResources (files, url's, etc.)
static String NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE
          Property for whether an assignment's due date will be added into schedule as an event(user settable).
static String NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE
          Property for whether an assignment's open date will be announced (user settable).
static String PROP_ASSIGNMENT_DELETED
          Property for assignment been deleted status(user settable) [String]
static String PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID
          Property for calendar event associated with an assignment's due date (user settable).
static String PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID
          Property for announcement message id associated with an assignment's open date (user settable).
static String PROP_CALENDAR_EVENT_FIELDS
          Property for calendar event extra fields (user settable).
static String PROP_CALENDAR_LOCATION
          Property for calendar event location (user settable).
static String PROP_CALENDAR_TYPE
          Property for calendar event types (user settable).
static String PROP_CHANNEL_ENABLED
          Property for a message channel indicating if the channel is 'enabled' (user settable) [Boolean]
static String PROP_CHAT_ROOM
          Property to associate a chat message with a chat room (user settable).
static String PROP_COLLECTION_BODY_QUOTA
          Property that holds a ContentHosting collection body bytes quota, in K (user settable).
static String PROP_CONTENT_ENCODING
          The encoding of the resource - UTF-8 or ISO-8559-1 for example
static String PROP_CONTENT_LENGTH
          Property for the content length (live, from DAV:).
static String PROP_CONTENT_TYPE
          Property for the content type (live, from DAV:).
static String PROP_COPYRIGHT
          Property for the copyright attribution (user settable).
static String PROP_COPYRIGHT_ALERT
          Property for the copyright alert attribution (user settable).
static String PROP_COPYRIGHT_CHOICE
          Property for the copyright choice attribution (user settable).
static String PROP_CREATION_DATE
          Property for creation (upload) date (live, from DAV:).
static String PROP_CREATOR
          Property for resource creator (uploader) (automatic).
static String PROP_DESCRIPTION
          Property for long open description (user settable).
static String PROP_DISCUSSION_CATEGORIES
          Property for the channel to categories names inside a discussion channel (user settable).
static String PROP_DISPLAY_NAME
          Property for the display name (description) (dead, from DAV:).
static String PROP_IS_COLLECTION
          Property that distinguishes a collection from a non-collection resource (automatic).
static String PROP_MAIL_CHANNEL_OPEN
          Property for a message channel indicating if the channel is 'enabled' (user settable) [Boolean]
static String PROP_MODIFIED_BY
          Property for resource last one to modify (automatic).
static String PROP_MODIFIED_DATE
          Property for the last modified date (live, from DAV:, set when anything changes).
static String PROP_ORIGINAL_FILENAME
          Property for the original filename (automatic).
static String PROP_PUBVIEW
          Property indicating public viewable (manual).
static String PROP_REPLY_STYLE
          Property that discussion reply message style is star or thread (automatic) [String]
static String PROP_SITE_EMAIL_ARCHIVE
          Property for a site indicating if email archiveing is enabled for the site (user settable) [Boolean]
static String PROP_SITE_EMAIL_NOTIFICATION_ID
          Property for a site storing the email notification id associated with the site's mailbox (user settable) [String]
static String PROP_STRUCTOBJ_TYPE
          Property for "object type" of a structured artifact
static String PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT
          Property for assignment submission's previous feedback comment (user settable).
static String PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT
          Property for assignment submission's previous inline feedback text (user settable).
static String PROP_SUBMISSION_PREVIOUS_GRADES
          Property for assignment submission's previous grade (user settable).
static String PROP_SUBMISSION_SCALED_PREVIOUS_GRADES
          Property for assignment submission's scaled previous grade (user settable).
static String PROP_TO
          Property to target a message to a specific user (user settable).
static String PROP_TOOL_CATEGORY
          Property for a ToolRegistration, category of the tool (user settable) [String] %%% list desired -ggolden
static String PROP_TOOL_DESCRIPTION
          Property for a ToolRegistration, description of the tool (user settable) [String]
static String PROP_TOOL_TITLE
          Property for a ToolRegistration, the title of the tool (user settable) [String]
static String TYPE_URL
          URL MIME type
 
Method Summary
 void addAll(Properties props)
          Add all the properties from the Properties object.
 void addAll(ResourceProperties other)
          Add all the properties from the other ResourceProperties object.
 void addProperty(String name, String value)
          Add a single valued property.
 void addPropertyToList(String name, String value)
          Add a value to a multi-valued property.
 void clear()
          Remove all properties.
 boolean getBooleanProperty(String name)
          Access a named property as a boolean.
 long getLongProperty(String name)
          Access a named property as a long.
 String getNamePropAssignmentDeleted()
          Get the static String of PROP_ASSIGNMENT_DELETED
 String getNamePropCalendarLocation()
          Get the static String of PROP_CALENDAR_LOCATION
 String getNamePropCalendarType()
          Get the static String of PROP_CALENDAR_TYPE
 String getNamePropChatRoom()
          Get the static String of PROP_CHAT_ROOM
 String getNamePropCollectionBodyQuota()
          Get the static String of PROP_COLLECTION_BODY_QUOTA
 String getNamePropContentLength()
          Get the static String of PROP_CONTENT_LENGTH
 String getNamePropContentType()
          Get the static String of PROP_CONTENT_TYPE
 String getNamePropCopyright()
          Get the static String of PROP_COPYRIGHT
 String getNamePropCopyrightAlert()
          Get the static String of PROP_COPYRIGHT_ALERT
 String getNamePropCopyrightChoice()
          Get the static String of PROP_COPYRIGHT_CHOICE
 String getNamePropCreationDate()
          Get the static String of PROP_CREATION_DATE
 String getNamePropCreator()
          Get the static String of PROP_CREATOR
 String getNamePropDescription()
          Get the static String of PROP_DESCRIPTION
 String getNamePropDisplayName()
          Get the static String of PROP_DISPLAY_NAME
 String getNamePropIsCollection()
          Get the static String of PROP_IS_COLLECTION
 String getNamePropModifiedBy()
          Get the static String of PROP_MODIFIED_BY
 String getNamePropModifiedDate()
          Get the static String of PROP_MODIFIED_DATE
 String getNamePropNewAssignmentCheckAddDueDate()
          Get the static String of NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE
 String getNamePropNewAssignmentCheckAutoAnnounce()
          Get the static String of NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE
 String getNamePropReplyStyle()
          Get the static String of PROP_REPLY_STYLE
 String getNamePropStructObjType()
          Get the static String of PROP_STRUCTOBJ_TYPE
 String getNamePropSubmissionPreviousFeedbackComment()
          Get the static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT
 String getNamePropSubmissionPreviousFeedbackText()
          Get the static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT
 String getNamePropSubmissionPreviousGrades()
          Get the static String of PROP_SUBMISSION_PREVIOUS_GRADES
 String getNamePropSubmissionScaledPreviousGrades()
          Get the static String of PROP_SUBMISSION_SCALED_PREVIOUS_GRADES
 String getNamePropTo()
          Get the static String of PROP_TO
 String getProperty(String name)
          Access a named property as a string (won't find multi-valued ones.)
 String getPropertyFormatted(String name)
          Access a named property as a properly formatted string.
 List getPropertyList(String name)
          Access a named property as a List of (String), good for single or multi-valued properties.
 Iterator getPropertyNames()
          Access an iterator on the names of the defined properties (Strings).
 Time getTimeProperty(String name)
          Access a named property as a Time.
 String getTypeUrl()
          Get the static String of TYPE_URL
 User getUserProperty(String name)
          Access a named property as a User.
 boolean isLiveProperty(String name)
          Check if a named property is a live one (auto updated).
 void removeProperty(String name)
          Remove a property.
 void set(ResourceProperties other)
          Take all values from this object.
 Element toXml(Document doc, Stack stack)
          Serialize the resource into XML, adding an element to the doc under the top of the stack element.
 

Field Detail

PROP_CREATOR

public static final String PROP_CREATOR
Property for resource creator (uploader) (automatic). [user id string]

See Also:
Constant Field Values

PROP_MODIFIED_BY

public static final String PROP_MODIFIED_BY
Property for resource last one to modify (automatic). [user id string]

See Also:
Constant Field Values

PROP_CREATION_DATE

public static final String PROP_CREATION_DATE
Property for creation (upload) date (live, from DAV:). [Time]

See Also:
Constant Field Values

PROP_DISPLAY_NAME

public static final String PROP_DISPLAY_NAME
Property for the display name (description) (dead, from DAV:). [String]

See Also:
Constant Field Values

PROP_ORIGINAL_FILENAME

public static final String PROP_ORIGINAL_FILENAME
Property for the original filename (automatic). [String]

See Also:
Constant Field Values

PROP_COPYRIGHT

public static final String PROP_COPYRIGHT
Property for the copyright attribution (user settable). [String]

See Also:
Constant Field Values

PROP_COPYRIGHT_CHOICE

public static final String PROP_COPYRIGHT_CHOICE
Property for the copyright choice attribution (user settable). [String]

See Also:
Constant Field Values

PROP_COPYRIGHT_ALERT

public static final String PROP_COPYRIGHT_ALERT
Property for the copyright alert attribution (user settable). [String]

See Also:
Constant Field Values

PROP_CONTENT_LENGTH

public static final String PROP_CONTENT_LENGTH
Property for the content length (live, from DAV:). [Long]

See Also:
Constant Field Values

PROP_CONTENT_TYPE

public static final String PROP_CONTENT_TYPE
Property for the content type (live, from DAV:). [MIME type string]

See Also:
Constant Field Values

PROP_MODIFIED_DATE

public static final String PROP_MODIFIED_DATE
Property for the last modified date (live, from DAV:, set when anything changes). [Time]

See Also:
Constant Field Values

PROP_IS_COLLECTION

public static final String PROP_IS_COLLECTION
Property that distinguishes a collection from a non-collection resource (automatic). [Boolean]

See Also:
Constant Field Values

PROP_COLLECTION_BODY_QUOTA

public static final String PROP_COLLECTION_BODY_QUOTA
Property that holds a ContentHosting collection body bytes quota, in K (user settable). [long]

See Also:
Constant Field Values

PROP_CHAT_ROOM

public static final String PROP_CHAT_ROOM
Property to associate a chat message with a chat room (user settable). [String]

See Also:
Constant Field Values

PROP_TO

public static final String PROP_TO
Property to target a message to a specific user (user settable). [User]

See Also:
Constant Field Values

PROP_DESCRIPTION

public static final String PROP_DESCRIPTION
Property for long open description (user settable). [String]

See Also:
Constant Field Values

PROP_CALENDAR_TYPE

public static final String PROP_CALENDAR_TYPE
Property for calendar event types (user settable). [String]

See Also:
Constant Field Values

PROP_CALENDAR_LOCATION

public static final String PROP_CALENDAR_LOCATION
Property for calendar event location (user settable). [String]

See Also:
Constant Field Values

PROP_DISCUSSION_CATEGORIES

public static final String PROP_DISCUSSION_CATEGORIES
Property for the channel to categories names inside a discussion channel (user settable). [String]

See Also:
Constant Field Values

PROP_REPLY_STYLE

public static final String PROP_REPLY_STYLE
Property that discussion reply message style is star or thread (automatic) [String]

See Also:
Constant Field Values

PROP_CHANNEL_ENABLED

public static final String PROP_CHANNEL_ENABLED
Property for a message channel indicating if the channel is 'enabled' (user settable) [Boolean]

See Also:
Constant Field Values

PROP_MAIL_CHANNEL_OPEN

public static final String PROP_MAIL_CHANNEL_OPEN
Property for a message channel indicating if the channel is 'enabled' (user settable) [Boolean]

See Also:
Constant Field Values

PROP_SITE_EMAIL_NOTIFICATION_ID

public static final String PROP_SITE_EMAIL_NOTIFICATION_ID
Property for a site storing the email notification id associated with the site's mailbox (user settable) [String]

See Also:
Constant Field Values

PROP_SITE_EMAIL_ARCHIVE

public static final String PROP_SITE_EMAIL_ARCHIVE
Property for a site indicating if email archiveing is enabled for the site (user settable) [Boolean]

See Also:
Constant Field Values

PROP_TOOL_TITLE

public static final String PROP_TOOL_TITLE
Property for a ToolRegistration, the title of the tool (user settable) [String]

See Also:
Constant Field Values

PROP_TOOL_DESCRIPTION

public static final String PROP_TOOL_DESCRIPTION
Property for a ToolRegistration, description of the tool (user settable) [String]

See Also:
Constant Field Values

PROP_TOOL_CATEGORY

public static final String PROP_TOOL_CATEGORY
Property for a ToolRegistration, category of the tool (user settable) [String] %%% list desired -ggolden

See Also:
Constant Field Values

PROP_CALENDAR_EVENT_FIELDS

public static final String PROP_CALENDAR_EVENT_FIELDS
Property for calendar event extra fields (user settable). [String]

See Also:
Constant Field Values

NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE

public static final String NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE
Property for whether an assignment's open date will be announced (user settable). [String]

See Also:
Constant Field Values

NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE

public static final String NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE
Property for whether an assignment's due date will be added into schedule as an event(user settable). [String]

See Also:
Constant Field Values

PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID

public static final String PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID
Property for calendar event associated with an assignment's due date (user settable). [String]

See Also:
Constant Field Values

PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID

public static final String PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID
Property for announcement message id associated with an assignment's open date (user settable). [String]

See Also:
Constant Field Values

PROP_SUBMISSION_PREVIOUS_GRADES

public static final String PROP_SUBMISSION_PREVIOUS_GRADES
Property for assignment submission's previous grade (user settable). [String]

See Also:
Constant Field Values

PROP_SUBMISSION_SCALED_PREVIOUS_GRADES

public static final String PROP_SUBMISSION_SCALED_PREVIOUS_GRADES
Property for assignment submission's scaled previous grade (user settable). [String]

See Also:
Constant Field Values

PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT

public static final String PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT
Property for assignment submission's previous inline feedback text (user settable). [String]

See Also:
Constant Field Values

PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT

public static final String PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT
Property for assignment submission's previous feedback comment (user settable). [String]

See Also:
Constant Field Values

PROP_ASSIGNMENT_DELETED

public static final String PROP_ASSIGNMENT_DELETED
Property for assignment been deleted status(user settable) [String]

See Also:
Constant Field Values

PROP_PUBVIEW

public static final String PROP_PUBVIEW
Property indicating public viewable (manual). [Boolean]

See Also:
Constant Field Values

TYPE_URL

public static final String TYPE_URL
URL MIME type

See Also:
Constant Field Values

PROP_CONTENT_ENCODING

public static final String PROP_CONTENT_ENCODING
The encoding of the resource - UTF-8 or ISO-8559-1 for example

See Also:
Constant Field Values

PROP_STRUCTOBJ_TYPE

public static final String PROP_STRUCTOBJ_TYPE
Property for "object type" of a structured artifact

See Also:
Constant Field Values

FILE_TYPE

public static final String FILE_TYPE
Used to find non structured object ContentResources (files, url's, etc.)

See Also:
Constant Field Values
Method Detail

getPropertyNames

public Iterator getPropertyNames()
Access an iterator on the names of the defined properties (Strings).

Returns:
An iterator on the names of the defined properties (Strings) (may be empty).

getProperty

public String getProperty(String name)
Access a named property as a string (won't find multi-valued ones.)

Parameters:
name - The property name.
Returns:
the property value, or null if not found.

getPropertyList

public List getPropertyList(String name)
Access a named property as a List of (String), good for single or multi-valued properties.

Parameters:
name - The property name.
Returns:
the property value, or null if not found.

getPropertyFormatted

public String getPropertyFormatted(String name)
Access a named property as a properly formatted string.

Parameters:
name - The property name.
Returns:
the property value, or an empty string if not found.

isLiveProperty

public boolean isLiveProperty(String name)
Check if a named property is a live one (auto updated).

Parameters:
name - The property name.
Returns:
True if the property is a live one, false if not.

getBooleanProperty

public boolean getBooleanProperty(String name)
                           throws EmptyException,
                                  TypeException
Access a named property as a boolean.

Parameters:
name - The property name.
Returns:
the property value.
Throws:
EmptyException - if not found.
TypeException - if the property is found but not a boolean.

getLongProperty

public long getLongProperty(String name)
                     throws EmptyException,
                            TypeException
Access a named property as a long.

Parameters:
name - The property name.
Returns:
the property value.
Throws:
EmptyException - if not found.
TypeException - if the property is found but not a long.

getTimeProperty

public Time getTimeProperty(String name)
                     throws EmptyException,
                            TypeException
Access a named property as a Time.

Parameters:
name - The property name.
Returns:
the property value
Throws:
EmptyException - if not found.
TypeException - if the property is found but not a Time.

getUserProperty

public User getUserProperty(String name)
                     throws EmptyException,
                            TypeException
Access a named property as a User.

Parameters:
name - The property name.
Returns:
the property value
Throws:
EmptyException - if not found.
TypeException - if the property is found but not a User.

getNamePropCreator

public String getNamePropCreator()
Get the static String of PROP_CREATOR

Returns:
The static String of PROP_CREATOR

getNamePropModifiedBy

public String getNamePropModifiedBy()
Get the static String of PROP_MODIFIED_BY

Returns:
The static String of PROP_MODIFIED_BY

getNamePropCreationDate

public String getNamePropCreationDate()
Get the static String of PROP_CREATION_DATE

Returns:
The static String of PROP_CREATION_DATE

getNamePropDisplayName

public String getNamePropDisplayName()
Get the static String of PROP_DISPLAY_NAME

Returns:
The static String of PROP_DISPLAY_NAME

getNamePropCopyrightChoice

public String getNamePropCopyrightChoice()
Get the static String of PROP_COPYRIGHT_CHOICE

Returns:
The static String of PROP_COPYRIGHT_CHOICE

getNamePropCopyrightAlert

public String getNamePropCopyrightAlert()
Get the static String of PROP_COPYRIGHT_ALERT

Returns:
The static String of PROP_COPYRIGHT_ALERT

getNamePropCopyright

public String getNamePropCopyright()
Get the static String of PROP_COPYRIGHT

Returns:
The static String of PROP_COPYRIGHT

getNamePropContentLength

public String getNamePropContentLength()
Get the static String of PROP_CONTENT_LENGTH

Returns:
The static String of PROP_CONTENT_LENGTH

getNamePropContentType

public String getNamePropContentType()
Get the static String of PROP_CONTENT_TYPE

Returns:
The static String of PROP_CONTENT_TYPE

getNamePropModifiedDate

public String getNamePropModifiedDate()
Get the static String of PROP_MODIFIED_DATE

Returns:
The static String of PROP_MODIFIED_DATE

getNamePropIsCollection

public String getNamePropIsCollection()
Get the static String of PROP_IS_COLLECTION

Returns:
The static String of PROP_IS_COLLECTION

getNamePropCollectionBodyQuota

public String getNamePropCollectionBodyQuota()
Get the static String of PROP_COLLECTION_BODY_QUOTA

Returns:
The static String of PROP_COLLECTION_BODY_QUOTA

getNamePropChatRoom

public String getNamePropChatRoom()
Get the static String of PROP_CHAT_ROOM

Returns:
The static String of PROP_CHAT_ROOM

getNamePropTo

public String getNamePropTo()
Get the static String of PROP_TO

Returns:
The static String of PROP_TO

getNamePropDescription

public String getNamePropDescription()
Get the static String of PROP_DESCRIPTION

Returns:
The static String of PROP_DESCRIPTION

getNamePropCalendarType

public String getNamePropCalendarType()
Get the static String of PROP_CALENDAR_TYPE

Returns:
The static String of PROP_CALENDAR_TYPE

getNamePropCalendarLocation

public String getNamePropCalendarLocation()
Get the static String of PROP_CALENDAR_LOCATION

Returns:
The static String of PROP_CALENDAR_LOCATION

getNamePropReplyStyle

public String getNamePropReplyStyle()
Get the static String of PROP_REPLY_STYLE

Returns:
The static String of PROP_REPLY_STYLE

getNamePropNewAssignmentCheckAddDueDate

public String getNamePropNewAssignmentCheckAddDueDate()
Get the static String of NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE

Returns:
The static String of NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE

getNamePropNewAssignmentCheckAutoAnnounce

public String getNamePropNewAssignmentCheckAutoAnnounce()
Get the static String of NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE

Returns:
The static String of NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE

getNamePropSubmissionPreviousGrades

public String getNamePropSubmissionPreviousGrades()
Get the static String of PROP_SUBMISSION_PREVIOUS_GRADES

Returns:
The static String of PROP_SUBMISSION_PREVIOUS_GRADES

getNamePropSubmissionScaledPreviousGrades

public String getNamePropSubmissionScaledPreviousGrades()
Get the static String of PROP_SUBMISSION_SCALED_PREVIOUS_GRADES

Returns:
The static String of PROP_SUBMISSION_SCALED_PREVIOUS_GRADES

getNamePropSubmissionPreviousFeedbackText

public String getNamePropSubmissionPreviousFeedbackText()
Get the static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT

Returns:
The static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_TEXT

getNamePropSubmissionPreviousFeedbackComment

public String getNamePropSubmissionPreviousFeedbackComment()
Get the static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT

Returns:
The static String of PROP_SUBMISSION_PREVIOUS_FEEDBACK_COMMENT

getNamePropAssignmentDeleted

public String getNamePropAssignmentDeleted()
Get the static String of PROP_ASSIGNMENT_DELETED

Returns:
The static String of PROP_ASSIGNMENT_DELETED

getNamePropStructObjType

public String getNamePropStructObjType()
Get the static String of PROP_STRUCTOBJ_TYPE

Returns:
The static String of PROP_STRUCTOBJ_TYPE

getTypeUrl

public String getTypeUrl()
Get the static String of TYPE_URL

Returns:
The static String of TYPE_URL

toXml

public Element toXml(Document doc,
                     Stack stack)
Serialize the resource into XML, adding an element to the doc under the top of the stack element.

Parameters:
doc - The DOM doc to contain the XML (or null for a string return).
stack - The DOM elements, the top of which is the containing element of the new "resource" element.
Returns:
The newly added element.

addProperty

public void addProperty(String name,
                        String value)
Add a single valued property.

Parameters:
name - The property name.
value - The property value.

addPropertyToList

public void addPropertyToList(String name,
                              String value)
Add a value to a multi-valued property.

Parameters:
name - The property name.
value - The property value.

addAll

public void addAll(ResourceProperties other)
Add all the properties from the other ResourceProperties object.

Parameters:
other - The ResourceProperties to add.

addAll

public void addAll(Properties props)
Add all the properties from the Properties object.

Parameters:
props - The Properties to add.

clear

public void clear()
Remove all properties.


removeProperty

public void removeProperty(String name)
Remove a property.

Parameters:
name - The property name.

set

public void set(ResourceProperties other)
Take all values from this object.

Parameters:
other - The ResourceProperties object to take values from.