|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.AttributeSetException
public class AttributeSetException
An AttributeSetException is thrown when an assignment to an Entity's attribute fails. Attribute assignment can fail because the value does not satisfy validation constraints.
Constructor Summary | |
---|---|
AttributeSetException()
Create a default AttributeSetException instance. |
|
AttributeSetException(java.lang.Object entity,
java.lang.String attributeName,
java.lang.Object value,
java.lang.String bundleName,
java.lang.String resourceName,
java.lang.Object[] args,
java.lang.ClassLoader classLoader)
Construct an AttributeSetException using the elements necessary to render the exception under different locales. |
|
AttributeSetException(java.lang.String message)
Create an AttributeSetException instance with a default message. |
|
AttributeSetException(java.lang.String bundleName,
java.lang.String resourceName,
java.lang.Object[] args,
java.lang.ClassLoader classLoader)
Construct an AttributeSetException using the elements necessary to render the exception under different locales. |
Method Summary | |
---|---|
java.lang.String |
getAttributeName()
Return the name of the attribute for which attribute assigment failed. |
java.lang.Object |
getEntity()
Return the Entity for which the attribute assignment failed. |
java.lang.Object |
getValue()
Return the value that failed assignment to an attribute. |
void |
setAttributeName(java.lang.String _attributeName)
Set the name of the attribute for which attribute assigment failed. |
void |
setEntity(java.lang.Object _entity)
Set the Entity for which the attribute assignment failed. |
void |
setMessage(java.lang.Object entity,
java.lang.String attributeName,
java.lang.Object value,
java.lang.String bundleName,
java.lang.String resourceName,
java.lang.Object[] args,
java.lang.ClassLoader classLoader)
Set the elements of a localizable message. |
void |
setValue(java.lang.Object _value)
Save the value that failed assignment to an attribute. |
Constructor Detail |
---|
public AttributeSetException()
setMessage(Object entity, String attributeName, Object value, String bundleName, String resourceName, Object[] args, ClassLoader classLoader)
Consider using
AttributeSetException(Object entity, String attributeName, Object value, String bundleName, String resourceName, Object[] args, ClassLoader classLoader)
instead.
public AttributeSetException(java.lang.String message)
setMessage(Object entity, String attributeName, Object value, String bundleName, String resourceName, Object[] args, ClassLoader classLoader)
Consider using
AttributeSetException(Object entity, String attributeName, Object value, String bundleName, String resourceName, Object[] args, ClassLoader classLoader)
instead.
public AttributeSetException(java.lang.String bundleName, java.lang.String resourceName, java.lang.Object[] args, java.lang.ClassLoader classLoader)
bundleName
- the name of a resource bundle, such as "com.sas.text.Resources"resourceName
- The name of a resource within the resource bundleargs
- An array of arguments which are formatted using MessageFormat
and the message obtained from the resourceNameclassLoader
- The class loader of the class from which the resource bundle
is loaded. Normally, this is the instantiating class' class loader. Since
the client which formats the exception may reside in a different class loader,
it may not be able to find the correct resource bundle. This class loader
allows this AttributeSetException to find the correct resource bundle.public AttributeSetException(java.lang.Object entity, java.lang.String attributeName, java.lang.Object value, java.lang.String bundleName, java.lang.String resourceName, java.lang.Object[] args, java.lang.ClassLoader classLoader)
entity
- the object for which the attribute assignment failedattributeName
- the name of the attribute which was the target of the assignmentvalue
- the value that was being set on the attributebundleName
- the name of a resource bundle, such as "com.sas.text.Resources"resourceName
- The name of a resource within the resource bundle.args
- An array of arguments which are formatted using MessageFormat
and the message obtained from the resourceNameclassLoader
- The class loader of the class from which the resource bundle
is loaded. Normally, this is the instantiating class' class loader. Since
the client which formats the exception may reside in a different class loader,
it may not be able to find the correct resource bundle. This class loader
allows this AttributeSetException to find the correct resource bundle.Method Detail |
---|
public java.lang.Object getEntity()
public void setEntity(java.lang.Object _entity)
_entity
- the object for which the attribute assignment failedpublic java.lang.Object getValue()
public void setValue(java.lang.Object _value)
_value
- the value that was being set on the attributepublic java.lang.String getAttributeName()
public void setAttributeName(java.lang.String _attributeName)
_attributeName
- the name of the attribute which was the target of the assignmentpublic void setMessage(java.lang.Object entity, java.lang.String attributeName, java.lang.Object value, java.lang.String bundleName, java.lang.String resourceName, java.lang.Object[] args, java.lang.ClassLoader classLoader)
entity
- the object for which the attribute assignment failedattributeName
- the name of the attribute which was the target of the assignmentvalue
- the value that was being set on the attributebundleName
- the name of a resource bundleresourceName
- the name of the resource from the bundleargs
- the arguments to pass to a MessageFormat object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |