public class ResourceDomainValues
extends java.lang.Object
WmManagedConnection.adapterResourceDomainLookup(java.lang.String, java.lang.String, java.lang.String[][])
.Constructor and Description |
---|
ResourceDomainValues(java.lang.String name)
Constructs an empty resource domain values object.
|
ResourceDomainValues(java.lang.String name,
ResourceDomainValue[] resourceDomainValues)
Constructs a complete list of resource domain values from an array of
ResourceDomainValue objects. |
ResourceDomainValues(java.lang.String name,
java.lang.String[] names)
Constructs a complete list of simple resource domain values.
|
ResourceDomainValues(java.lang.String name,
java.lang.String[] names,
java.lang.String[] displayNames,
java.lang.String[] endNames,
boolean[] required)
Constructs a complete list of resource domain values from correlated
java.lang.String arrays. |
Modifier and Type | Method and Description |
---|---|
void |
addValue(ResourceDomainValue value)
Adds a parameter value to the list of values for this resource domain.
|
java.lang.String |
getName()
Returns the name of this resource domain.
|
com.wm.data.IData |
saveAsIData()
Save the ResourceDomain values to IData.
|
void |
setCanValidate(boolean canValidate)
Sets the canValidate flag.
|
void |
setComplete(boolean isComplete)
Sets the complete flag.
|
void |
setDisabled(boolean isDisabled)
Sets the disabled flag.
|
java.lang.String |
toString()
Returns a
java.lang.String representation of the values in
this resource domain. |
public ResourceDomainValues(java.lang.String name) throws AdapterException
addValue(ResourceDomainValue)
.name
- the name of the resource domainAdapterException
- if an error occurspublic ResourceDomainValues(java.lang.String name, ResourceDomainValue[] resourceDomainValues) throws AdapterException
ResourceDomainValue
objects.name
- name of the resource domainresourceDomainValues
- array of resource domain value objectsAdapterException
- if an error occurspublic ResourceDomainValues(java.lang.String name, java.lang.String[] names) throws AdapterException
isComplete
to true.name
- the name of the resource domainnames
- the list of value names for the resource domainAdapterException
- if an error occurspublic ResourceDomainValues(java.lang.String name, java.lang.String[] names, java.lang.String[] displayNames, java.lang.String[] endNames, boolean[] required) throws AdapterException
java.lang.String
arrays.
Sets the names, display names, types, resource types, and required flags.
Sets isComplete
to true.names
- the list of value names for the resource domain. This
parameter should not be null
. If any of the
other parameters are not null
, then they
should contain the same number of entries as
names
.displayNames
- list of displayNames, or null
endNames
- used for numeric-valued entries. This parameter allows you to
specify a range of values instead of just one value. For
example, if your adapter can accept numeric values from 10 to
10,000, you can set name
to "10" and
endName
to "10000".required
- list of required flags, or null
AdapterException
- if an error occurspublic void addValue(ResourceDomainValue value)
value
- the value to be addedpublic java.lang.String getName()
public com.wm.data.IData saveAsIData()
public void setCanValidate(boolean canValidate)
WmManagedConnection.adapterCheckValue(java.lang.String, java.lang.String, java.lang.String[][], java.lang.String)
,
which is the method that is called to validate the values that the user
typed in.
If you set the complete flag to false and the canValidate flag to false, then the Adapter Service Editor or Adapter Notification Editor will treat any value typed in by a user as a legal value.
canValidate
- the value to setpublic void setComplete(boolean isComplete)
canValidate
flag to true.isComplete
- the value to setpublic void setDisabled(boolean isDisabled)
isDisabled
- the value to setpublic java.lang.String toString()
java.lang.String
representation of the values in
this resource domain.toString
in class java.lang.Object
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.