|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.FactoryAction
@SASScope(value="ALL") @BinaryCompatibilityOnly public final class FactoryAction
An Information Service factory's action (type, class name, and optionally method name) and optional filter. This class is intended for use by the com.sas.services.information package, and is likely not useful by external clients.
The syntax of the entry is as follows...
ctor::<fully qualified java class name>
service::<fully qualified java class name>::<method name>
class::<fully qualified java class name>::<method name>
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_CLASS
Action type: class. |
static java.lang.String |
TYPE_CONSTRUCTOR
Action type: constructor. |
static java.lang.String |
TYPE_SERVICE
Action type: service. |
| Constructor Summary | |
|---|---|
FactoryAction()
Constructs a default instance. |
|
FactoryAction(org.w3c.dom.Element element)
Constructs a factory action by parsing a "Type" XML Element. |
|
FactoryAction(java.lang.String action,
java.lang.String filter)
Constructs an instance for the specified action and filter. |
|
FactoryAction(java.lang.String uid,
java.lang.String action,
java.lang.String filter)
Constructs an instance for the specified action and filter. |
|
FactoryAction(java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String filter)
Constructs a factory action based upon its constituent components: action type fully qualified java class name |
|
FactoryAction(java.lang.String uid,
java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String filter)
Constructs a factory action based upon its constituent components: action type fully qualified java class name |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the resource. |
int |
compare(FactoryAction o1,
FactoryAction o2)
|
boolean |
equals(java.lang.Object otherAction)
Determines if the other factory action is equivalent to this factory action. |
java.lang.String |
getAction()
Gets an Information Service action string based upon the currently defined type, class, and method. |
java.lang.String |
getActionClassName()
Gets the action's class name. |
java.lang.String |
getActionMethodName()
Gets the action's method name. |
java.lang.String |
getActionType()
Gets the action's type: class constructor method |
java.lang.String |
getFilter()
|
java.lang.String |
getID()
|
java.lang.String |
getLocalizedResourceType()
Gets a localized value describing the resource's type. |
java.lang.String |
getLocalizedResourceTypeAndValue()
Gets a localized value describing the resource's type and value. |
java.lang.String |
getResourceID()
Gets the id that uniquely identifies the resource within a service's configuration. |
java.lang.String |
getResourceType()
Gets a value describing the resource's type. |
int |
getResourceTypeCode()
Gets the code describing the resource's type. |
java.lang.String |
getResourceValue()
Gets the value for this factory action. |
static java.lang.String[][] |
getValidActionTypes()
Gets an array of string values representing valid factory action types and an accompanying localized description suitable for use in a choice user interface component. |
int |
hashCode()
Gets a hash code based upon this object's attributes. |
static boolean |
isMethodEnabled(java.lang.String type)
Determines whether or not the action's method is enabled for the specified type of action. |
boolean |
isRequired()
Determines if this resource is required by the service's configuration. |
static boolean |
isValidType(java.lang.String type)
Determines whether or not the specified Information Service factory type is valid. |
void |
setAction(java.lang.String action)
Sets the factory's action. |
void |
setAction(java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String actionFilter)
Sets the action's class name. |
void |
setActionClassName(java.lang.String actionClassName)
Sets the factory action's class name. |
void |
setActionMethodName(java.lang.String actionMethodName)
Sets the factory action's method name. |
void |
setActionType(java.lang.String actionType)
|
void |
setFilter(java.lang.String filter)
Sets the factory action's filter. |
void |
setFilter(java.lang.String filter,
boolean isValidating)
Sets the factory action's filter. |
java.lang.String |
toString()
Gets a string representation of this factory action. |
void |
validate()
Validates the factory action. |
| Field Detail |
|---|
public static final java.lang.String TYPE_CLASS
public static final java.lang.String TYPE_CONSTRUCTOR
public static final java.lang.String TYPE_SERVICE
| Constructor Detail |
|---|
public FactoryAction()
public FactoryAction(java.lang.String action,
java.lang.String filter)
action - Actionfilter - Filter
public FactoryAction(java.lang.String uid,
java.lang.String action,
java.lang.String filter)
uid - Unique identifier or null if an ID should be generated.action - Actionfilter - Filter
public FactoryAction(java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String filter)
actionType - Action's type. Valid action types are:
ctorconstructorserviceactionClassName - Fully qualified Java class name.actionMethodName - Optional method name for use with an action type of
service.filter - A filter string used to select the correct action for an object.public FactoryAction(org.w3c.dom.Element element)
element - XML "Type" Element that represents an Information Service factory action.
java.lang.IllegalArgumentException - if an invalid parameter is specified.
public FactoryAction(java.lang.String uid,
java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String filter)
uid - Unique identifier or null if an ID should be generated.actionType - Action's type. Valid action types are:
ctorconstructorserviceactionClassName - Fully qualified Java class name.actionMethodName - Optional method name for use with an action type of
service.filter - Optional filter.| Method Detail |
|---|
public java.lang.String getID()
public java.lang.String getAction()
public void setAction(java.lang.String action)
action - Factory's action.
public void setAction(java.lang.String actionType,
java.lang.String actionClassName,
java.lang.String actionMethodName,
java.lang.String actionFilter)
throws java.lang.IllegalArgumentException
actionType - The type of action to take: "ctor", "constructor", "service".actionClassName - Action's fully qualified java class name.actionMethodName - If the action is "service", the service method name to invoke.actionFilter - A filter to test the object against to select the correct action.
java.lang.IllegalArgumentException - If the actionType is not valid.public void setFilter(java.lang.String filter)
filter - Factory action's filter.setFilter(String, boolean)
public void setFilter(java.lang.String filter,
boolean isValidating)
throws ServiceException
filter - isValidating - true if the filter should be validated or
false if the caller knows the filter is valid.
ServiceException - if an invalid filter is specified.setFilter(String)public java.lang.String getFilter()
public int compare(FactoryAction o1,
FactoryAction o2)
compare in interface java.util.Comparator<FactoryAction>public java.lang.String getActionType()
null if undefined.public java.lang.String getActionClassName()
null if undefined.
public void setActionType(java.lang.String actionType)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void setActionClassName(java.lang.String actionClassName)
actionClassName - Fully qualified Java class name.
java.lang.IllegalArgumentException - if an invalid class is specified.
public void validate()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the factory action is invalid.
public void setActionMethodName(java.lang.String actionMethodName)
throws java.lang.IllegalArgumentException
actionMethodName - Action's method name.
java.lang.IllegalArgumentException - if an invalid action method name is
specified.public java.lang.String getActionMethodName()
public static boolean isValidType(java.lang.String type)
type - Type of Information Service factory action for which we'd like
to determine if its valid or not.
true if the type is valid or false
if it isn't.public static boolean isMethodEnabled(java.lang.String type)
type - Action's type
true if a method may be specified for the action
type or false if not.public boolean equals(java.lang.Object otherAction)
equals in interface java.util.Comparator<FactoryAction>equals in class java.lang.ObjectotherAction - Another factory action to be compared for equivalency to this object.
true if the other factory action is equivalent.public int hashCode()
hashCode in class java.lang.Objectpublic static java.lang.String[][] getValidActionTypes()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface ConsumedResourceInterfaceclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String getResourceID()
ConsumedResourceInterface
getResourceID in interface ConsumedResourceInterfacepublic java.lang.String getResourceValue()
The syntax of the entry is:
ctor::<fully qualified java class name>service::<fully qualified java class name>::<method name>class::<fully qualified java class name>::<method name>
getResourceValue in interface ConsumedResourceInterfacepublic java.lang.String getLocalizedResourceType()
ConsumedResourceInterface
getLocalizedResourceType in interface ConsumedResourceInterfacepublic java.lang.String getLocalizedResourceTypeAndValue()
ConsumedResourceInterface
getLocalizedResourceTypeAndValue in interface ConsumedResourceInterfacepublic java.lang.String getResourceType()
ConsumedResourceInterface
getResourceType in interface ConsumedResourceInterfacepublic int getResourceTypeCode()
ConsumedResourceInterface
getResourceTypeCode in interface ConsumedResourceInterfacepublic boolean isRequired()
ConsumedResourceInterface
isRequired in interface ConsumedResourceInterfacetrue if this resource is required by the service's
configuration.public java.lang.String toString()
toString in class java.lang.Object
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||