com.ecfeed.core.model.NodePropertyDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecfeed.junit Show documentation
Show all versions of ecfeed.junit Show documentation
An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.
The newest version!
/*******************************************************************************
*
* Copyright (c) 2016 ecFeed AS.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*******************************************************************************/
package com.ecfeed.core.model;
class NodePropertyDef {
private String fName;
private String fType;
NodePropertyValueSet fValueSet;
NodePropertyDef(String name, String type, String defaultValue, String[] possibleValues) {
fName = name;
fType = type;
fValueSet = new NodePropertyValueSet(defaultValue, possibleValues);
}
NodePropertyDef(String name, String type, NodePropertyValueSet valueSet) {
fName = name;
fType = type;
fValueSet = valueSet;
}
String getName() {
return fName;
}
String getType() {
return fType;
}
String getDefaultValue() {
return fValueSet.getDefaultValue();
}
String[] getPossibleValues() {
return fValueSet.getPossibleValues();
}
NodePropertyValueSet getValueSet() {
return fValueSet;
}
boolean matchesPossibleValue(String valueToMatch) {
return fValueSet.isOneOfPossibleValues(valueToMatch);
}
boolean matchesPossibleValueIgnoreCase(String valueToMatch) {
return fValueSet.isOneOfPossibleValuesIgnoreCase(valueToMatch);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy