| |
|
| java.lang.Object com.flexive.shared.structure.FxMultiplicity
FxMultiplicity | public class FxMultiplicity implements Serializable(Code) | | Multiplicity of groups and properties
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
N | final public static int N(Code) | | Unlimited occurances
|
RANDOM_MAX | final public static int RANDOM_MAX(Code) | | No more than 20 elements to be created in random creations
|
FxMultiplicity | public FxMultiplicity(int min, int max)(Code) | | Constructor
Parameters: min - minimum multiplicity Parameters: max - maximum multiplicity, Integer.MAX_VALUE if unlimited |
FxMultiplicity | public FxMultiplicity(FxMultiplicity m)(Code) | | Copy Constructor
Parameters: m - an FxMultiplicity object |
getIntToString | public static String getIntToString(int m)(Code) | | Converts a int into a String holding its number or SYMBOL_UNLIMITED
Parameters: m - representing a Number the number as String |
getMax | public int getMax()(Code) | | Get the maximum multiplicity
maximum multiplicity |
getMin | public int getMin()(Code) | | Get the minimum multiplicity
minimum multiplicity |
getRandomRange | public int getRandomRange(Random rnd, int maxMultiplicity)(Code) | | Get the number of elements to create for this multiplicity if creating random test data
Parameters: rnd - Random Parameters: maxMultiplicity - the maximum (random) multiplicity number of elements to create for this multiplicity if creating random test data |
getStringToInt | public static int getStringToInt(String m)(Code) | | Converts a String that represents a Number or "N" to int
Parameters: m - representing a Number or "N" the number as int or Integer.MAX_VALUE |
hashCode | public int hashCode()(Code) | | |
isMultiple | public boolean isMultiple()(Code) | | More than one possible?
if more than one are possible |
isOptional | public boolean isOptional()(Code) | | Is an occurance optional?
if an occurance is optional |
isRequired | public boolean isRequired()(Code) | | Is at least one occurance required?
if at least one occurance is required |
isUnlimited | public boolean isUnlimited()(Code) | | May occur unlimited?
unlimited? |
isValid | public boolean isValid(int index)(Code) | | Check if the given index is valid for this multiplicity
Parameters: index - the index to check valid |
toString | public String toString()(Code) | | String representation, uses SYMBOL_UNLIMITED for unlimited max occurances
String representation, uses SYMBOL_UNLIMITED for unlimited max occurances |
|
|
|