public class ResourceDomainValue
extends java.lang.Object
ResourceDomainValues
Constructor and Description |
---|
ResourceDomainValue()
Constructs an empty value.
|
ResourceDomainValue(java.lang.String name)
Constructs an empty value with the name specified.
|
ResourceDomainValue(java.lang.String name,
java.lang.String displayName,
java.lang.String endName,
boolean required)
Constructor with all the parameters specified.
|
Modifier and Type | Method and Description |
---|---|
com.wm.data.IData |
saveAsIData() |
void |
setDisplayName(java.lang.String displayName)
Sets the display name of this value.
|
void |
setEndName(java.lang.String endName)
Sets the end Name.
|
void |
setName(java.lang.String name)
Sets the internal name of this value.
|
void |
setRequired(boolean required)
Sets the required flag.
|
java.lang.String |
toString()
Returns a
java.lang.String representation of this resource
domain value. |
public ResourceDomainValue()
setName(java.lang.String)
to set the resource domain value name.public ResourceDomainValue(java.lang.String name)
name
- the name of this valuepublic ResourceDomainValue(java.lang.String name, java.lang.String displayName, java.lang.String endName, boolean required)
name
can be null
.name
- the name of this value. This parameter is required.displayName
- the display name of this value. This parameter is optional.endName
- the highest numeric value in a range. This parameter allows
you to specify a range of values rather than a single 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".
This parameter is optional.required
- true if a required name. If this parameter is set and this
resourceDomain is used for a map, then this name must be
mapped. This parameter is optional.public com.wm.data.IData saveAsIData()
public void setDisplayName(java.lang.String displayName)
displayName
- the display namepublic void setEndName(java.lang.String endName)
setName(java.lang.String)
to establish a range of valid
numeric values. The value given to setName(java.lang.String)
is the low value of
the range and the value given to setEndName
is the high
value of the range.
Other restrictions also apply to the use of this property. Refer to the ADK User's Guide for details.
endName
- the upper limit of the range of numeric valuespublic void setName(java.lang.String name)
name
- the namepublic void setRequired(boolean required)
required
- true if requiredpublic java.lang.String toString()
java.lang.String
representation of this resource
domain value.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.