public class Restriction extends Object implements Serializable
| Constructor and Description |
|---|
Restriction(String property,
String object)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static List<Restriction> |
fromString(List<String> restrictionStrings)
creates a list of restrictions from a list of strings
|
static Restriction |
fromString(String s)
returns a Restriction from String
|
String |
getObject()
returns object
|
String |
getProperty()
returns property
|
static String |
restrictionUnion(Collection<Restriction> restrictions,
String var)
joins restriction with union
|
static String |
restrictionUnion(Vector<String> restrictionStrings,
String var)
creates a list of restrictions from the vector of strings and joins them
with union operator
|
String |
toString() |
String |
toString(String var)
String representation with var
|
public static Restriction fromString(String s) throws IllegalArgumentException
s - string to get restriction fromIllegalArgumentException - thrown if parameter s does not consist of exactly two or
three parts separated by space characterspublic static String restrictionUnion(Collection<Restriction> restrictions, String var) throws IllegalArgumentException
restrictions - restrictionsvar - varIllegalArgumentException - thrown if on of the input restrictions was nullpublic static List<Restriction> fromString(List<String> restrictionStrings)
restrictionStrings - restrictionStringspublic static String restrictionUnion(Vector<String> restrictionStrings, String var)
restrictionStrings - restrictionStringsvar - varpublic String getProperty()
public String getObject()
Copyright © 2018. All rights reserved.