tfw.tsm.ecd.StringECD Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tfw Show documentation
Show all versions of tfw Show documentation
The FrameWork for building highly scalable and maintainable applications
The newest version!
package tfw.tsm.ecd;
import tfw.value.ClassValueConstraint;
import tfw.value.SetConstraint;
/**
* A java.lang.String
event channel description
*/
public class StringECD extends ObjectECD {
/**
* Creates an event channel description with the specified name.
*
* @param name
* the name of the event channel.
*/
public StringECD(String name) {
super(name, ClassValueConstraint.STRING);
}
/**
* Creates an event channel description with the specified name and an
* explicit set of legal values.
*
* @param name
* the name of the event channel.
* @param validValues
* This list of legal values for the event channel.
*/
public StringECD(String name, String[] validValues) {
super(name, new SetConstraint<>(validValues));
}
}