idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
119,800
public static JsonObject toJson ( SystemInputDef systemInput ) { JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; builder . add ( SYSTEM_KEY , systemInput . getName ( ) ) ; addAnnotations ( builder , systemInput ) ; toStream ( systemInput . getFunctionInputDefs ( ) ) . forEach ( function -> builder . add ( ...
Returns the JSON object that represents the given system input definition .
119,801
private static JsonStructure toJson ( FunctionInputDef functionInput ) { JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; addAnnotations ( builder , functionInput ) ; Arrays . stream ( functionInput . getVarTypes ( ) ) . forEach ( varType -> builder . add ( varType , toJson ( functionInput , varType ) ) ) ;...
Returns the JSON object that represents the given function input definition .
119,802
private static JsonStructure toJson ( FunctionInputDef functionInput , String varType ) { JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; toStream ( functionInput . getVarDefs ( ) ) . filter ( varDef -> varDef . getType ( ) . equals ( varType ) ) . sorted ( ) . forEach ( varDef -> builder . add ( varDef . ...
Returns the JSON object that represents the function variables of the given type .
119,803
private static JsonStructure toJson ( IVarDef varDef ) { JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; addAnnotations ( builder , varDef ) ; ConditionJson . toJson ( varDef ) . ifPresent ( json -> builder . add ( WHEN_KEY , json ) ) ; if ( varDef . getValues ( ) != null ) { JsonObjectBuilder valuesBuilde...
Returns the JSON object that represents the given variable definition .
119,804
private static JsonStructure toJson ( VarValueDef value ) { JsonObjectBuilder builder = Json . createObjectBuilder ( ) ; if ( value . getType ( ) . equals ( FAILURE ) ) { builder . add ( FAILURE_KEY , true ) ; } else if ( value . getType ( ) . equals ( ONCE ) ) { builder . add ( ONCE_KEY , true ) ; } addAnnotations ( b...
Returns the JSON object that represents the given value definition .
119,805
private static JsonObjectBuilder addAnnotations ( JsonObjectBuilder builder , IAnnotated annotated ) { JsonObjectBuilder annotations = Json . createObjectBuilder ( ) ; toStream ( annotated . getAnnotations ( ) ) . forEach ( name -> annotations . add ( name , annotated . getAnnotation ( name ) ) ) ; JsonObject json = an...
Add any annotatations from the given Annotated object to the given JsonObjectBuilder .
119,806
private static JsonObjectBuilder addProperties ( JsonObjectBuilder builder , VarValueDef value ) { JsonArrayBuilder properties = Json . createArrayBuilder ( ) ; value . getProperties ( ) . forEach ( property -> properties . add ( property ) ) ; JsonArray json = properties . build ( ) ; if ( ! json . isEmpty ( ) ) { bui...
Add any properties from the given value to the given JsonObjectBuilder .
119,807
public static SystemInputDef asSystemInputDef ( JsonObject json ) { String systemName = json . getString ( SYSTEM_KEY ) ; try { SystemInputDef systemInputDef = new SystemInputDef ( validIdentifier ( systemName ) ) ; Optional . ofNullable ( json . getJsonObject ( HAS_KEY ) ) . ifPresent ( has -> has . keySet ( ) . strea...
Returns the SystemInputDef represented by the given JSON object .
119,808
private static FunctionInputDef asFunctionInputDef ( String functionName , JsonObject json ) { FunctionInputDef functionInputDef ; try { functionInputDef = new FunctionInputDef ( validIdentifier ( functionName ) ) ; Optional . ofNullable ( json . getJsonObject ( HAS_KEY ) ) . ifPresent ( has -> has . keySet ( ) . strea...
Returns the FunctionInputDef represented by the given JSON object .
119,809
private static Stream < IVarDef > getVarDefs ( String varType , JsonObject json ) { try { Annotated groupAnnotations = new Annotated ( ) { } ; Optional . ofNullable ( json . getJsonObject ( HAS_KEY ) ) . ifPresent ( has -> has . keySet ( ) . stream ( ) . forEach ( key -> groupAnnotations . setAnnotation ( key , has . g...
Returns the variable definitions represented by the given JSON object .
119,810
private static IVarDef asVarDef ( String varName , String varType , Annotated groupAnnotations , JsonObject json ) { try { validIdentifier ( varName ) ; AbstractVarDef varDef = json . containsKey ( MEMBERS_KEY ) ? new VarSet ( varName ) : new VarDef ( varName ) ; varDef . setType ( varType ) ; Optional . ofNullable ( j...
Returns the variable definition represented by the given JSON object .
119,811
private static Stream < VarValueDef > getValueDefs ( JsonObject json ) { return json . keySet ( ) . stream ( ) . map ( valueName -> asValueDef ( valueName , json . getJsonObject ( valueName ) ) ) ; }
Returns the value definitions represented by the given JSON object .
119,812
private static VarValueDef asValueDef ( String valueName , JsonObject json ) { try { VarValueDef valueDef = new VarValueDef ( ObjectUtils . toObject ( valueName ) ) ; boolean failure = json . getBoolean ( FAILURE_KEY , false ) ; boolean once = json . getBoolean ( ONCE_KEY , false ) ; valueDef . setType ( failure ? VarV...
Returns the value definition represented by the given JSON object .
119,813
private static Optional < ICondition > asContainsAll ( JsonObject json ) { return json . containsKey ( HAS_ALL_KEY ) ? Optional . of ( new ContainsAll ( toIdentifiers ( json . getJsonArray ( HAS_ALL_KEY ) ) ) ) : Optional . empty ( ) ; }
Returns the ContainsAll condition represented by the given JSON object or an empty value if no such condition is found .
119,814
private static Optional < ICondition > asContainsAny ( JsonObject json ) { return json . containsKey ( HAS_ANY_KEY ) ? Optional . of ( new ContainsAny ( toIdentifiers ( json . getJsonArray ( HAS_ANY_KEY ) ) ) ) : Optional . empty ( ) ; }
Returns the ContainsAny condition represented by the given JSON object or an empty value if no such condition is found .
119,815
private static Optional < ICondition > asNot ( JsonObject json ) { return json . containsKey ( NOT_KEY ) ? Optional . of ( new Not ( asCondition ( json . getJsonObject ( NOT_KEY ) ) ) ) : Optional . empty ( ) ; }
Returns the Not condition represented by the given JSON object or an empty value if no such condition is found .
119,816
private static Optional < ICondition > asAllOf ( JsonObject json ) { return json . containsKey ( ALL_OF_KEY ) ? Optional . of ( new AllOf ( toConditions ( json . getJsonArray ( ALL_OF_KEY ) ) ) ) : Optional . empty ( ) ; }
Returns the AllOf condition represented by the given JSON object or an empty value if no such condition is found .
119,817
private static Optional < ICondition > asAnyOf ( JsonObject json ) { return json . containsKey ( ANY_OF_KEY ) ? Optional . of ( new AnyOf ( toConditions ( json . getJsonArray ( ANY_OF_KEY ) ) ) ) : Optional . empty ( ) ; }
Returns the AnyOf condition represented by the given JSON object or an empty value if no such condition is found .
119,818
private static Optional < ICondition > asLessThan ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( LESS_THAN_KEY ) ) . map ( j -> j . getJsonObject ( LESS_THAN_KEY ) ) . map ( a -> new AssertLess ( a . getString ( PROPERTY_KEY ) , a . getInt ( MAX_KEY ) ) ) ; }
Returns the AssertLess condition represented by the given JSON object or an empty value if no such condition is found .
119,819
private static Optional < ICondition > asMoreThan ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( MORE_THAN_KEY ) ) . map ( j -> j . getJsonObject ( MORE_THAN_KEY ) ) . map ( a -> new AssertMore ( a . getString ( PROPERTY_KEY ) , a . getInt ( MIN_KEY ) ) ) ; }
Returns the AssertMore condition represented by the given JSON object or an empty value if no such condition is found .
119,820
private static Optional < ICondition > asNotLessThan ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( NOT_LESS_THAN_KEY ) ) . map ( j -> j . getJsonObject ( NOT_LESS_THAN_KEY ) ) . map ( a -> new AssertNotLess ( a . getString ( PROPERTY_KEY ) , a . getInt ( MIN_KEY ) ) ) ; }
Returns the AssertNotLess condition represented by the given JSON object or an empty value if no such condition is found .
119,821
private static Optional < ICondition > asNotMoreThan ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( NOT_MORE_THAN_KEY ) ) . map ( j -> j . getJsonObject ( NOT_MORE_THAN_KEY ) ) . map ( a -> new AssertNotMore ( a . getString ( PROPERTY_KEY ) , a . getInt ( MAX_KEY ) ) ) ; }
Returns the AssertNotMore condition represented by the given JSON object or an empty value if no such condition is found .
119,822
private static Optional < ICondition > asBetween ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( BETWEEN_KEY ) ) . map ( j -> j . getJsonObject ( BETWEEN_KEY ) ) . map ( b -> new Between ( b . containsKey ( EXCLUSIVE_MIN_KEY ) ? new AssertMore ( b . getString ( PROPERTY_KEY ) , b ....
Returns the between condition represented by the given JSON object or an empty value if no such condition is found .
119,823
private static Optional < ICondition > asEquals ( JsonObject json ) { return Optional . of ( json ) . filter ( j -> j . containsKey ( EQUALS_KEY ) ) . map ( j -> j . getJsonObject ( EQUALS_KEY ) ) . map ( e -> new Equals ( e . getString ( PROPERTY_KEY ) , e . getInt ( COUNT_KEY ) ) ) ; }
Returns the equals condition represented by the given JSON object or an empty value if no such condition is found .
119,824
private static List < String > toIdentifiers ( JsonArray array ) { return IntStream . range ( 0 , array . size ( ) ) . mapToObj ( i -> validIdentifier ( array . getString ( i ) ) ) . collect ( toList ( ) ) ; }
Returns the contents of the given JSON array as a list of identifiers .
119,825
private static ICondition [ ] toConditions ( JsonArray array ) { return IntStream . range ( 0 , array . size ( ) ) . mapToObj ( i -> asCondition ( array . getJsonObject ( i ) ) ) . collect ( toList ( ) ) . toArray ( new ICondition [ 0 ] ) ; }
Returns the contents of the given JSON array as an array of conditions .
119,826
public ICondition getEffectiveCondition ( ICondition contextCondition ) { ICondition condition = getCondition ( ) ; ICondition effCondition ; if ( condition == null && contextCondition == null ) { effCondition = ICondition . ALWAYS ; } else if ( condition == null && contextCondition != null ) { effCondition = contextCo...
Returns the effective condition that defines when this element is applicable given the specified context condition .
119,827
public SystemInputDef addFunctionInputDef ( FunctionInputDef functionInputDef ) { assert functionInputDef != null ; assert functionInputDef . getName ( ) != null ; if ( findFunctionInputDef ( functionInputDef . getName ( ) ) >= 0 ) { throw new IllegalStateException ( "Function=" + functionInputDef . getName ( ) + " alr...
Adds a new function definition .
119,828
public SystemInputDef removeFunctionInputDef ( String name ) { int i = findFunctionInputDef ( name ) ; if ( i >= 0 ) { functionInputDefs_ . remove ( i ) ; } return this ; }
Removes a function definition .
119,829
public FunctionInputDef getFunctionInputDef ( String name ) { int i = findFunctionInputDef ( name ) ; return i >= 0 ? functionInputDefs_ . get ( i ) : null ; }
Returns the function definition with the given name .
119,830
protected int findFunctionInputDef ( String name ) { int functionCount = name == null ? 0 : functionInputDefs_ . size ( ) ; int i ; for ( i = 0 ; i < functionCount && ! name . equals ( functionInputDefs_ . get ( i ) . getName ( ) ) ; i ++ ) ; return i < functionCount ? i : - 1 ; }
Returns the index of the function definition with the given name .
119,831
private Tuple getNextTuple ( ) { if ( nextTuple_ == null ) { int tupleSize = getTupleSize ( ) ; if ( ! ( values_ != null && values_ . hasNext ( ) ) ) { values_ = null ; subTuple_ = null ; if ( ! ( subTuples_ != null && subTuples_ . hasNext ( ) ) ) { subTuples_ = null ; varStart_ ++ ; if ( tupleSize > 1 ) { for ( ; varS...
Returns the next N - tuple of compatible values .
119,832
private String getProjectFile ( String projectName , String filePattern ) { String projectFile = null ; if ( ! StringUtils . isBlank ( filePattern ) ) { Matcher matcher = projectFilePattern_ . matcher ( filePattern ) ; if ( matcher . matches ( ) ) { projectFile = StringUtils . isBlank ( matcher . group ( 2 ) ) ? filePa...
Returns the file name defined by applying the given pattern to the project name . Returns null if the file pattern is invalid .
119,833
private File getBaseDir ( File path ) { return path == null ? baseDir_ : path . isAbsolute ( ) ? path : new File ( baseDir_ , path . getPath ( ) ) ; }
If the given path is not absolute returns it as an absolute path relative to the project base directory . Otherwise returns the given absolute path .
119,834
private File getTargetDir ( File path ) { return path == null ? targetDir_ : path . isAbsolute ( ) ? path : new File ( targetDir_ , path . getPath ( ) ) ; }
If the given path is not absolute returns it as an absolute path relative to the project target directory . Otherwise returns the given absolute path .
119,835
public void setAnnotation ( String name , String value ) { String annotation = StringUtils . trimToNull ( name ) ; if ( annotation == null ) { throw new IllegalArgumentException ( "Annotation name must be non-blank" ) ; } if ( value == null ) { annotations_ . remove ( annotation ) ; } else { annotations_ . put ( annota...
Changes the value of the given annotation .
119,836
public void addAnnotations ( Annotated other ) { for ( Iterator < String > otherAnnotations = other . getAnnotations ( ) ; otherAnnotations . hasNext ( ) ; ) { String name = otherAnnotations . next ( ) ; if ( getAnnotation ( name ) == null ) { setAnnotation ( name , other . getAnnotation ( name ) ) ; } } }
Adds annotations from another annotated element . This leaves all existing annotation unchanged adding only annotations not already defined .
119,837
public TupleRef addVarBinding ( VarBinding varBinding ) { assert varBinding != null ; assert varBinding . getVar ( ) != null ; String varName = varBinding . getVar ( ) ; if ( varBindings_ . containsKey ( varName ) ) { throw new IllegalStateException ( "Value for " + varName + " already defined" ) ; } varBindings_ . put...
Adds a new variable binding .
119,838
public static void writeGenerators ( IGeneratorSet generators , OutputStream outputStream ) { try ( GeneratorSetJsonWriter writer = new GeneratorSetJsonWriter ( outputStream ) ) { writer . write ( generators ) ; } catch ( Exception e ) { throw new RuntimeException ( "Can't write generator definitions" , e ) ; } }
Writes a JSON document describing the given generator definitions to the given output stream .
119,839
private boolean isYaml ( ) { String extension = getLocation ( ) == null ? null : FilenameUtils . getExtension ( getLocation ( ) . getPath ( ) ) . toLowerCase ( ) ; return "yml" . equals ( extension ) || "yaml" . equals ( extension ) ; }
Returns true if this is a YAML document .
119,840
private static URL toUrl ( File file ) { try { return file == null ? null : file . toURI ( ) . toURL ( ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Can't get URL for file=" + file ) ; } }
Returns a URL for the given file .
119,841
private static InputStream inputFor ( File file ) { try { return file == null ? null : new FileInputStream ( file ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Can't open file=" + file ) ; } }
Returns an InputStream for the given file .
119,842
public SystemInputDefBuilder has ( String name , Object value ) { systemInputDef_ . setAnnotation ( name , Objects . toString ( value , null ) ) ; return this ; }
Adds a system annotation .
119,843
public SystemInputDefBuilder hasIf ( String name , Object value ) { return value != null ? has ( name , value ) : this ; }
Adds a system annotation if the given value is non - null
119,844
public BoundedAssertion getMin ( ) { ICondition min = null ; Iterator < ICondition > conditions = getConditions ( ) ; for ( int i = 0 ; i < 1 ; i ++ ) min = conditions . next ( ) ; return ( BoundedAssertion ) min ; }
Returns the minimum condition .
119,845
public BoundedAssertion getMax ( ) { ICondition max = null ; Iterator < ICondition > conditions = getConditions ( ) ; for ( int i = 0 ; i < 2 ; i ++ ) max = conditions . next ( ) ; return ( BoundedAssertion ) max ; }
Returns the maximum condition .
119,846
public FunctionInputDefBuilder vars ( String type , AbstractVarDef ... vars ) { for ( AbstractVarDef var : vars ) { var . setType ( type ) ; functionInputDef_ . addVarDef ( var ) ; } return this ; }
Adds function input variables of the given type .
119,847
public FunctionInputDefBuilder has ( String name , Object value ) { functionInputDef_ . setAnnotation ( name , Objects . toString ( value , null ) ) ; return this ; }
Adds a function annotation .
119,848
public FunctionInputDefBuilder hasIf ( String name , Object value ) { return value != null ? has ( name , value ) : this ; }
Adds a function annotation if the given value is non - null
119,849
public static < T > ListBuilder < T > to ( List < T > list ) { return new ListBuilder < T > ( list ) ; }
Creates a new ListBuilder object .
119,850
public ListBuilder < T > addAll ( Iterable < T > elements ) { for ( T element : elements ) { list_ . add ( element ) ; } return this ; }
Appends all elements of the given colletion to the list for this builder .
119,851
public Iterator < Tuple > getUsed ( ) { if ( usedChanged_ ) { Collections . sort ( used_ , tupleSizeDescending_ ) ; usedChanged_ = false ; } return used_ . iterator ( ) ; }
Returns input tuples already used in a test case .
119,852
private Iterator < Tuple > getBinds ( Iterator < Tuple > tuples , final VarDef var ) { return IteratorUtils . filteredIterator ( tuples , tuple -> tuple . getBinding ( var ) != null ) ; }
Returns input tuples that bind the given variable .
119,853
public void used ( final TestCaseDef testCase ) { List < Tuple > usedTuples = IteratorUtils . toList ( IteratorUtils . filteredIterator ( IteratorUtils . chainedIterator ( unused_ . iterator ( ) , used_ . iterator ( ) ) , tuple -> testCase . usesTuple ( tuple ) ) ) ; for ( Tuple tuple : usedTuples ) { used ( tuple ) ; ...
Asserts use of all tuples contained in the given test case .
119,854
public void used ( Tuple tuple ) { int i = unused_ . indexOf ( tuple ) ; if ( i >= 0 ) { unused_ . remove ( i ) ; addUsed ( tuple ) ; if ( tuple . size ( ) > 1 ) { for ( Iterator < VarBindingDef > bindings = tuple . getBindings ( ) ; bindings . hasNext ( ) ; ) { Tuple tuple1 = new Tuple ( bindings . next ( ) ) ; tuple1...
Asserts that the given tuple has been used in a test case .
119,855
public void remove ( Tuple tuple ) { int i = unused_ . indexOf ( tuple ) ; if ( i >= 0 ) { unused_ . remove ( tuple ) ; } }
Removes the given tuple from use in test cases .
119,856
public Tuple getNextUnused ( ) { Iterator < Tuple > unused = getUnused ( ) ; return unused . hasNext ( ) ? unused . next ( ) : null ; }
Returns the next unused tuple from this set . Returns null if all tuples have been used .
119,857
public VarDefBuilder has ( String name , Object value ) { varDef_ . setAnnotation ( name , Objects . toString ( value , null ) ) ; return this ; }
Adds a variable annotation .
119,858
public VarDefBuilder hasIf ( String name , Object value ) { return value != null ? has ( name , value ) : this ; }
Adds a variable annotation if the given value is non - null
119,859
private static String errorReasonFor ( URL location , List < String > errors ) { return Stream . concat ( Stream . of ( String . format ( "%s conformance problem(s) found in Open API document%s" , errors . size ( ) , locationId ( location ) ) ) , IntStream . range ( 0 , errors . size ( ) ) . mapToObj ( i -> String . fo...
Returns a reason for the errors in the document at the given location .
119,860
public VarDef addValue ( VarValueDef value ) { assert value != null ; if ( findValue ( value . getName ( ) ) >= 0 ) { throw new IllegalStateException ( "Value=" + value . getName ( ) + " already defined for variable=" + getPathName ( ) ) ; } values_ . add ( value ) ; return this ; }
Adds a value definition for this variable .
119,861
public VarDef removeValue ( Object name ) { int i = findValue ( name ) ; if ( i >= 0 ) { values_ . remove ( i ) ; } return this ; }
Removes a value definition from this variable .
119,862
public VarValueDef getValue ( Object name ) { int i = findValue ( name ) ; return i >= 0 ? values_ . get ( i ) : null ; }
Returns the value definition with the given name .
119,863
public boolean isApplicable ( VarValueDef value ) { return value . isNA ( ) ? isOptional ( ) : getValue ( value . getName ( ) ) != null ; }
Returns true if the given value can be bound to this variable .
119,864
protected int findValue ( Object name ) { int valueCount = values_ . size ( ) ; int i ; for ( i = 0 ; i < valueCount && ! Objects . equals ( name , values_ . get ( i ) . getName ( ) ) ; i ++ ) ; return i < valueCount ? i : - 1 ; }
Returns the index of the value definition with the given name .
119,865
public boolean satisfied ( PropertySet propertySet ) { boolean isSatisfied ; Iterator < String > properties ; for ( properties = getProperties ( ) , isSatisfied = ! properties . hasNext ( ) ; ! isSatisfied && properties . hasNext ( ) ; isSatisfied = propertySet . contains ( properties . next ( ) ) ) ; return isSatisfie...
Returns true if this condition is satisfied by the given test case contains .
119,866
public static Stream < String > propertiesReferenced ( ICondition condition ) { if ( condition == null ) { return Stream . empty ( ) ; } PropertyVisitor propertyVisitor = new PropertyVisitor ( ) ; condition . accept ( propertyVisitor ) ; return propertyVisitor . propertiesVisited ( ) ; }
Returns the properties referenced by the given condition .
119,867
public PropertySet remove ( String property ) { String candidate = StringUtils . trimToNull ( property ) ; if ( candidate != null ) { properties_ . remove ( candidate , 1 ) ; } return this ; }
Removes a property from this set .
119,868
public ITestCaseGenerator getGenerator ( String functionName ) { ITestCaseGenerator generator = generators_ . get ( getFunctionKey ( functionName ) ) ; return generator == null ? generators_ . get ( ALL ) : generator ; }
Returns the test case generator for the given system function .
119,869
public String [ ] getGeneratorFunctions ( ) { String [ ] functions = new String [ generators_ . size ( ) ] ; generators_ . keySet ( ) . toArray ( functions ) ; return functions ; }
Returns the set of system function names associated with generators in this set .
119,870
public void addGenerator ( String functionName , ITestCaseGenerator generator ) { String functionKey = getFunctionKey ( functionName ) ; if ( generators_ . containsKey ( functionKey ) ) { throw new IllegalArgumentException ( "Generator already defined for function=" + functionName ) ; } if ( generator != null ) { gener...
Adds a new test case generator for the given system function .
119,871
public void setGenerator ( String functionName , ITestCaseGenerator generator ) { String functionKey = getFunctionKey ( functionName ) ; if ( generator == null ) { generators_ . remove ( functionKey ) ; } else { generators_ . put ( functionKey , generator ) ; } }
Changes the test case generator for the given system function .
119,872
public static GeneratorSet basicGenerator ( ) { GeneratorSet genSet = new GeneratorSet ( ) ; genSet . addGenerator ( GeneratorSet . ALL , new TupleGenerator ( ) ) ; return genSet ; }
Returns a GeneratorSet that uses the default TupleGenerator for all functions .
119,873
private String getFunctionKey ( String functionName ) { functionName = StringUtils . trimToNull ( functionName ) ; return functionName == null ? ALL : functionName ; }
Returns the key used to find the test case generator for the given system function .
119,874
public SystemInputDef getSystemInput ( ) { if ( systemInputDef_ == null && systemInputRef_ != null ) { try ( SystemInputResource resource = SystemInputResource . at ( urlFor ( systemInputRef_ ) ) ) { systemInputDef_ = resource . getSystemInputDef ( ) ; } catch ( Exception e ) { throw new SystemInputException ( String ....
Returns the system input definition for this project .
119,875
public IGeneratorSet getGenerators ( ) { if ( generatorSet_ == null && generatorSetRef_ != null ) { try ( GeneratorSetResource resource = GeneratorSetResource . at ( urlFor ( generatorSetRef_ ) ) ) { generatorSet_ = resource . getGeneratorSet ( ) ; } catch ( Exception e ) { throw new GeneratorSetException ( String . fo...
Returns the generator set for this project .
119,876
public URL urlFor ( URI location ) throws MalformedURLException { URI uri = getBaseLocation ( ) == null ? location : getBaseLocation ( ) . resolve ( location ) ; return uri . toURL ( ) ; }
Returns the full URL for the project element at the given location .
119,877
private void updatePrincipal ( ) { principal = new JsonObject ( ) ; profiles . forEach ( ( name , profile ) -> { final JsonObject jsonProfile = new JsonObject ( ) ; profile . getAttributes ( ) . forEach ( ( attributeName , attributeValue ) -> jsonProfile . put ( attributeName , attributeValue . toString ( ) ) ) ; princ...
Update the principal to be called on any modification of the profiles map internally .
119,878
public void handle ( final RoutingContext routingContext ) { final VertxWebContext webContext = new VertxWebContext ( routingContext , sessionStore ) ; final Pac4jUser pac4jUser = ( Pac4jUser ) routingContext . user ( ) ; if ( pac4jUser != null ) { final Map < String , CommonProfile > indirectProfiles = pac4jUser . pac...
Port of Pac4J auth to a handler in vert . x 3 .
119,879
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfClosureSurface ( ) { if ( _GenericApplicationPropertyOfClosureSurface == null ) { _GenericApplicationPropertyOfClosureSurface = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfClosureSurface ; }
Gets the value of the genericApplicationPropertyOfClosureSurface property .
119,880
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfBridgeRoom ( ) { if ( _GenericApplicationPropertyOfBridgeRoom == null ) { _GenericApplicationPropertyOfBridgeRoom = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfBridgeRoom ; }
Gets the value of the genericApplicationPropertyOfBridgeRoom property .
119,881
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfAuxiliaryTrafficArea ( ) { if ( _GenericApplicationPropertyOfAuxiliaryTrafficArea == null ) { _GenericApplicationPropertyOfAuxiliaryTrafficArea = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfAuxiliaryTr...
Gets the value of the genericApplicationPropertyOfAuxiliaryTrafficArea property .
119,882
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfTunnelInstallation ( ) { if ( _GenericApplicationPropertyOfTunnelInstallation == null ) { _GenericApplicationPropertyOfTunnelInstallation = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfTunnelInstallatio...
Gets the value of the genericApplicationPropertyOfTunnelInstallation property .
119,883
public List < JAXBElement < ? extends AbstractCurveSegmentType > > get_CurveSegment ( ) { if ( _CurveSegment == null ) { _CurveSegment = new ArrayList < JAXBElement < ? extends AbstractCurveSegmentType > > ( ) ; } return this . _CurveSegment ; }
Gets the value of the curveSegment property .
119,884
public List < JAXBElement < ? extends AbstractTopoPrimitiveType > > get_TopoPrimitive ( ) { if ( _TopoPrimitive == null ) { _TopoPrimitive = new ArrayList < JAXBElement < ? extends AbstractTopoPrimitiveType > > ( ) ; } return this . _TopoPrimitive ; }
Gets the value of the topoPrimitive property .
119,885
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfSolitaryVegetationObject ( ) { if ( _GenericApplicationPropertyOfSolitaryVegetationObject == null ) { _GenericApplicationPropertyOfSolitaryVegetationObject = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyO...
Gets the value of the genericApplicationPropertyOfSolitaryVegetationObject property .
119,886
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfIntBridgeInstallation ( ) { if ( _GenericApplicationPropertyOfIntBridgeInstallation == null ) { _GenericApplicationPropertyOfIntBridgeInstallation = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfIntBridg...
Gets the value of the genericApplicationPropertyOfIntBridgeInstallation property .
119,887
public List < JAXBElement < CodeType > > getName ( ) { if ( name == null ) { name = new ArrayList < JAXBElement < CodeType > > ( ) ; } return this . name ; }
Multiple names may be provided . These will often be distinguished by being assigned by different authorities as indicated by the value of the codeSpace attribute . In an instance document there will usually only be one name per authority . Gets the value of the name property .
119,888
public List < JAXBElement < ? extends AbstractSurfaceType > > get_Surface ( ) { if ( _Surface == null ) { _Surface = new ArrayList < JAXBElement < ? extends AbstractSurfaceType > > ( ) ; } return this . _Surface ; }
Gets the value of the surface property .
119,889
public List < JAXBElement < ? extends AbstractGeometryType > > get_Geometry ( ) { if ( _Geometry == null ) { _Geometry = new ArrayList < JAXBElement < ? extends AbstractGeometryType > > ( ) ; } return this . _Geometry ; }
Gets the value of the geometry property .
119,890
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfAddress ( ) { if ( _GenericApplicationPropertyOfAddress == null ) { _GenericApplicationPropertyOfAddress = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfAddress ; }
Gets the value of the genericApplicationPropertyOfAddress property .
119,891
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfBuildingPart ( ) { if ( _GenericApplicationPropertyOfBuildingPart == null ) { _GenericApplicationPropertyOfBuildingPart = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfBuildingPart ; }
Gets the value of the genericApplicationPropertyOfBuildingPart property .
119,892
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfRoofSurface ( ) { if ( _GenericApplicationPropertyOfRoofSurface == null ) { _GenericApplicationPropertyOfRoofSurface = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfRoofSurface ; }
Gets the value of the genericApplicationPropertyOfRoofSurface property .
119,893
public List < PremiseElement . PremiseName > getPremiseName ( ) { if ( premiseName == null ) { premiseName = new ArrayList < PremiseElement . PremiseName > ( ) ; } return this . premiseName ; }
Gets the value of the premiseName property .
119,894
public List < LocalityElement . LocalityName > getLocalityName ( ) { if ( localityName == null ) { localityName = new ArrayList < LocalityElement . LocalityName > ( ) ; } return this . localityName ; }
Gets the value of the localityName property .
119,895
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfBridge ( ) { if ( _GenericApplicationPropertyOfBridge == null ) { _GenericApplicationPropertyOfBridge = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfBridge ; }
Gets the value of the genericApplicationPropertyOfBridge property .
119,896
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfBuilding ( ) { if ( _GenericApplicationPropertyOfBuilding == null ) { _GenericApplicationPropertyOfBuilding = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfBuilding ; }
Gets the value of the genericApplicationPropertyOfBuilding property .
119,897
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfRoad ( ) { if ( _GenericApplicationPropertyOfRoad == null ) { _GenericApplicationPropertyOfRoad = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfRoad ; }
Gets the value of the genericApplicationPropertyOfRoad property .
119,898
public List < JAXBElement < ? extends AbstractGenericAttributeType > > get_GenericAttribute ( ) { if ( _GenericAttribute == null ) { _GenericAttribute = new ArrayList < JAXBElement < ? extends AbstractGenericAttributeType > > ( ) ; } return this . _GenericAttribute ; }
Gets the value of the genericAttribute property .
119,899
public List < JAXBElement < Object > > get_GenericApplicationPropertyOfCityObject ( ) { if ( _GenericApplicationPropertyOfCityObject == null ) { _GenericApplicationPropertyOfCityObject = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfCityObject ; }
Gets the value of the genericApplicationPropertyOfCityObject property .