|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.b2bcommerce.invoice.PropertyTools
public class PropertyTools
Utility methods for copying properties between objects and repository items in a generic way.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected static java.util.ResourceBundle |
sDefaultResources
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
PropertyTools()
|
Method Summary | |
---|---|
void |
copyProperties(java.lang.Object pSource,
java.lang.Object pDest,
java.util.Properties pPropertyMap)
Copy property values from one object to another, using a specified property mapping. |
MutableRepositoryItem |
getMutable(RepositoryItem pItem)
Return a mutable version of the specified repository item. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sDefaultResources
Constructor Detail |
---|
public PropertyTools()
Method Detail |
---|
public MutableRepositoryItem getMutable(RepositoryItem pItem) throws InvoiceException
pItem
- A repository item, which may or may not be mutable.
InvoiceException
- If any error occurs getting the mutable item. In cases where pItem's
parent repository is not a mutable repository the exception will wrap
an underlying ClassCastException; in all other cases it will wrap an
underlying RepositoryException.public void copyProperties(java.lang.Object pSource, java.lang.Object pDest, java.util.Properties pPropertyMap) throws InvoiceException
DynamicBeans
can be used to set or
get property values, which implies that either or both of the objects
can be repository items if desired.
pSource
- The source object from which property values being copied.pDest
- The destination object to which property values are being copied.pPropertyMap
- A mapping of source property name to destination property name.
Each name in the map corresponds to a property of the source object
whose value should be copied, the corresponding value in the map
is the name of the destination property on the destination object.
Either or both of the property names may include dotted subproperty
notation, allowing entries of the form
telephoneNumber=deliveryInfo.phoneNumber
in the property map.
InvoiceException
- if any error occurs getting property values from the source object
or setting them on the destination object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |