/* * Ozone Suite copyright (c) Pericore, Inc. 2007-2017. * All rights reserved. */ package com.pericore.xml.xacml.policy; import java.util.function.UnaryOperator; /** * * @author Jacob Dilles */ public interface XACMLFunctions2 extends UnaryOperator{ /** * XACML specifies the following functions. Unless otherwise specified, if an argument of one of these functions were to evaluate to "Indeterminate", then the function SHALL be set to "Indeterminate". * * Note that in each case an implementation is conformant as long as it produces the same result as is specified here, regardless of how and in what order the implementation behaves internally. */ /** * A.3.1 Equality predicates * * The following functions are the equality functions for the various primitive types. Each function for a particular data-type follows a specified standard convention for that data-type. */ /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL return "True" if and only if the value of both of its arguments are of equal length and each string is determined to be equal. Otherwise, it SHALL return False. The comparison SHALL use Unicode codepoint collation, as defined for the identifier http://www.w3.org/2005/xpath-functions/collation/codepoint by [XF]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_equal implements XACMLAttributeBag { static final String FUNCTION_STRING_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:string-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-equal"); } @Override public String toString(){ return FUNCTION_STRING_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The result SHALL be True if and only if the two strings are equal as defined by urn:oasis:names:tc:xacml:1.0:function:string-equal after they have both been converted to lower case with urn:oasis:names:tc:xacml:1.0:function:string-normalize-to-lower-case. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_equal_ignore_case implements XACMLAttributeBag { static final String FUNCTION_STRING_EQUAL_IGNORE_CASE = "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"); } @Override public String toString(){ return FUNCTION_STRING_EQUAL_IGNORE_CASE; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#boolean and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL return "True" if and only if the arguments are equal. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_equal implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:boolean-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); Boolean arg2 = args.get(1, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-equal"); } @Override public String toString(){ return FUNCTION_BOOLEAN_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL return True if and only if the two arguments represent the same number. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_equal implements XACMLAttributeBag { static final String FUNCTION_INTEGER_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:integer-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-equal"); } @Override public String toString(){ return FUNCTION_INTEGER_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#double and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL perform its evaluation on doubles according to IEEE 754 [IEEE754]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_equal implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:double-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-equal"); } @Override public String toString(){ return FUNCTION_DOUBLE_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#date and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL perform its evaluation according to the op:date-equal function [XF] Section 10.4.9. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:date-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-equal"); } @Override public String toString(){ return FUNCTION_DATE_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL perform its evaluation according to the op:time-equal function [XF] Section 10.4.12. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_equal implements XACMLAttributeBag { static final String FUNCTION_TIME_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:time-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-equal"); } @Override public String toString(){ return FUNCTION_TIME_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#dateTime and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL perform its evaluation according to the op:dateTime-equal function [XF] Section 10.4.6. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:dateTime-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-equal"); } @Override public String toString(){ return FUNCTION_DATE_TIME_EQUAL; } /** * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#dayTimeDuration and SHALL return an "http://www.w3.org/2001/XMLSchema#boolean". This function shall perform its evaluation according to the "op:duration-equal" function [XF] Section 10.4.5. Note that the lexical representation of each argument MUST be converted to a value expressed in fractional seconds [XF] Section 10.3.2. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_equal implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_EQUAL = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDayTimeDuration arg1 = args.get(0, XMLDayTimeDuration.class); XMLDayTimeDuration arg2 = args.get(1, XMLDayTimeDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-equal"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_EQUAL; } /** * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#yearMonthDuration and SHALL return an "http://www.w3.org/2001/XMLSchema#boolean". This function shall perform its evaluation according to the "op:duration-equal" function [XF] Section 10.4.5. Note that the lexical representation of each argument MUST be converted to a value expressed in fractional seconds [XF] Section 10.3.2. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_equal implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_EQUAL = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLYearMonthDuration arg1 = args.get(0, XMLYearMonthDuration.class); XMLYearMonthDuration arg2 = args.get(1, XMLYearMonthDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-equal"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#anyURI and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL convert the arguments to strings with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI and return True if and only if the values of the two arguments are equal on a codepoint-by-codepoint basis. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_equal implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"); } @Override public String toString(){ return FUNCTION_ANY_URI_EQUAL; } /** * This function SHALL take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name" and SHALL return an "http://www.w3.org/2001/XMLSchema#boolean". It SHALL return True if and only if each Relative Distinguished Name (RDN) in the two arguments matches. Otherwise, it SHALL return False. Two RDNs shall be said to match if and only if the result of the following operations is True . * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_equal implements XACMLAttributeBag { static final String FUNCTION_X500NAME_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:x500Name-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name arg1 = args.get(0, untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class); untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name arg2 = args.get(1, untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-equal"); } @Override public String toString(){ return FUNCTION_X500NAME_EQUAL; } /** * This function SHALL take two arguments of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return True if and only if the two arguments are equal. Otherwise, it SHALL return False. An RFC822 name consists of a local-part followed by "@" followed by a domain-part. The local-part is case-sensitive, while the domain-part (which is usually a DNS host name) is not case-sensitive. Perform the following operations: * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_equal implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take two arguments of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name,two arguments,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name arg1 = args.get(0, untyped:take two arguments of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name,two arguments,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.class); untyped:take two arguments of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name,two arguments,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name arg2 = args.get(1, untyped:take two arguments of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name,two arguments,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-equal"); } @Override public String toString(){ return FUNCTION_RFC822NAME_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#hexBinary and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if the octet sequences represented by the value of both arguments have equal length and are equal in a conjunctive, point-wise, comparison using the urn:oasis:names:tc:xacml:1.0:function:integer-equal function. Otherwise, it SHALL return False. The conversion from the string representation to an octet sequence SHALL be as specified in [XS] Section 3.2.15. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_equal implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-equal"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#base64Binary and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if the octet sequences represented by the value of both arguments have equal length and are equal in a conjunctive, point-wise, comparison using the urn:oasis:names:tc:xacml:1.0:function:integer-equal function. Otherwise, it SHALL return False. The conversion from the string representation to an octet sequence SHALL be as specified in [XS] Section 3.2.16. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_equal implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-equal"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_EQUAL; } /** * A.3.2 Arithmetic functions * * All of the following functions SHALL take two arguments of the specified data-type, integer, or double, and SHALL return an element of integer or double data-type, respectively. However, the add and multiply functions MAY take more than two arguments. Each function evaluation operating on doubles SHALL proceed as specified by their logical counterparts in IEEE 754 [IEEE754]. For all of these functions, if any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". In the case of the divide functions, if the divisor is zero, then the function SHALL evaluate to Indeterminate. */ /** * This function MUST accept two or more arguments. * * This function SHALL take two or more arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return a value of the same data-type. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the sum of all input arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_add implements XACMLAttributeBag { static final String FUNCTION_INTEGER_ADD = "urn:oasis:names:tc:xacml:1.0:function:integer-add"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) BigInteger argn = args.get(i, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-add"); } @Override public String toString(){ return FUNCTION_INTEGER_ADD; } /** * This function MUST accept two or more arguments. * * This function SHALL take two or more arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return a value of the same data-type. Each function evaluation operating on doubles SHALL proceed as specified by their logical counterparts in IEEE 754 [IEEE754]. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the sum of all input arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_add implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_ADD = "urn:oasis:names:tc:xacml:1.0:function:double-add"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) Double argn = args.get(i, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-add"); } @Override public String toString(){ return FUNCTION_DOUBLE_ADD; } /** * The result is the second argument subtracted from the first argument. * * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return a value of the same data-type. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the difference between the first and second input argument * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_subtract implements XACMLAttributeBag { static final String FUNCTION_INTEGER_SUBTRACT = "urn:oasis:names:tc:xacml:1.0:function:integer-subtract"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-subtract"); } @Override public String toString(){ return FUNCTION_INTEGER_SUBTRACT; } /** * The result is the second argument subtracted from the first argument. * * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return a value of the same data-type. Each function evaluation operating on doubles SHALL proceed as specified by their logical counterparts in IEEE 754 [IEEE754]. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the difference between the first and second input argument * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_subtract implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_SUBTRACT = "urn:oasis:names:tc:xacml:1.0:function:double-subtract"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-subtract"); } @Override public String toString(){ return FUNCTION_DOUBLE_SUBTRACT; } /** * This function MUST accept two or more arguments. * * This function SHALL take two or more arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return a value of the same data-type. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the product of all input arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_multiply implements XACMLAttributeBag { static final String FUNCTION_INTEGER_MULTIPLY = "urn:oasis:names:tc:xacml:1.0:function:integer-multiply"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) BigInteger argn = args.get(i, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-multiply"); } @Override public String toString(){ return FUNCTION_INTEGER_MULTIPLY; } /** * This function MUST accept two or more arguments. * * This function SHALL take two or more arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return a value of the same data-type. Each function evaluation operating on doubles SHALL proceed as specified by their logical counterparts in IEEE 754 [IEEE754]. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". The result of this function is the product of all input arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_multiply implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_MULTIPLY = "urn:oasis:names:tc:xacml:1.0:function:double-multiply"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) Double argn = args.get(i, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-multiply"); } @Override public String toString(){ return FUNCTION_DOUBLE_MULTIPLY; } /** * The result is the first argument divided by the second argument. * * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return a value of the same data-type. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". In the case of the divide functions, if the divisor is zero, then the function SHALL evaluate to Indeterminate. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_divide implements XACMLAttributeBag { static final String FUNCTION_INTEGER_DIVIDE = "urn:oasis:names:tc:xacml:1.0:function:integer-divide"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-divide"); } @Override public String toString(){ return FUNCTION_INTEGER_DIVIDE; } /** * The result is the first argument divided by the second argument. * * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return a value of the same data-type. Each function evaluation operating on doubles SHALL proceed as specified by their logical counterparts in IEEE 754 [IEEE754]. If any argument is "Indeterminate", then the function SHALL evaluate to "Indeterminate". In the case of the divide functions, if the divisor is zero, then the function SHALL evaluate to Indeterminate. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_divide implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_DIVIDE = "urn:oasis:names:tc:xacml:1.0:function:double-divide"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-divide"); } @Override public String toString(){ return FUNCTION_DOUBLE_DIVIDE; } /** * The result is remainder of the first argument divided by the second argument. * * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#integer" and SHALL return a value of the same data-type. The result is the same as the evaultation of Math.mod(argument[0], argument[1]) * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_mod implements XACMLAttributeBag { static final String FUNCTION_INTEGER_MOD = "urn:oasis:names:tc:xacml:1.0:function:integer-mod"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-mod"); } @Override public String toString(){ return FUNCTION_INTEGER_MOD; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#integer" and SHALL return a value of the same data-type. The result is the evaluation of Math.abs(argument) * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_abs implements XACMLAttributeBag { static final String FUNCTION_INTEGER_ABS = "urn:oasis:names:tc:xacml:1.0:function:integer-abs"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-abs"); } @Override public String toString(){ return FUNCTION_INTEGER_ABS; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#double" and SHALL return a value of the same data-type. The result is the evaluation of Math.abs(argument) * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_abs implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_ABS = "urn:oasis:names:tc:xacml:1.0:function:double-abs"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-abs"); } @Override public String toString(){ return FUNCTION_DOUBLE_ABS; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#double" and SHALL return a value of the same data-type. The result is the evaluation of Math.round(argument) * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$round implements XACMLAttributeBag { static final String FUNCTION_ROUND = "urn:oasis:names:tc:xacml:1.0:function:round"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:round"); } @Override public String toString(){ return FUNCTION_ROUND; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#double" and SHALL return a value of the same data-type. The result is the evaluation of Math.floor(argument) * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$floor implements XACMLAttributeBag { static final String FUNCTION_FLOOR = "urn:oasis:names:tc:xacml:1.0:function:floor"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:floor"); } @Override public String toString(){ return FUNCTION_FLOOR; } /** * A.3.3 String conversion functions * * The following functions convert between values of the data-type http://www.w3.org/2001/XMLSchema#string primitive types. */ /** * This function SHALL take one argument of data-type http://www.w3.org/2001/XMLSchema#string and SHALL normalize the value by stripping off all leading and trailing white space characters. The whitespace characters are defined in the metasymbol S (Production 3) of [XML]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_normalize_space implements XACMLAttributeBag { static final String FUNCTION_STRING_NORMALIZE_SPACE = "urn:oasis:names:tc:xacml:1.0:function:string-normalize-space"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-normalize-space"); } @Override public String toString(){ return FUNCTION_STRING_NORMALIZE_SPACE; } /** * This function SHALL take one argument of data-type http://www.w3.org/2001/XMLSchema#string and SHALL normalize the value by converting each upper case character to its lower case equivalent. Case mapping shall be done as specified for the fn:lower-case function in [XF] with no tailoring for particular languages or environments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_normalize_to_lower_case implements XACMLAttributeBag { static final String FUNCTION_STRING_NORMALIZE_TO_LOWER_CASE = "urn:oasis:names:tc:xacml:1.0:function:string-normalize-to-lower-case"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-normalize-to-lower-case"); } @Override public String toString(){ return FUNCTION_STRING_NORMALIZE_TO_LOWER_CASE; } /** * A.3.4 Numeric data-type conversion functions * * The following functions convert between the data-type http://www.w3.org/2001/XMLSchema#integer and http://www.w3.org/2001/XMLSchema#double primitive types. */ /** * This function SHALL take one argument of data-type http://www.w3.org/2001/XMLSchema#double and SHALL truncate its numeric value to a whole number and return an element of data-type http://www.w3.org/2001/XMLSchema#integer. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_to_integer implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_TO_INTEGER = "urn:oasis:names:tc:xacml:1.0:function:double-to-integer"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-to-integer"); } @Override public String toString(){ return FUNCTION_DOUBLE_TO_INTEGER; } /** * This function SHALL take one argument of data-type http://www.w3.org/2001/XMLSchema#integer and SHALL promote its value to an element of data-type http://www.w3.org/2001/XMLSchema#double with the same numeric value. If the integer argument is outside the range which can be represented by a double, the result SHALL be Indeterminate, with the status code urn:oasis:names:tc:xacml:1.0:status:processing-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_to_double implements XACMLAttributeBag { static final String FUNCTION_INTEGER_TO_DOUBLE = "urn:oasis:names:tc:xacml:1.0:function:integer-to-double"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-to-double"); } @Override public String toString(){ return FUNCTION_INTEGER_TO_DOUBLE; } /** * A.3.5 Logical functions * * This section contains the specification for logical functions that operate on arguments of data-type http://www.w3.org/2001/XMLSchema#boolean. */ /** * This function SHALL return "False" if it has no arguments and SHALL return "True" if at least one of its arguments evaluates to "True". The order of evaluation SHALL be from first argument to last. The evaluation SHALL stop with a result of "True" if any argument evaluates to "True", leaving the rest of the arguments unevaluated. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$or implements XACMLAttributeBag { static final String FUNCTION_OR = "urn:oasis:names:tc:xacml:1.0:function:or"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) Boolean argn = args.get(i, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:or"); } @Override public String toString(){ return FUNCTION_OR; } /** * This function SHALL return "True" if it has no arguments and SHALL return "False" if one of its arguments evaluates to "False". The order of evaluation SHALL be from first argument to last. The evaluation SHALL stop with a result of "False" if any argument evaluates to "False", leaving the rest of the arguments unevaluated. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$and implements XACMLAttributeBag { static final String FUNCTION_AND = "urn:oasis:names:tc:xacml:1.0:function:and"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) Boolean argn = args.get(i, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:and"); } @Override public String toString(){ return FUNCTION_AND; } /** * The first argument to this function SHALL be of data-type http://www.w3.org/2001/XMLSchema#integer. The remaining arguments SHALL be of data-type http://www.w3.org/2001/XMLSchema#boolean. The first argument specifies the minimum number of the remaining arguments that MUST evaluate to "True" for the expression to be considered "True". If the first argument is 0, the result SHALL be "True". If the number of arguments after the first one is less than the value of the first argument, then the expression SHALL result in "Indeterminate". The order of evaluation SHALL be: first evaluate the integer value, and then evaluate each subsequent argument. The evaluation SHALL stop and return "True" if the specified number of arguments evaluate to "True". The evaluation of arguments SHALL stop if it is determined that evaluating the remaining arguments will not satisfy the requirement. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$n_of implements XACMLAttributeBag { static final String FUNCTION_N_OF = "urn:oasis:names:tc:xacml:1.0:function:n-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) Boolean argn = args.get(i, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:n-of"); } @Override public String toString(){ return FUNCTION_N_OF; } /** * This function SHALL take one argument of data-type http://www.w3.org/2001/XMLSchema#boolean. If the argument evaluates to "True", then the result of the expression SHALL be "False". If the argument evaluates to "False", then the result of the expression SHALL be "True". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$not implements XACMLAttributeBag { static final String FUNCTION_NOT = "urn:oasis:names:tc:xacml:1.0:function:not"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:not"); } @Override public String toString(){ return FUNCTION_NOT; } /** * A.3.6 Numeric comparison functions * * These functions form a minimal set for comparing two numbers, yielding a Boolean result. For doubles they SHALL comply with the rules governed by IEEE 754 [IEEE754]. */ /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is greater than the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_greater_than implements XACMLAttributeBag { static final String FUNCTION_INTEGER_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:integer-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-greater-than"); } @Override public String toString(){ return FUNCTION_INTEGER_GREATER_THAN; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is greater than or equal to the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_INTEGER_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:integer-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_INTEGER_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is less than the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_less_than implements XACMLAttributeBag { static final String FUNCTION_INTEGER_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:integer-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-less-than"); } @Override public String toString(){ return FUNCTION_INTEGER_LESS_THAN; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#integer and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is less than or equal to the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_INTEGER_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:integer-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_INTEGER_LESS_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is greater than the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_greater_than implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:double-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-greater-than"); } @Override public String toString(){ return FUNCTION_DOUBLE_GREATER_THAN; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is greater than or equal to the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:double-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_DOUBLE_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is less than the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_less_than implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:double-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-less-than"); } @Override public String toString(){ return FUNCTION_DOUBLE_LESS_THAN; } /** * This function SHALL take two arguments of the data-type http://www.w3.org/2001/XMLSchema#double and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. When the first argument is less than or equal to the second argument, the return value SHALL be "True". Otherwise, the return value SHALL be "False" * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:double-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_DOUBLE_LESS_THAN_OR_EQUAL; } /** * A.3.7 Date and time arithmetic functions * * These functions perform arithmetic operations with date and time. */ /** * This function SHALL take two arguments, the first SHALL be of data-type http://www.w3.org/2001/XMLSchema#dateTime and the second SHALL be of data-type http://www.w3.org/2001/XMLSchema#dayTimeDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#dateTime. This function SHALL return the value by adding the second argument to the first argument according to the specification of adding durations to date and time [XS] Appendix E. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dateTime_add_dayTimeDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_ADD_DAY_TIME_DURATION = "urn:oasis:names:tc:xacml:3.0:function:dateTime-add-dayTimeDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dateTime-add-dayTimeDuration"); } @Override public String toString(){ return FUNCTION_DATE_TIME_ADD_DAY_TIME_DURATION; } /** * This function SHALL take two arguments, the first SHALL be a http://www.w3.org/2001/XMLSchema#dateTime and the second SHALL be a http://www.w3.org/2001/XMLSchema#yearMonthDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#dateTime. This function SHALL return the value by adding the second argument to the first argument according to the specification of adding durations to date and time [XS] Appendix E. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dateTime_add_yearMonthDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_ADD_YEAR_MONTH_DURATION = "urn:oasis:names:tc:xacml:3.0:function:dateTime-add-yearMonthDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dateTime-add-yearMonthDuration"); } @Override public String toString(){ return FUNCTION_DATE_TIME_ADD_YEAR_MONTH_DURATION; } /** * This function SHALL take two arguments, the first SHALL be a http://www.w3.org/2001/XMLSchema#dateTime and the second SHALL be a http://www.w3.org/2001/XMLSchema#dayTimeDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#dateTime. If the second argument is a positive duration, then this function SHALL return the value by adding the corresponding negative duration, as per the specification [XS] Appendix E. If the second argument is a negative duration, then the result SHALL be as if the function urn:oasis:names:tc:xacml:1.0:function:dateTime-add-dayTimeDuration had been applied to the corresponding positive duration. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dateTime_subtract_dayTimeDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_SUBTRACT_DAY_TIME_DURATION = "urn:oasis:names:tc:xacml:3.0:function:dateTime-subtract-dayTimeDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dateTime-subtract-dayTimeDuration"); } @Override public String toString(){ return FUNCTION_DATE_TIME_SUBTRACT_DAY_TIME_DURATION; } /** * This function SHALL take two arguments, the first SHALL be a http://www.w3.org/2001/XMLSchema#dateTime and the second SHALL be a http://www.w3.org/2001/XMLSchema#yearMonthDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#dateTime. If the second argument is a positive duration, then this function SHALL return the value by adding the corresponding negative duration, as per the specification [XS] Appendix E. If the second argument is a negative duration, then the result SHALL be as if the function urn:oasis:names:tc:xacml:1.0:function:dateTime-add-yearMonthDuration had been applied to the corresponding positive duration. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dateTime_subtract_yearMonthDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_SUBTRACT_YEAR_MONTH_DURATION = "urn:oasis:names:tc:xacml:3.0:function:dateTime-subtract-yearMonthDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dateTime-subtract-yearMonthDuration"); } @Override public String toString(){ return FUNCTION_DATE_TIME_SUBTRACT_YEAR_MONTH_DURATION; } /** * This function SHALL take two arguments, the first SHALL be a http://www.w3.org/2001/XMLSchema#date and the second SHALL be a http://www.w3.org/2001/XMLSchema#yearMonthDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#date. This function SHALL return the value by adding the second argument to the first argument according to the specification of adding duration to date [XS] Appendix E. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$date_add_yearMonthDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_ADD_YEAR_MONTH_DURATION = "urn:oasis:names:tc:xacml:3.0:function:date-add-yearMonthDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:date-add-yearMonthDuration"); } @Override public String toString(){ return FUNCTION_DATE_ADD_YEAR_MONTH_DURATION; } /** * This function SHALL take two arguments, the first SHALL be a http://www.w3.org/2001/XMLSchema#date and the second SHALL be a http://www.w3.org/2001/XMLSchema#yearMonthDuration. It SHALL return a result of http://www.w3.org/2001/XMLSchema#date. If the second argument is a positive duration, then this function SHALL return the value by adding the corresponding negative duration, as per the specification [XS] Appendix E. If the second argument is a negative duration, then the result SHALL be as if the function urn:oasis:names:tc:xacml:1.0:function:date-add-yearMonthDuration had been applied to the corresponding positive duration. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$date_subtract_yearMonthDuration implements XACMLAttributeBag { static final String FUNCTION_DATE_SUBTRACT_YEAR_MONTH_DURATION = "urn:oasis:names:tc:xacml:3.0:function:date-subtract-yearMonthDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:date-subtract-yearMonthDuration"); } @Override public String toString(){ return FUNCTION_DATE_SUBTRACT_YEAR_MONTH_DURATION; } /** * A.3.8 Non-numeric comparison functions * * These functions perform comparison operations on two arguments of non-numerical types. */ /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is lexicographically strictly greater than the second argument. Otherwise, it SHALL return False. The comparison SHALL use Unicode codepoint collation, as defined for the identifier http://www.w3.org/2005/xpath-functions/collation/codepoint by [XF]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_greater_than implements XACMLAttributeBag { static final String FUNCTION_STRING_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:string-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-greater-than"); } @Override public String toString(){ return FUNCTION_STRING_GREATER_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is lexicographically greater than or equal to the second argument. Otherwise, it SHALL return False. The comparison SHALL use Unicode codepoint collation, as defined for the identifier http://www.w3.org/2005/xpath-functions/collation/codepoint by [XF]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_STRING_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:string-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_STRING_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only the first argument is lexigraphically strictly less than the second argument. Otherwise, it SHALL return False. The comparison SHALL use Unicode codepoint collation, as defined for the identifier http://www.w3.org/2005/xpath-functions/collation/codepoint by [XF]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_less_than implements XACMLAttributeBag { static final String FUNCTION_STRING_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:string-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-less-than"); } @Override public String toString(){ return FUNCTION_STRING_LESS_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only the first argument is lexigraphically less than or equal to the second argument. Otherwise, it SHALL return False. The comparison SHALL use Unicode codepoint collation, as defined for the identifier http://www.w3.org/2005/xpath-functions/collation/codepoint by [XF]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_STRING_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:string-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_STRING_LESS_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#time [XS] Section 3.2.8. Otherwise, it SHALL return False. Note: it is illegal to compare a time that includes a time-zone value with one that does not. In such cases, the time-in-range function should be used. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_greater_than implements XACMLAttributeBag { static final String FUNCTION_TIME_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:time-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-greater-than"); } @Override public String toString(){ return FUNCTION_TIME_GREATER_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#time [XS] Section 3.2.8. Otherwise, it SHALL return False. Note: it is illegal to compare a time that includes a time-zone value with one that does not. In such cases, the time-in-range function should be used. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_TIME_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:time-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_TIME_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#time [XS] Section 3.2.8. Otherwise, it SHALL return False. Note: it is illegal to compare a time that includes a time-zone value with one that does not. In such cases, the time-in-range function should be used. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_less_than implements XACMLAttributeBag { static final String FUNCTION_TIME_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:time-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-less-than"); } @Override public String toString(){ return FUNCTION_TIME_LESS_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#time [XS] Section 3.2.8. Otherwise, it SHALL return False. Note: it is illegal to compare a time that includes a time-zone value with one that does not. In such cases, the time-in-range function should be used. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_TIME_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:time-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_TIME_LESS_THAN_OR_EQUAL; } /** * This function SHALL take three arguments of data-type http://www.w3.org/2001/XMLSchema#time and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if the first argument falls in the range defined inclusively by the second and third arguments. Otherwise, it SHALL return False. Regardless of its value, the third argument SHALL be interpreted as a time that is equal to, or later than by less than twenty-four hours, the second argument. If no time zone is provided for the first argument, it SHALL use the default time zone at the context handler. If no time zone is provided for the second or third arguments, then they SHALL use the time zone from the first argument. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$time_in_range implements XACMLAttributeBag { static final String FUNCTION_TIME_IN_RANGE = "urn:oasis:names:tc:xacml:2.0:function:time-in-range"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:time-in-range"); } @Override public String toString(){ return FUNCTION_TIME_IN_RANGE; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#dateTime and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#dateTime by [XS] part 2, section 3.2.7. Otherwise, it SHALL return False. Note: if a dateTime value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_greater_than implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:dateTime-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-greater-than"); } @Override public String toString(){ return FUNCTION_DATE_TIME_GREATER_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#dateTime and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#dateTime by [XS] part 2, section 3.2.7. Otherwise, it SHALL return False. Note: if a dateTime value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:dateTime-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_DATE_TIME_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#dateTime and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#dateTime by [XS, part 2, section 3.2.7]. Otherwise, it SHALL return False. Note: if a dateTime value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_less_than implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:dateTime-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-less-than"); } @Override public String toString(){ return FUNCTION_DATE_TIME_LESS_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema# dateTime and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#dateTime by [XS] part 2, section 3.2.7. Otherwise, it SHALL return False. Note: if a dateTime value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:dateTime-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take two arguments of data-type http://www.w3.org/2001/XMLSchema#,two arguments,http://www.w3.org/2001/XMLSchema# arg1 = args.get(0, untyped:take two arguments of data-type http://www.w3.org/2001/XMLSchema#,two arguments,http://www.w3.org/2001/XMLSchema#.class); untyped:take two arguments of data-type http://www.w3.org/2001/XMLSchema#,two arguments,http://www.w3.org/2001/XMLSchema# arg2 = args.get(1, untyped:take two arguments of data-type http://www.w3.org/2001/XMLSchema#,two arguments,http://www.w3.org/2001/XMLSchema#.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_DATE_TIME_LESS_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#date and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#date by [XS] part 2, section 3.2.9. Otherwise, it SHALL return False. Note: if a date value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_greater_than implements XACMLAttributeBag { static final String FUNCTION_DATE_GREATER_THAN = "urn:oasis:names:tc:xacml:1.0:function:date-greater-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-greater-than"); } @Override public String toString(){ return FUNCTION_DATE_GREATER_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#date and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is greater than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#date by [XS] part 2, section 3.2.9. Otherwise, it SHALL return False. Note: if a date value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_greater_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_GREATER_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:date-greater-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-greater-than-or-equal"); } @Override public String toString(){ return FUNCTION_DATE_GREATER_THAN_OR_EQUAL; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#date and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#date by [XS] part 2, section 3.2.9. Otherwise, it SHALL return False. Note: if a date value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_less_than implements XACMLAttributeBag { static final String FUNCTION_DATE_LESS_THAN = "urn:oasis:names:tc:xacml:1.0:function:date-less-than"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-less-than"); } @Override public String toString(){ return FUNCTION_DATE_LESS_THAN; } /** * This function SHALL take two arguments of data-type http://www.w3.org/2001/XMLSchema#date and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is less than or equal to the second argument according to the order relation specified for http://www.w3.org/2001/XMLSchema#date by [XS] part 2, section 3.2.9. Otherwise, it SHALL return False. Note: if a date value does not include a time-zone value, then an implicit time-zone value SHALL be assigned, as described in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_less_than_or_equal implements XACMLAttributeBag { static final String FUNCTION_DATE_LESS_THAN_OR_EQUAL = "urn:oasis:names:tc:xacml:1.0:function:date-less-than-or-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-less-than-or-equal"); } @Override public String toString(){ return FUNCTION_DATE_LESS_THAN_OR_EQUAL; } /** * A.3.9 String functions * * The following functions operate on strings and convert to and from other data types. */ /** * This function SHALL take two or more arguments of data-type "http://www.w3.org/2001/XMLSchema#string" and SHALL return a "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the concatenation, in order, of the arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$string_concatenate implements XACMLAttributeBag { static final String FUNCTION_STRING_CONCATENATE = "urn:oasis:names:tc:xacml:2.0:function:string-concatenate"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { for(int i = 0; i < size(); ++i) String argn = args.get(i, String.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:string-concatenate"); } @Override public String toString(){ return FUNCTION_STRING_CONCATENATE; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be the string converted to a boolean. If the argument is not a valid lexical representation of a boolean, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$boolean_from_string implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:boolean-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:boolean-from-string"); } @Override public String toString(){ return FUNCTION_BOOLEAN_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#boolean", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the boolean converted to a string in the canonical form specified in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_boolean implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_BOOLEAN = "urn:oasis:names:tc:xacml:3.0:function:string-from-boolean"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-boolean"); } @Override public String toString(){ return FUNCTION_STRING_FROM_BOOLEAN; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#integer". The result SHALL be the string converted to an integer. If the argument is not a valid lexical representation of an integer, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$integer_from_string implements XACMLAttributeBag { static final String FUNCTION_INTEGER_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:integer-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(BigInteger.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:integer-from-string"); } @Override public String toString(){ return FUNCTION_INTEGER_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#integer", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the integer converted to a string in the canonical form specified in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_integer implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_INTEGER = "urn:oasis:names:tc:xacml:3.0:function:string-from-integer"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-integer"); } @Override public String toString(){ return FUNCTION_STRING_FROM_INTEGER; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#double". The result SHALL be the string converted to a double. If the argument is not a valid lexical representation of a double, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$double_from_string implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:double-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(Double.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:double-from-string"); } @Override public String toString(){ return FUNCTION_DOUBLE_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#double", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the double converted to a string in the canonical form specified in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_double implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_DOUBLE = "urn:oasis:names:tc:xacml:3.0:function:string-from-double"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-double"); } @Override public String toString(){ return FUNCTION_STRING_FROM_DOUBLE; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#time". The result SHALL be the string converted to a time. If the argument is not a valid lexical representation of a time, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$time_from_string implements XACMLAttributeBag { static final String FUNCTION_TIME_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:time-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(XMLTime.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:time-from-string"); } @Override public String toString(){ return FUNCTION_TIME_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#time", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the time converted to a string in the canonical form specified in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_time implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_TIME = "urn:oasis:names:tc:xacml:3.0:function:string-from-time"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-time"); } @Override public String toString(){ return FUNCTION_STRING_FROM_TIME; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#date". The result SHALL be the string converted to a date. If the argument is not a valid lexical representation of a date, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$date_from_string implements XACMLAttributeBag { static final String FUNCTION_DATE_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:date-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(XMLDate.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:date-from-string"); } @Override public String toString(){ return FUNCTION_DATE_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#date", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the date converted to a string in the canonical form specified in [XS]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_date implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_DATE = "urn:oasis:names:tc:xacml:3.0:function:string-from-date"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-date"); } @Override public String toString(){ return FUNCTION_STRING_FROM_DATE; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#dateTime". The result SHALL be the string converted to a dateTime. If the argument is not a valid lexical representation of a dateTime, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dateTime_from_string implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:dateTime-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(XMLDateTime.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dateTime-from-string"); } @Override public String toString(){ return FUNCTION_DATE_TIME_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return a "http://www.w3.org/2001/XMLSchema#anyURI". The result SHALL be the URI constructed by converting the argument to an URI. If the argument is not a valid lexical representation of a URI, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$anyURI_from_string implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:anyURI-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(URI.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:anyURI-from-string"); } @Override public String toString(){ return FUNCTION_ANY_URI_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#anyURI", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the URI converted to a string in the form it was originally represented in XML form. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_anyURI implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_ANY_URI = "urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI"); } @Override public String toString(){ return FUNCTION_STRING_FROM_ANY_URI; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#dayTimeDuration ". The result SHALL be the string converted to a dayTimeDuration. If the argument is not a valid lexical representation of a dayTimeDuration, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_from_string implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(untyped:SHALL return an "http://www.w3.,http://www.w3.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-from-string"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#dayTimeDuration ", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the dayTimeDuration converted to a string in the canonical form specified in [XPathFunc]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_dayTimeDuration implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_DAY_TIME_DURATION = "urn:oasis:names:tc:xacml:3.0:function:string-from-dayTimeDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDayTimeDuration arg1 = args.get(0, XMLDayTimeDuration.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-dayTimeDuration"); } @Override public String toString(){ return FUNCTION_STRING_FROM_DAY_TIME_DURATION; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "http://www.w3.org/2001/XMLSchema#yearMonthDuration". The result SHALL be the string converted to a yearMonthDuration. If the argument is not a valid lexical representation of a yearMonthDuration, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_from_string implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(XMLYearMonthDuration.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-from-string"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_FROM_STRING; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#yearMonthDuration", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the yearMonthDuration converted to a string in the canonical form specified in [XPathFunc]. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_yearMonthDuration implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_YEAR_MONTH_DURATION = "urn:oasis:names:tc:xacml:3.0:function:string-from-yearMonthDuration"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLYearMonthDuration arg1 = args.get(0, XMLYearMonthDuration.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-yearMonthDuration"); } @Override public String toString(){ return FUNCTION_STRING_FROM_YEAR_MONTH_DURATION; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "urn:oasis:names:tc:xacml:1.0:data-type:x500Name". The result SHALL be the string converted to an x500Name. If the argument is not a valid lexical representation of a X500Name, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$x500Name_from_string implements XACMLAttributeBag { static final String FUNCTION_X500NAME_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:x500Name-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(untyped:SHALL return an "urn:oasis:names:tc:xacml:1.0:data-type:x500Name".,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:x500Name-from-string"); } @Override public String toString(){ return FUNCTION_X500NAME_FROM_STRING; } /** * This function SHALL take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:x500Name", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the x500Name converted to a string in the form it was originally represented in XML form.. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_x500Name implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_X500NAME = "urn:oasis:names:tc:xacml:3.0:function:string-from-x500Name"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",one argument,urn:oasis:names:tc:xacml:1.0:data-type:x500Name arg1 = args.get(0, untyped:take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",one argument,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-x500Name"); } @Override public String toString(){ return FUNCTION_STRING_FROM_X500NAME; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name". The result SHALL be the string converted to an rfc822Name. If the argument is not a valid lexical representation of an rfc822Name, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$rfc822Name_from_string implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:rfc822Name-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(untyped:SHALL return an "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name".,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:rfc822Name-from-string"); } @Override public String toString(){ return FUNCTION_RFC822NAME_FROM_STRING; } /** * This function SHALL take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the rfc822Name converted to a string in the form it was originally represented in XML form. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_rfc822Name implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_RFC822NAME = "urn:oasis:names:tc:xacml:3.0:function:string-from-rfc822Name"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name",one argument,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name arg1 = args.get(0, untyped:take one argument of data-type "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name",one argument,urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-rfc822Name"); } @Override public String toString(){ return FUNCTION_STRING_FROM_RFC822NAME; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "urn:oasis:names:tc:xacml:2.0:data-type:ipAddress". The result SHALL be the string converted to an ipAddress. If the argument is not a valid lexical representation of an ipAddress, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$ipAddress_from_string implements XACMLAttributeBag { static final String FUNCTION_IP_ADDRESS_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:ipAddress-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(untyped:SHALL return an "urn:oasis:names:tc:xacml:2.0:data-type:ipAddress".,urn:oasis:names:tc:xacml:2.0:data-type:ipAddress.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:ipAddress-from-string"); } @Override public String toString(){ return FUNCTION_IP_ADDRESS_FROM_STRING; } /** * This function SHALL take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:ipAddress", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the ipAddress converted to a string in the form it was originally represented in XML form. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_ipAddress implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_IP_ADDRESS = "urn:oasis:names:tc:xacml:3.0:function:string-from-ipAddress"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:ipAddress",one argument,urn:oasis:names:tc:xacml:2.0:data-type:ipAddress arg1 = args.get(0, untyped:take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:ipAddress",one argument,urn:oasis:names:tc:xacml:2.0:data-type:ipAddress.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-ipAddress"); } @Override public String toString(){ return FUNCTION_STRING_FROM_IP_ADDRESS; } /** * This function SHALL take one argument of data-type "http://www.w3.org/2001/XMLSchema#string", and SHALL return an "urn:oasis:names:tc:xacml:2.0:data-type:dnsName". The result SHALL be the string converted to a dnsName. If the argument is not a valid lexical representation of a dnsName, then the result SHALL be Indeterminate with status code urn:oasis:names:tc:xacml:1.0:status:syntax-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dnsName_from_string implements XACMLAttributeBag { static final String FUNCTION_DNS_NAME_FROM_STRING = "urn:oasis:names:tc:xacml:3.0:function:dnsName-from-string"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); // return XACMLAttributeBag.of(untyped:SHALL return an "urn:oasis:names:tc:xacml:2.0:data-type:dnsName".,urn:oasis:names:tc:xacml:2.0:data-type:dnsName.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dnsName-from-string"); } @Override public String toString(){ return FUNCTION_DNS_NAME_FROM_STRING; } /** * This function SHALL take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:dnsName", and SHALL return an "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the dnsName converted to a string in the form it was originally represented in XML form. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_from_dnsName implements XACMLAttributeBag { static final String FUNCTION_STRING_FROM_DNS_NAME = "urn:oasis:names:tc:xacml:3.0:function:string-from-dnsName"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:dnsName",one argument,urn:oasis:names:tc:xacml:2.0:data-type:dnsName arg1 = args.get(0, untyped:take one argument of data-type "urn:oasis:names:tc:xacml:2.0:data-type:dnsName",one argument,urn:oasis:names:tc:xacml:2.0:data-type:dnsName.class); // return XACMLAttributeBag.of(String.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-from-dnsName"); } @Override public String toString(){ return FUNCTION_STRING_FROM_DNS_NAME; } /** * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#string" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the second string begins with the first string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_starts_with implements XACMLAttributeBag { static final String FUNCTION_STRING_STARTS_WITH = "urn:oasis:names:tc:xacml:3.0:function:string-starts-with"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-starts-with"); } @Override public String toString(){ return FUNCTION_STRING_STARTS_WITH; } /** * This function SHALL take a first argument of data-type"http://www.w3.org/2001/XMLSchema#string" and an a second argument of data-type "http://www.w3.org/2001/XMLSchema#anyURI" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the URI converted to a string with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI begins with the string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$anyURI_starts_with implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_STARTS_WITH = "urn:oasis:names:tc:xacml:3.0:function:anyURI-starts-with"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:anyURI-starts-with"); } @Override public String toString(){ return FUNCTION_ANY_URI_STARTS_WITH; } /** * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#string" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the second string ends with the first string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_ends_with implements XACMLAttributeBag { static final String FUNCTION_STRING_ENDS_WITH = "urn:oasis:names:tc:xacml:3.0:function:string-ends-with"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-ends-with"); } @Override public String toString(){ return FUNCTION_STRING_ENDS_WITH; } /** * This function SHALL take a first argument of data-type "http://www.w3.org/2001/XMLSchema#string" and an a second argument of data-type "http://www.w3.org/2001/XMLSchema#anyURI" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the URI converted to a string with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI ends with the string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$anyURI_ends_with implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_ENDS_WITH = "urn:oasis:names:tc:xacml:3.0:function:anyURI-ends-with"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:anyURI-ends-with"); } @Override public String toString(){ return FUNCTION_ANY_URI_ENDS_WITH; } /** * This function SHALL take two arguments of data-type "http://www.w3.org/2001/XMLSchema#string" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the second string contains the first string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_contains implements XACMLAttributeBag { static final String FUNCTION_STRING_CONTAINS = "urn:oasis:names:tc:xacml:3.0:function:string-contains"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-contains"); } @Override public String toString(){ return FUNCTION_STRING_CONTAINS; } /** * This function SHALL take a first argument of data-type "http://www.w3.org/2001/XMLSchema#string" and an a second argument of data-type "http://www.w3.org/2001/XMLSchema#anyURI" and SHALL return a "http://www.w3.org/2001/XMLSchema#boolean". The result SHALL be true if the URI converted to a string with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI contains the string, and false otherwise. Equality testing SHALL be done as defined for urn:oasis:names:tc:xacml:1.0:function:string-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$anyURI_contains implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_CONTAINS = "urn:oasis:names:tc:xacml:3.0:function:anyURI-contains"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:anyURI-contains"); } @Override public String toString(){ return FUNCTION_ANY_URI_CONTAINS; } /** * This function SHALL take a first argument of data-type "http://www.w3.org/2001/XMLSchema#string" and a second and a third argument of type "http://www.w3.org/2001/XMLSchema#integer" and SHALL return a "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the substring of the first argument beginning at the position given by the second argument and ending at the position before the position given by the third argument. The first character of the string has position zero. The negative integer value -1 given for the third arguments indicates the end of the string. If the second or third arguments are out of bounds, then the function MUST evaluate to Indeterminate with a status code of urn:oasis:names:tc:xacml:1.0:status:processing-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$string_substring implements XACMLAttributeBag { static final String FUNCTION_STRING_SUBSTRING = "urn:oasis:names:tc:xacml:3.0:function:string-substring"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:string-substring"); } @Override public String toString(){ return FUNCTION_STRING_SUBSTRING; } /** * This function SHALL take a first argument of data-type "http://www.w3.org/2001/XMLSchema#anyURI" and a second and a third argument of type "http://www.w3.org/2001/XMLSchema#integer" and SHALL return a "http://www.w3.org/2001/XMLSchema#string". The result SHALL be the substring of the first argument converted to a string with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI beginning at the position given by the second argument and ending at the position before the position given by the third argument. The first character of the URI converted to a string has position zero. The negative integer value -1 given for the third arguments indicates the end of the string. If the second or third arguments are out of bounds, then the function MUST evaluate to Indeterminate with a status code of urn:oasis:names:tc:xacml:1.0:status:processing-error. If the resulting substring is not syntactically a valid URI, then the function MUST evaluate to Indeterminate with a status code of urn:oasis:names:tc:xacml:1.0:status:processing-error. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$anyURI_substring implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_SUBSTRING = "urn:oasis:names:tc:xacml:3.0:function:anyURI-substring"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:anyURI-substring"); } @Override public String toString(){ return FUNCTION_ANY_URI_SUBSTRING; } /** * A.3.10 Bag functions * * These functions operate on a bag of type values, where type is one of the primitive data-types, and x.x is a version of XACML where the function has been defined. Some additional conditions defined for each function below SHALL cause the expression to evaluate to "Indeterminate". */ /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#string values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#string. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_one_and_only implements XACMLAttributeBag { static final String FUNCTION_STRING_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"); } @Override public String toString(){ return FUNCTION_STRING_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#boolean values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_one_and_only implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:boolean-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-one-and-only"); } @Override public String toString(){ return FUNCTION_BOOLEAN_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#integer values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#integer. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_one_and_only implements XACMLAttributeBag { static final String FUNCTION_INTEGER_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:integer-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-one-and-only"); } @Override public String toString(){ return FUNCTION_INTEGER_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#double values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#double. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_one_and_only implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:double-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-one-and-only"); } @Override public String toString(){ return FUNCTION_DOUBLE_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#time values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#time. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_one_and_only implements XACMLAttributeBag { static final String FUNCTION_TIME_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-one-and-only"); } @Override public String toString(){ return FUNCTION_TIME_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#date values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#date. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_one_and_only implements XACMLAttributeBag { static final String FUNCTION_DATE_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:date-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-one-and-only"); } @Override public String toString(){ return FUNCTION_DATE_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#dateTime values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#dateTime. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_one_and_only implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:dateTime-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-one-and-only"); } @Override public String toString(){ return FUNCTION_DATE_TIME_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#anyURI values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#anyURI. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_one_and_only implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:anyURI-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-one-and-only"); } @Override public String toString(){ return FUNCTION_ANY_URI_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#hexBinary values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#hexBinary. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_one_and_only implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-one-and-only"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#base64Binary values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#base64Binary. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_one_and_only implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-one-and-only"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#dayTimeDuration values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#dayTimeDuration. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_one_and_only implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-one-and-only"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_ONE_AND_ONLY; } /** * This function SHALL take a bag of http://www.w3.org/2001/XMLSchema#yearMonthDuration values as an argument and SHALL return a value of type http://www.w3.org/2001/XMLSchema#yearMonthDuration. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_one_and_only implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-one-and-only"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_ONE_AND_ONLY; } /** * This function SHALL take a bag of urn:oasis:names:tc:xacml:1.0:data-type:x500Name. values as an argument and SHALL return a value of type urn:oasis:names:tc:xacml:1.0:data-type:x500Name.. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_one_and_only implements XACMLAttributeBag { static final String FUNCTION_X500NAME_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:x500Name-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-one-and-only"); } @Override public String toString(){ return FUNCTION_X500NAME_ONE_AND_ONLY; } /** * This function SHALL take a bag of urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name values as an argument and SHALL return a value of type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_one_and_only implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-one-and-only"); } @Override public String toString(){ return FUNCTION_RFC822NAME_ONE_AND_ONLY; } /** * This function SHALL take a bag of urn:oasis:names:tc:xacml:2.0:data-type:ipAddress values as an argument and SHALL return a value of type urn:oasis:names:tc:xacml:2.0:data-type:ipAddress. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$ipAddress_one_and_only implements XACMLAttributeBag { static final String FUNCTION_IP_ADDRESS_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:2.0:function:ipAddress-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:ipAddress-one-and-only"); } @Override public String toString(){ return FUNCTION_IP_ADDRESS_ONE_AND_ONLY; } /** * This function SHALL take a bag of urn:oasis:names:tc:xacml:2.0:data-type:dnsName values as an argument and SHALL return a value of type urn:oasis:names:tc:xacml:2.0:data-type:dnsName. It SHALL return the only value in the bag. If the bag does not have one and only one value, then the expression SHALL evaluate to "Indeterminate". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$dnsName_one_and_only implements XACMLAttributeBag { static final String FUNCTION_DNS_NAME_ONE_AND_ONLY = "urn:oasis:names:tc:xacml:2.0:function:dnsName-one-and-only"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:dnsName-one-and-only"); } @Override public String toString(){ return FUNCTION_DNS_NAME_ONE_AND_ONLY; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#string and return a bag of http://www.w3.org/2001/XMLSchema#string values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_bag_size implements XACMLAttributeBag { static final String FUNCTION_STRING_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:string-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-bag-size"); } @Override public String toString(){ return FUNCTION_STRING_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#boolean and return a bag of http://www.w3.org/2001/XMLSchema#boolean values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_bag_size implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:boolean-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-bag-size"); } @Override public String toString(){ return FUNCTION_BOOLEAN_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#integer and return a bag of http://www.w3.org/2001/XMLSchema#integer values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_bag_size implements XACMLAttributeBag { static final String FUNCTION_INTEGER_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:integer-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-bag-size"); } @Override public String toString(){ return FUNCTION_INTEGER_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#double and return a bag of http://www.w3.org/2001/XMLSchema#double values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_bag_size implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:double-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-bag-size"); } @Override public String toString(){ return FUNCTION_DOUBLE_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#time and return a bag of http://www.w3.org/2001/XMLSchema#time values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_bag_size implements XACMLAttributeBag { static final String FUNCTION_TIME_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:time-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-bag-size"); } @Override public String toString(){ return FUNCTION_TIME_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#date and return a bag of http://www.w3.org/2001/XMLSchema#date values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_bag_size implements XACMLAttributeBag { static final String FUNCTION_DATE_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:date-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-bag-size"); } @Override public String toString(){ return FUNCTION_DATE_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#dateTime and return a bag of http://www.w3.org/2001/XMLSchema#dateTime values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_bag_size implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:dateTime-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-bag-size"); } @Override public String toString(){ return FUNCTION_DATE_TIME_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#anyURI and return a bag of http://www.w3.org/2001/XMLSchema#anyURI values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_bag_size implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:anyURI-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-bag-size"); } @Override public String toString(){ return FUNCTION_ANY_URI_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#hexBinary and return a bag of http://www.w3.org/2001/XMLSchema#hexBinary values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_bag_size implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-bag-size"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#base64Binary and return a bag of http://www.w3.org/2001/XMLSchema#base64Binary values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_bag_size implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-bag-size"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#dayTimeDuration and return a bag of http://www.w3.org/2001/XMLSchema#dayTimeDuration values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_bag_size implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_BAG_SIZE = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag-size"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_BAG_SIZE; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#yearMonthDuration and return a bag of http://www.w3.org/2001/XMLSchema#yearMonthDuration values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_bag_size implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_BAG_SIZE = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-bag-size"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_BAG_SIZE; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:1.0:data-type:x500Name. and return a bag of urn:oasis:names:tc:xacml:1.0:data-type:x500Name. values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_bag_size implements XACMLAttributeBag { static final String FUNCTION_X500NAME_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:x500Name-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-bag-size"); } @Override public String toString(){ return FUNCTION_X500NAME_BAG_SIZE; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name and return a bag of urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_bag_size implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_BAG_SIZE = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-bag-size"); } @Override public String toString(){ return FUNCTION_RFC822NAME_BAG_SIZE; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:2.0:data-type:ipAddress and return a bag of urn:oasis:names:tc:xacml:2.0:data-type:ipAddress values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$ipAddress_bag_size implements XACMLAttributeBag { static final String FUNCTION_IP_ADDRESS_BAG_SIZE = "urn:oasis:names:tc:xacml:2.0:function:ipAddress-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:ipAddress-bag-size"); } @Override public String toString(){ return FUNCTION_IP_ADDRESS_BAG_SIZE; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:2.0:data-type:dnsName and return a bag of urn:oasis:names:tc:xacml:2.0:data-type:dnsName values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$dnsName_bag_size implements XACMLAttributeBag { static final String FUNCTION_DNS_NAME_BAG_SIZE = "urn:oasis:names:tc:xacml:2.0:function:dnsName-bag-size"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:dnsName-bag-size"); } @Override public String toString(){ return FUNCTION_DNS_NAME_BAG_SIZE; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#string values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_is_in implements XACMLAttributeBag { static final String FUNCTION_STRING_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:string-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-is-in"); } @Override public String toString(){ return FUNCTION_STRING_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#boolean values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_is_in implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:boolean-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-is-in"); } @Override public String toString(){ return FUNCTION_BOOLEAN_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#integer values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_is_in implements XACMLAttributeBag { static final String FUNCTION_INTEGER_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:integer-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-is-in"); } @Override public String toString(){ return FUNCTION_INTEGER_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#double values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_is_in implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:double-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-is-in"); } @Override public String toString(){ return FUNCTION_DOUBLE_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#time values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_is_in implements XACMLAttributeBag { static final String FUNCTION_TIME_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:time-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-is-in"); } @Override public String toString(){ return FUNCTION_TIME_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#date values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_is_in implements XACMLAttributeBag { static final String FUNCTION_DATE_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:date-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-is-in"); } @Override public String toString(){ return FUNCTION_DATE_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#dateTime values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_is_in implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:dateTime-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-is-in"); } @Override public String toString(){ return FUNCTION_DATE_TIME_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#anyURI values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_is_in implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:anyURI-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-is-in"); } @Override public String toString(){ return FUNCTION_ANY_URI_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#hexBinary values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_is_in implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-is-in"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#base64Binary values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_is_in implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-is-in"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#dayTimeDuration values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_is_in implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_IS_IN = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-is-in"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of http://www.w3.org/2001/XMLSchema#yearMonthDuration values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_is_in implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_IS_IN = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-is-in"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of urn:oasis:names:tc:xacml:1.0:data-type:x500Name. values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_is_in implements XACMLAttributeBag { static final String FUNCTION_X500NAME_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:x500Name-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-is-in"); } @Override public String toString(){ return FUNCTION_X500NAME_IS_IN; } /** * This function SHALL take an argument of type as the first argument and a bag of urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name values as the second argument and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if the first argument matches by the "urn:oasis:names:tc:xacml:x.x:function:type-equal" any value in the bag. Otherwise, it SHALL return False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_is_in implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_IS_IN = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-is-in"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-is-in"); } @Override public String toString(){ return FUNCTION_RFC822NAME_IS_IN; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#string and return a bag of http://www.w3.org/2001/XMLSchema#string values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_bag implements XACMLAttributeBag { static final String FUNCTION_STRING_BAG = "urn:oasis:names:tc:xacml:1.0:function:string-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-bag"); } @Override public String toString(){ return FUNCTION_STRING_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#boolean and return a bag of http://www.w3.org/2001/XMLSchema#boolean values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_bag implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_BAG = "urn:oasis:names:tc:xacml:1.0:function:boolean-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-bag"); } @Override public String toString(){ return FUNCTION_BOOLEAN_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#integer and return a bag of http://www.w3.org/2001/XMLSchema#integer values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_bag implements XACMLAttributeBag { static final String FUNCTION_INTEGER_BAG = "urn:oasis:names:tc:xacml:1.0:function:integer-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-bag"); } @Override public String toString(){ return FUNCTION_INTEGER_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#double and return a bag of http://www.w3.org/2001/XMLSchema#double values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_bag implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_BAG = "urn:oasis:names:tc:xacml:1.0:function:double-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-bag"); } @Override public String toString(){ return FUNCTION_DOUBLE_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#time and return a bag of http://www.w3.org/2001/XMLSchema#time values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_bag implements XACMLAttributeBag { static final String FUNCTION_TIME_BAG = "urn:oasis:names:tc:xacml:1.0:function:time-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-bag"); } @Override public String toString(){ return FUNCTION_TIME_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#date and return a bag of http://www.w3.org/2001/XMLSchema#date values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_bag implements XACMLAttributeBag { static final String FUNCTION_DATE_BAG = "urn:oasis:names:tc:xacml:1.0:function:date-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-bag"); } @Override public String toString(){ return FUNCTION_DATE_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#dateTime and return a bag of http://www.w3.org/2001/XMLSchema#dateTime values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_bag implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_BAG = "urn:oasis:names:tc:xacml:1.0:function:dateTime-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-bag"); } @Override public String toString(){ return FUNCTION_DATE_TIME_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#anyURI and return a bag of http://www.w3.org/2001/XMLSchema#anyURI values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_bag implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_BAG = "urn:oasis:names:tc:xacml:1.0:function:anyURI-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-bag"); } @Override public String toString(){ return FUNCTION_ANY_URI_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#hexBinary and return a bag of http://www.w3.org/2001/XMLSchema#hexBinary values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_bag implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_BAG = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-bag"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#base64Binary and return a bag of http://www.w3.org/2001/XMLSchema#base64Binary values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_bag implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_BAG = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-bag"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#dayTimeDuration and return a bag of http://www.w3.org/2001/XMLSchema#dayTimeDuration values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_bag implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_BAG = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_BAG; } /** * This function SHALL take any number of arguments of type http://www.w3.org/2001/XMLSchema#yearMonthDuration and return a bag of http://www.w3.org/2001/XMLSchema#yearMonthDuration values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_bag implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_BAG = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-bag"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_BAG; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:1.0:data-type:x500Name. and return a bag of urn:oasis:names:tc:xacml:1.0:data-type:x500Name. values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_bag implements XACMLAttributeBag { static final String FUNCTION_X500NAME_BAG = "urn:oasis:names:tc:xacml:1.0:function:x500Name-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-bag"); } @Override public String toString(){ return FUNCTION_X500NAME_BAG; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name and return a bag of urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_bag implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_BAG = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-bag"); } @Override public String toString(){ return FUNCTION_RFC822NAME_BAG; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:2.0:data-type:ipAddress and return a bag of urn:oasis:names:tc:xacml:2.0:data-type:ipAddress values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$ipAddress_bag implements XACMLAttributeBag { static final String FUNCTION_IP_ADDRESS_BAG = "urn:oasis:names:tc:xacml:2.0:function:ipAddress-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:ipAddress-bag"); } @Override public String toString(){ return FUNCTION_IP_ADDRESS_BAG; } /** * This function SHALL take any number of arguments of type urn:oasis:names:tc:xacml:2.0:data-type:dnsName and return a bag of urn:oasis:names:tc:xacml:2.0:data-type:dnsName values containing the values of the arguments. An application of this function to zero arguments SHALL produce an empty bag of the specified data-type. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$dnsName_bag implements XACMLAttributeBag { static final String FUNCTION_DNS_NAME_BAG = "urn:oasis:names:tc:xacml:2.0:function:dnsName-bag"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:dnsName-bag"); } @Override public String toString(){ return FUNCTION_DNS_NAME_BAG; } /** * A.3.11 Set functions * * These functions operate on bags mimicking sets by eliminating duplicate elements from a bag. */ /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#string" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_intersection implements XACMLAttributeBag { static final String FUNCTION_STRING_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:string-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-intersection"); } @Override public String toString(){ return FUNCTION_STRING_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#boolean" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_intersection implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:boolean-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-intersection"); } @Override public String toString(){ return FUNCTION_BOOLEAN_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#integer" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_intersection implements XACMLAttributeBag { static final String FUNCTION_INTEGER_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:integer-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-intersection"); } @Override public String toString(){ return FUNCTION_INTEGER_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#double" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_intersection implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:double-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-intersection"); } @Override public String toString(){ return FUNCTION_DOUBLE_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#time" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_intersection implements XACMLAttributeBag { static final String FUNCTION_TIME_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:time-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-intersection"); } @Override public String toString(){ return FUNCTION_TIME_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#date" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_intersection implements XACMLAttributeBag { static final String FUNCTION_DATE_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:date-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-intersection"); } @Override public String toString(){ return FUNCTION_DATE_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dateTime" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_intersection implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:dateTime-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-intersection"); } @Override public String toString(){ return FUNCTION_DATE_TIME_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#anyURI" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_intersection implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:anyURI-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-intersection"); } @Override public String toString(){ return FUNCTION_ANY_URI_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#hexBinary" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_intersection implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-intersection"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#base64Binary" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_intersection implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-intersection"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dayTimeDuration" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_intersection implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_INTERSECTION = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-intersection"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#yearMonthDuration" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_intersection implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_INTERSECTION = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-intersection"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name." values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_intersection implements XACMLAttributeBag { static final String FUNCTION_X500NAME_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:x500Name-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-intersection"); } @Override public String toString(){ return FUNCTION_X500NAME_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" values. It SHALL return a bag of type values such that it contains only elements that are common between the two bags, which is determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal". No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_intersection implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_INTERSECTION = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-intersection"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-intersection"); } @Override public String toString(){ return FUNCTION_RFC822NAME_INTERSECTION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#string" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_STRING_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_STRING_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#boolean" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:boolean-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); Boolean arg2 = args.get(1, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_BOOLEAN_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#integer" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_INTEGER_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:integer-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_INTEGER_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#double" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:double-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_DOUBLE_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#time" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_TIME_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:time-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_TIME_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#date" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_DATE_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:date-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_DATE_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dateTime" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:dateTime-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_DATE_TIME_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#anyURI" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:anyURI-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_ANY_URI_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#hexBinary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#base64Binary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dayTimeDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDayTimeDuration arg1 = args.get(0, XMLDayTimeDuration.class); XMLDayTimeDuration arg2 = args.get(1, XMLDayTimeDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#yearMonthDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLYearMonthDuration arg1 = args.get(0, XMLYearMonthDuration.class); XMLYearMonthDuration arg2 = args.get(1, XMLYearMonthDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name." values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_X500NAME_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:x500Name-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { LdapName arg1 = args.get(0, LdapName.class); LdapName arg2 = args.get(1, LdapName.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_X500NAME_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. The function SHALL evaluate to "True" if and only if at least one element of the first argument is contained in the second argument as determined by "urn:oasis:names:tc:xacml:x.x:function:type-is-in". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_at_least_one_member_of implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_AT_LEAST_ONE_MEMBER_OF = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-at-least-one-member-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-at-least-one-member-of"); } @Override public String toString(){ return FUNCTION_RFC822NAME_AT_LEAST_ONE_MEMBER_OF; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#string" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_union implements XACMLAttributeBag { static final String FUNCTION_STRING_UNION = "urn:oasis:names:tc:xacml:1.0:function:string-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-union"); } @Override public String toString(){ return FUNCTION_STRING_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#boolean" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_union implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_UNION = "urn:oasis:names:tc:xacml:1.0:function:boolean-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-union"); } @Override public String toString(){ return FUNCTION_BOOLEAN_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#integer" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_union implements XACMLAttributeBag { static final String FUNCTION_INTEGER_UNION = "urn:oasis:names:tc:xacml:1.0:function:integer-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-union"); } @Override public String toString(){ return FUNCTION_INTEGER_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#double" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_union implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_UNION = "urn:oasis:names:tc:xacml:1.0:function:double-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-union"); } @Override public String toString(){ return FUNCTION_DOUBLE_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#time" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_union implements XACMLAttributeBag { static final String FUNCTION_TIME_UNION = "urn:oasis:names:tc:xacml:1.0:function:time-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-union"); } @Override public String toString(){ return FUNCTION_TIME_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#date" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_union implements XACMLAttributeBag { static final String FUNCTION_DATE_UNION = "urn:oasis:names:tc:xacml:1.0:function:date-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-union"); } @Override public String toString(){ return FUNCTION_DATE_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dateTime" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_union implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_UNION = "urn:oasis:names:tc:xacml:1.0:function:dateTime-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-union"); } @Override public String toString(){ return FUNCTION_DATE_TIME_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#anyURI" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_union implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_UNION = "urn:oasis:names:tc:xacml:1.0:function:anyURI-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-union"); } @Override public String toString(){ return FUNCTION_ANY_URI_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#hexBinary" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_union implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_UNION = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-union"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#base64Binary" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_union implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_UNION = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-union"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dayTimeDuration" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_union implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_UNION = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-union"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#yearMonthDuration" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_union implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_UNION = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-union"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name." values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_union implements XACMLAttributeBag { static final String FUNCTION_X500NAME_UNION = "urn:oasis:names:tc:xacml:1.0:function:x500Name-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-union"); } @Override public String toString(){ return FUNCTION_X500NAME_UNION; } /** * This function SHALL take two or more arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" values. The expression SHALL return a bag of type such that it contains all elements of all the argument bags. No duplicates, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", SHALL exist in the result. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_union implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_UNION = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-union"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-union"); } @Override public String toString(){ return FUNCTION_RFC822NAME_UNION; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#string" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_subset implements XACMLAttributeBag { static final String FUNCTION_STRING_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:string-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-subset"); } @Override public String toString(){ return FUNCTION_STRING_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#boolean" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_subset implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:boolean-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); Boolean arg2 = args.get(1, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-subset"); } @Override public String toString(){ return FUNCTION_BOOLEAN_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#integer" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_subset implements XACMLAttributeBag { static final String FUNCTION_INTEGER_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:integer-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-subset"); } @Override public String toString(){ return FUNCTION_INTEGER_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#double" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_subset implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:double-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-subset"); } @Override public String toString(){ return FUNCTION_DOUBLE_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#time" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_subset implements XACMLAttributeBag { static final String FUNCTION_TIME_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:time-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-subset"); } @Override public String toString(){ return FUNCTION_TIME_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#date" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_subset implements XACMLAttributeBag { static final String FUNCTION_DATE_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:date-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-subset"); } @Override public String toString(){ return FUNCTION_DATE_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dateTime" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_subset implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:dateTime-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-subset"); } @Override public String toString(){ return FUNCTION_DATE_TIME_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#anyURI" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_subset implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:anyURI-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-subset"); } @Override public String toString(){ return FUNCTION_ANY_URI_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#hexBinary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_subset implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-subset"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#base64Binary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_subset implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-subset"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dayTimeDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_subset implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_SUBSET = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDayTimeDuration arg1 = args.get(0, XMLDayTimeDuration.class); XMLDayTimeDuration arg2 = args.get(1, XMLDayTimeDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-subset"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#yearMonthDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_subset implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_SUBSET = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLYearMonthDuration arg1 = args.get(0, XMLYearMonthDuration.class); XMLYearMonthDuration arg2 = args.get(1, XMLYearMonthDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-subset"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name." values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_subset implements XACMLAttributeBag { static final String FUNCTION_X500NAME_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:x500Name-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { LdapName arg1 = args.get(0, LdapName.class); LdapName arg2 = args.get(1, LdapName.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-subset"); } @Override public String toString(){ return FUNCTION_X500NAME_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return "True" if and only if the first argument is a subset of the second argument. Each argument SHALL be considered to have had its duplicates removed, as determined by "urn:oasis:names:tc:xacml:x.x:function:type-equal", before the subset calculation. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_subset implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_SUBSET = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-subset"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-subset"); } @Override public String toString(){ return FUNCTION_RFC822NAME_SUBSET; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#string" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_set_equals implements XACMLAttributeBag { static final String FUNCTION_STRING_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:string-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-set-equals"); } @Override public String toString(){ return FUNCTION_STRING_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#boolean" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$boolean_set_equals implements XACMLAttributeBag { static final String FUNCTION_BOOLEAN_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:boolean-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Boolean arg1 = args.get(0, Boolean.class); Boolean arg2 = args.get(1, Boolean.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:boolean-set-equals"); } @Override public String toString(){ return FUNCTION_BOOLEAN_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#integer" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$integer_set_equals implements XACMLAttributeBag { static final String FUNCTION_INTEGER_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:integer-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { BigInteger arg1 = args.get(0, BigInteger.class); BigInteger arg2 = args.get(1, BigInteger.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:integer-set-equals"); } @Override public String toString(){ return FUNCTION_INTEGER_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#double" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$double_set_equals implements XACMLAttributeBag { static final String FUNCTION_DOUBLE_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:double-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { Double arg1 = args.get(0, Double.class); Double arg2 = args.get(1, Double.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:double-set-equals"); } @Override public String toString(){ return FUNCTION_DOUBLE_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#time" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$time_set_equals implements XACMLAttributeBag { static final String FUNCTION_TIME_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:time-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLTime arg1 = args.get(0, XMLTime.class); XMLTime arg2 = args.get(1, XMLTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:time-set-equals"); } @Override public String toString(){ return FUNCTION_TIME_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#date" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$date_set_equals implements XACMLAttributeBag { static final String FUNCTION_DATE_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:date-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDate arg1 = args.get(0, XMLDate.class); XMLDate arg2 = args.get(1, XMLDate.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:date-set-equals"); } @Override public String toString(){ return FUNCTION_DATE_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dateTime" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$dateTime_set_equals implements XACMLAttributeBag { static final String FUNCTION_DATE_TIME_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:dateTime-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDateTime arg1 = args.get(0, XMLDateTime.class); XMLDateTime arg2 = args.get(1, XMLDateTime.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:dateTime-set-equals"); } @Override public String toString(){ return FUNCTION_DATE_TIME_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#anyURI" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$anyURI_set_equals implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:anyURI-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:anyURI-set-equals"); } @Override public String toString(){ return FUNCTION_ANY_URI_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#hexBinary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$hexBinary_set_equals implements XACMLAttributeBag { static final String FUNCTION_HEX_BINARY_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:hexBinary-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:hexBinary-set-equals"); } @Override public String toString(){ return FUNCTION_HEX_BINARY_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#base64Binary" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$base64Binary_set_equals implements XACMLAttributeBag { static final String FUNCTION_BASE64BINARY_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:base64Binary-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { byte[] arg1 = args.get(0, byte[].class); byte[] arg2 = args.get(1, byte[].class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:base64Binary-set-equals"); } @Override public String toString(){ return FUNCTION_BASE64BINARY_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#dayTimeDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$dayTimeDuration_set_equals implements XACMLAttributeBag { static final String FUNCTION_DAY_TIME_DURATION_SET_EQUALS = "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLDayTimeDuration arg1 = args.get(0, XMLDayTimeDuration.class); XMLDayTimeDuration arg2 = args.get(1, XMLDayTimeDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-set-equals"); } @Override public String toString(){ return FUNCTION_DAY_TIME_DURATION_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "http://www.w3.org/2001/XMLSchema#yearMonthDuration" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$yearMonthDuration_set_equals implements XACMLAttributeBag { static final String FUNCTION_YEAR_MONTH_DURATION_SET_EQUALS = "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { XMLYearMonthDuration arg1 = args.get(0, XMLYearMonthDuration.class); XMLYearMonthDuration arg2 = args.get(1, XMLYearMonthDuration.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-set-equals"); } @Override public String toString(){ return FUNCTION_YEAR_MONTH_DURATION_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name." values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_set_equals implements XACMLAttributeBag { static final String FUNCTION_X500NAME_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:x500Name-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { LdapName arg1 = args.get(0, LdapName.class); LdapName arg2 = args.get(1, LdapName.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-set-equals"); } @Override public String toString(){ return FUNCTION_X500NAME_SET_EQUALS; } /** * This function SHALL take two arguments that are both a bag of of "urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" values. It SHALL return a http://www.w3.org/2001/XMLSchema#boolean. It SHALL return the result of applying "urn:oasis:names:tc:xacml:1.0:function:and" to the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the first and second arguments and the application of "urn:oasis:names:tc:xacml:x.x:function:type-subset" to the second and first arguments. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_set_equals implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_SET_EQUALS = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-set-equals"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { URI arg1 = args.get(0, URI.class); URI arg2 = args.get(1, URI.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-set-equals"); } @Override public String toString(){ return FUNCTION_RFC822NAME_SET_EQUALS; } /** * A.3.12 Higher-order bag functions * * This section describes functions in XACML that perform operations on bags such that functions may be applied to the bags in general. */ /** * This function applies a Boolean function between specific primitive values and a bag of values, and SHALL return "True" if and only if the predicate is "True" for at least one element of the bag. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$any_of implements XACMLAttributeBag { static final String FUNCTION_ANY_OF = "urn:oasis:names:tc:xacml:3.0:function:any-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:any-of"); } @Override public String toString(){ return FUNCTION_ANY_OF; } /** * This function applies a Boolean function between a specific primitive value and a bag of values, and returns "True" if and only if the predicate is "True" for every element of the bag. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$all_of implements XACMLAttributeBag { static final String FUNCTION_ALL_OF = "urn:oasis:names:tc:xacml:3.0:function:all-of"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:all-of"); } @Override public String toString(){ return FUNCTION_ALL_OF; } /** * This function applies a Boolean function on each tuple from the cross product on all bags arguments, and returns "True" if and only if the predicate is "True" for at least one inside-function call. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$any_of_any implements XACMLAttributeBag { static final String FUNCTION_ANY_OF_ANY = "urn:oasis:names:tc:xacml:3.0:function:any-of-any"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:any-of-any"); } @Override public String toString(){ return FUNCTION_ANY_OF_ANY; } /** * This function applies a Boolean function between the elements of two bags. The expression SHALL be True if and only if the supplied predicate is True between each element of the first bag and any element of the second bag. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$all_of_any implements XACMLAttributeBag { static final String FUNCTION_ALL_OF_ANY = "urn:oasis:names:tc:xacml:1.0:function:all-of-any"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:all-of-any"); } @Override public String toString(){ return FUNCTION_ALL_OF_ANY; } /** * This function applies a Boolean function between the elements of two bags. The expression SHALL be True if and only if the supplied predicate is True between each element of the second bag and any element of the first bag. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$any_of_all implements XACMLAttributeBag { static final String FUNCTION_ANY_OF_ALL = "urn:oasis:names:tc:xacml:1.0:function:any-of-all"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:any-of-all"); } @Override public String toString(){ return FUNCTION_ANY_OF_ALL; } /** * This function applies a Boolean function between the elements of two bags. The expression SHALL be "True" if and only if the supplied predicate is "True" between each and every element of the first bag collectively against all the elements of the second bag. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$all_of_all implements XACMLAttributeBag { static final String FUNCTION_ALL_OF_ALL = "urn:oasis:names:tc:xacml:1.0:function:all-of-all"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:all-of-all"); } @Override public String toString(){ return FUNCTION_ALL_OF_ALL; } /** * This function converts a bag of values to another bag of values. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$map implements XACMLAttributeBag { static final String FUNCTION_MAP = "urn:oasis:names:tc:xacml:3.0:function:map"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:map"); } @Override public String toString(){ return FUNCTION_MAP; } /** * A.3.13 Regular-expression-based functions * * These functions operate on various types using regular expressions and evaluate to http://www.w3.org/2001/XMLSchema#boolean. */ /** * This function decides a regular expression match. It SHALL take two arguments of http://www.w3.org/2001/XMLSchema#string and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be a general string. The function specification SHALL be that of the xf:matches function with the arguments reversed [XF] Section 7.6.2. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$string_regexp_match implements XACMLAttributeBag { static final String FUNCTION_STRING_REGEXP_MATCH = "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { String arg1 = args.get(0, String.class); String arg2 = args.get(1, String.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:string-regexp-match"); } @Override public String toString(){ return FUNCTION_STRING_REGEXP_MATCH; } /** * This function decides a regular expression match. It SHALL take two arguments; the first is of type http://www.w3.org/2001/XMLSchema#string and the second is of type http://www.w3.org/2001/XMLSchema#anyURI. It SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be a URI. The function SHALL convert the second argument to type http://www.w3.org/2001/XMLSchema#string with urn:oasis:names:tc:xacml:3.0:function:string-from-anyURI, then apply urn:oasis:names:tc:xacml:1.0:function:string-regexp-match. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$anyURI_regexp_match implements XACMLAttributeBag { static final String FUNCTION_ANY_URI_REGEXP_MATCH = "urn:oasis:names:tc:xacml:2.0:function:anyURI-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:anyURI-regexp-match"); } @Override public String toString(){ return FUNCTION_ANY_URI_REGEXP_MATCH; } /** * This function decides a regular expression match. It SHALL take two arguments; the first is of type http://www.w3.org/2001/XMLSchema#string and the second is of type urn:oasis:names:tc:xacml:2.0:data-type:ipAddress. It SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be an IPv4 or IPv6 address. The function SHALL convert the second argument to type http://www.w3.org/2001/XMLSchema#string with urn:oasis:names:tc:xacml:3.0:function:string-from-ipAddress, then apply urn:oasis:names:tc:xacml:1.0:function:string-regexp-match. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$ipAddress_regexp_match implements XACMLAttributeBag { static final String FUNCTION_IP_ADDRESS_REGEXP_MATCH = "urn:oasis:names:tc:xacml:2.0:function:ipAddress-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:ipAddress-regexp-match"); } @Override public String toString(){ return FUNCTION_IP_ADDRESS_REGEXP_MATCH; } /** * This function decides a regular expression match. It SHALL take two arguments; the first is of type http://www.w3.org/2001/XMLSchema#string and the second is of type urn:oasis:names:tc:xacml:2.0:data-type:dnsName. It SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be a DNS name. The function SHALL convert the second argument to type http://www.w3.org/2001/XMLSchema#string with urn:oasis:names:tc:xacml:3.0:function:string-from-dnsName, then apply urn:oasis:names:tc:xacml:1.0:function:string-regexp-match. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$dnsName_regexp_match implements XACMLAttributeBag { static final String FUNCTION_DNS_NAME_REGEXP_MATCH = "urn:oasis:names:tc:xacml:2.0:function:dnsName-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:dnsName-regexp-match"); } @Override public String toString(){ return FUNCTION_DNS_NAME_REGEXP_MATCH; } /** * This function decides a regular expression match. It SHALL take two arguments; the first is of type http://www.w3.org/2001/XMLSchema#string and the second is of type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name. It SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be an RFC 822 name. The function SHALL convert the second argument to type http://www.w3.org/2001/XMLSchema#string with urn:oasis:names:tc:xacml:3.0:function:string-from-rfc822Name, then apply urn:oasis:names:tc:xacml:1.0:function:string-regexp-match. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$rfc822Name_regexp_match implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_REGEXP_MATCH = "urn:oasis:names:tc:xacml:2.0:function:rfc822Name-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:rfc822Name-regexp-match"); } @Override public String toString(){ return FUNCTION_RFC822NAME_REGEXP_MATCH; } /** * This function decides a regular expression match. It SHALL take two arguments; the first is of type http://www.w3.org/2001/XMLSchema#string and the second is of type urn:oasis:names:tc:xacml:1.0:data-type:x500Name. It SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The first argument SHALL be a regular expression and the second argument SHALL be an X.500 directory name. The function SHALL convert the second argument to type http://www.w3.org/2001/XMLSchema#string with urn:oasis:names:tc:xacml:3.0:function:string-from-x500Name, then apply urn:oasis:names:tc:xacml:1.0:function:string-regexp-match. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_20_function$x500Name_regexp_match implements XACMLAttributeBag { static final String FUNCTION_X500NAME_REGEXP_MATCH = "urn:oasis:names:tc:xacml:2.0:function:x500Name-regexp-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:2.0:function:x500Name-regexp-match"); } @Override public String toString(){ return FUNCTION_X500NAME_REGEXP_MATCH; } /** * A.3.14 Special match functions * * These functions operate on various types and evaluate to http://www.w3.org/2001/XMLSchema#boolean based on the specified standard matching algorithm. */ /** * This function shall take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name" and shall return an "http://www.w3.org/2001/XMLSchema#boolean". It shall return True if and only if the first argument matches some terminal sequence of RDNs from the second argument when compared using x500Name-equal. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$x500Name_match implements XACMLAttributeBag { static final String FUNCTION_X500NAME_MATCH = "urn:oasis:names:tc:xacml:1.0:function:x500Name-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) { untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name arg1 = args.get(0, untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class); untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name arg2 = args.get(1, untyped:take two arguments of "urn:oasis:names:tc:xacml:1.0:data-type:x500Name",two arguments,urn:oasis:names:tc:xacml:1.0:data-type:x500Name.class); // return XACMLAttributeBag.of(Boolean.class, ...); // uncomment this line when you are satisfied with the implementation throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:x500Name-match"); } @Override public String toString(){ return FUNCTION_X500NAME_MATCH; } /** * This function SHALL take two arguments, the first is of data-type http://www.w3.org/2001/XMLSchema#string and the second is of data-type urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. This function SHALL evaluate to "True" if the first argument matches the second argument according to the following specification. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_10_function$rfc822Name_match implements XACMLAttributeBag { static final String FUNCTION_RFC822NAME_MATCH = "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:1.0:function:rfc822Name-match"); } @Override public String toString(){ return FUNCTION_RFC822NAME_MATCH; } /** * A.3.15 XPath-based functions * * This section specifies functions that take XPath expressions for arguments. An XPath expression evaluates to a node-set, which is a set of XML nodes that match the expression. A node or node-set is not in the formal data-type system of XACML. All comparison or other operations on node-sets are performed in isolation of the particular function specified. The context nodes and namespace mappings of the XPath expressions are defined by the XPath data-type, see section B.3. The following functions are defined: */ /** * This function SHALL take an urn:oasis:names:tc:xacml:3.0:data-type:xpathExpression as an argument and evaluates to an http://www.w3.org/2001/XMLSchema#integer. The value returned from the function SHALL be the count of the nodes within the node-set that match the given XPath expression. If the <Content> element of the category to which the XPath expression applies to is not present in the request, this function SHALL return a value of zero. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$xpath_node_count implements XACMLAttributeBag { static final String FUNCTION_XPATH_NODE_COUNT = "urn:oasis:names:tc:xacml:3.0:function:xpath-node-count"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:xpath-node-count"); } @Override public String toString(){ return FUNCTION_XPATH_NODE_COUNT; } /** * This function SHALL take two urn:oasis:names:tc:xacml:3.0:data-type:xpathExpression arguments and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. The function SHALL return "True" if any of the XML nodes in the node-set matched by the first argument equals any of the XML nodes in the node-set matched by the second argument. Two nodes are considered equal if they have the same identity. If the <Content> element of the category to which either XPath expression applies to is not present in the request, this function SHALL return a value of False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$xpath_node_equal implements XACMLAttributeBag { static final String FUNCTION_XPATH_NODE_EQUAL = "urn:oasis:names:tc:xacml:3.0:function:xpath-node-equal"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:xpath-node-equal"); } @Override public String toString(){ return FUNCTION_XPATH_NODE_EQUAL; } /** * This function SHALL take two urn:oasis:names:tc:xacml:3.0:data-type:xpathExpression arguments and SHALL return an http://www.w3.org/2001/XMLSchema#boolean. This function SHALL evaluate to "True" if one of the following two conditions is satisfied: (1) Any of the XML nodes in the node-set matched by the first argument is equal to any of the XML nodes in the node-set matched by the second argument; (2) any node below any of the XML nodes in the node-set matched by the first argument is equal to any of the XML nodes in the node-set matched by the second argument. Two nodes are considered equal if they have the same identity. If the <Content> element of the category to which either XPath expression applies to is not present in the request, this function SHALL return a value of False. * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$xpath_node_match implements XACMLAttributeBag { static final String FUNCTION_XPATH_NODE_MATCH = "urn:oasis:names:tc:xacml:3.0:function:xpath-node-match"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:xpath-node-match"); } @Override public String toString(){ return FUNCTION_XPATH_NODE_MATCH; } /** * A.3.16 Other functions * * This function SHALL take an http://www.w3.org/2001/XMLSchema#anyURI and an "http://www.w3.org/2001/XMLSchema#string" as arguments. The first argument SHALL be interpreted as an attribute category. The second argument SHALL be interpreted as the XML content of an <Attributes> element with Category equal to the first argument. The function evaluates to an "http://www.w3.org/2001/XMLSchema#boolean". This function SHALL return "True" if and only if the policy evaluation described below returns the value of "Permit". */ /** * This function SHALL take an http://www.w3.org/2001/XMLSchema#anyURI and an "http://www.w3.org/2001/XMLSchema#string" as arguments. The first argument SHALL be interpreted as an attribute category. The second argument SHALL be interpreted as the XML content of an <Attributes> element with Category equal to the first argument. The function evaluates to an "http://www.w3.org/2001/XMLSchema#boolean". This function SHALL return "True" if and only if the policy evaluation described below returns the value of "Permit". * * @param args a non-null bag of value(s) @return a non-null bag of value(s) */ public static final class urn_oasis_names_tc_xacml_30_function$access_permitted implements XACMLAttributeBag { static final String FUNCTION_ACCESS_PERMITTED = "urn:oasis:names:tc:xacml:3.0:function:access-permitted"; @Override public XACMLAttributeBag apply(XACMLAttributeBag arg) {throw new UnsupportedOperationException( "urn:oasis:names:tc:xacml:3.0:function:access-permitted"); } @Override public String toString(){ return FUNCTION_ACCESS_PERMITTED; } }