repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toJson | 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( functio... | java | 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( functio... | [
"public",
"static",
"JsonObject",
"toJson",
"(",
"SystemInputDef",
"systemInput",
")",
"{",
"JsonObjectBuilder",
"builder",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"builder",
".",
"add",
"(",
"SYSTEM_KEY",
",",
"systemInput",
".",
"getName",
"(",... | Returns the JSON object that represents the given system input definition. | [
"Returns",
"the",
"JSON",
"object",
"that",
"represents",
"the",
"given",
"system",
"input",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L47-L57 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toJson | 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)));
return b... | java | 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)));
return b... | [
"private",
"static",
"JsonStructure",
"toJson",
"(",
"FunctionInputDef",
"functionInput",
")",
"{",
"JsonObjectBuilder",
"builder",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"addAnnotations",
"(",
"builder",
",",
"functionInput",
")",
";",
"Arrays",
... | Returns the JSON object that represents the given function input definition. | [
"Returns",
"the",
"JSON",
"object",
"that",
"represents",
"the",
"given",
"function",
"input",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L62-L71 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toJson | 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.getNa... | java | 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.getNa... | [
"private",
"static",
"JsonStructure",
"toJson",
"(",
"FunctionInputDef",
"functionInput",
",",
"String",
"varType",
")",
"{",
"JsonObjectBuilder",
"builder",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"toStream",
"(",
"functionInput",
".",
"getVarDefs",... | Returns the JSON object that represents the function variables of the given type. | [
"Returns",
"the",
"JSON",
"object",
"that",
"represents",
"the",
"function",
"variables",
"of",
"the",
"given",
"type",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L76-L85 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toJson | 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 valuesBu... | java | 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 valuesBu... | [
"private",
"static",
"JsonStructure",
"toJson",
"(",
"IVarDef",
"varDef",
")",
"{",
"JsonObjectBuilder",
"builder",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"addAnnotations",
"(",
"builder",
",",
"varDef",
")",
";",
"ConditionJson",
".",
"toJson",... | Returns the JSON object that represents the given variable definition. | [
"Returns",
"the",
"JSON",
"object",
"that",
"represents",
"the",
"given",
"variable",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L90-L112 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toJson | 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);
}
... | java | 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);
}
... | [
"private",
"static",
"JsonStructure",
"toJson",
"(",
"VarValueDef",
"value",
")",
"{",
"JsonObjectBuilder",
"builder",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"if",
"(",
"value",
".",
"getType",
"(",
")",
".",
"equals",
"(",
"FAILURE",
")",
... | Returns the JSON object that represents the given value definition. | [
"Returns",
"the",
"JSON",
"object",
"that",
"represents",
"the",
"given",
"value",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L117-L137 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.addAnnotations | 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 = annotations.bu... | java | 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 = annotations.bu... | [
"private",
"static",
"JsonObjectBuilder",
"addAnnotations",
"(",
"JsonObjectBuilder",
"builder",
",",
"IAnnotated",
"annotated",
")",
"{",
"JsonObjectBuilder",
"annotations",
"=",
"Json",
".",
"createObjectBuilder",
"(",
")",
";",
"toStream",
"(",
"annotated",
".",
... | Add any annotatations from the given Annotated object to the given JsonObjectBuilder. | [
"Add",
"any",
"annotatations",
"from",
"the",
"given",
"Annotated",
"object",
"to",
"the",
"given",
"JsonObjectBuilder",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L142-L154 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.addProperties | 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... | java | 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... | [
"private",
"static",
"JsonObjectBuilder",
"addProperties",
"(",
"JsonObjectBuilder",
"builder",
",",
"VarValueDef",
"value",
")",
"{",
"JsonArrayBuilder",
"properties",
"=",
"Json",
".",
"createArrayBuilder",
"(",
")",
";",
"value",
".",
"getProperties",
"(",
")",
... | Add any properties from the given value to the given JsonObjectBuilder. | [
"Add",
"any",
"properties",
"from",
"the",
"given",
"value",
"to",
"the",
"given",
"JsonObjectBuilder",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L159-L171 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asSystemInputDef | public static SystemInputDef asSystemInputDef( JsonObject json)
{
String systemName = json.getString( SYSTEM_KEY);
try
{
SystemInputDef systemInputDef = new SystemInputDef( validIdentifier( systemName));
// Get system annotations
Optional.ofNullable( json.getJsonObject( HAS_KE... | java | public static SystemInputDef asSystemInputDef( JsonObject json)
{
String systemName = json.getString( SYSTEM_KEY);
try
{
SystemInputDef systemInputDef = new SystemInputDef( validIdentifier( systemName));
// Get system annotations
Optional.ofNullable( json.getJsonObject( HAS_KE... | [
"public",
"static",
"SystemInputDef",
"asSystemInputDef",
"(",
"JsonObject",
"json",
")",
"{",
"String",
"systemName",
"=",
"json",
".",
"getString",
"(",
"SYSTEM_KEY",
")",
";",
"try",
"{",
"SystemInputDef",
"systemInputDef",
"=",
"new",
"SystemInputDef",
"(",
... | Returns the SystemInputDef represented by the given JSON object. | [
"Returns",
"the",
"SystemInputDef",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L176-L198 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asFunctionInputDef | private static FunctionInputDef asFunctionInputDef( String functionName, JsonObject json)
{
FunctionInputDef functionInputDef;
try
{
functionInputDef = new FunctionInputDef( validIdentifier( functionName));
// Get function annotations
Optional.ofNullable( json.getJsonObject( ... | java | private static FunctionInputDef asFunctionInputDef( String functionName, JsonObject json)
{
FunctionInputDef functionInputDef;
try
{
functionInputDef = new FunctionInputDef( validIdentifier( functionName));
// Get function annotations
Optional.ofNullable( json.getJsonObject( ... | [
"private",
"static",
"FunctionInputDef",
"asFunctionInputDef",
"(",
"String",
"functionName",
",",
"JsonObject",
"json",
")",
"{",
"FunctionInputDef",
"functionInputDef",
";",
"try",
"{",
"functionInputDef",
"=",
"new",
"FunctionInputDef",
"(",
"validIdentifier",
"(",
... | Returns the FunctionInputDef represented by the given JSON object. | [
"Returns",
"the",
"FunctionInputDef",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L203-L245 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.getVarDefs | private static Stream<IVarDef> getVarDefs( String varType, JsonObject json)
{
try
{
// Get annotations for this group of variables
Annotated groupAnnotations = new Annotated(){};
Optional.ofNullable( json.getJsonObject( HAS_KEY))
.ifPresent( has -> has.keySet().stream().forEach( ... | java | private static Stream<IVarDef> getVarDefs( String varType, JsonObject json)
{
try
{
// Get annotations for this group of variables
Annotated groupAnnotations = new Annotated(){};
Optional.ofNullable( json.getJsonObject( HAS_KEY))
.ifPresent( has -> has.keySet().stream().forEach( ... | [
"private",
"static",
"Stream",
"<",
"IVarDef",
">",
"getVarDefs",
"(",
"String",
"varType",
",",
"JsonObject",
"json",
")",
"{",
"try",
"{",
"// Get annotations for this group of variables",
"Annotated",
"groupAnnotations",
"=",
"new",
"Annotated",
"(",
")",
"{",
... | Returns the variable definitions represented by the given JSON object. | [
"Returns",
"the",
"variable",
"definitions",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L250-L269 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asVarDef | 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(... | java | 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(... | [
"private",
"static",
"IVarDef",
"asVarDef",
"(",
"String",
"varName",
",",
"String",
"varType",
",",
"Annotated",
"groupAnnotations",
",",
"JsonObject",
"json",
")",
"{",
"try",
"{",
"validIdentifier",
"(",
"varName",
")",
";",
"AbstractVarDef",
"varDef",
"=",
... | Returns the variable definition represented by the given JSON object. | [
"Returns",
"the",
"variable",
"definition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L274-L327 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.getValueDefs | private static Stream<VarValueDef> getValueDefs( JsonObject json)
{
return
json.keySet().stream()
.map( valueName -> asValueDef( valueName, json.getJsonObject( valueName)));
} | java | private static Stream<VarValueDef> getValueDefs( JsonObject json)
{
return
json.keySet().stream()
.map( valueName -> asValueDef( valueName, json.getJsonObject( valueName)));
} | [
"private",
"static",
"Stream",
"<",
"VarValueDef",
">",
"getValueDefs",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"keySet",
"(",
")",
".",
"stream",
"(",
")",
".",
"map",
"(",
"valueName",
"->",
"asValueDef",
"(",
"valueName",
",",
"jso... | Returns the value definitions represented by the given JSON object. | [
"Returns",
"the",
"value",
"definitions",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L332-L337 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asValueDef | private static VarValueDef asValueDef( String valueName, JsonObject json)
{
try
{
VarValueDef valueDef = new VarValueDef( ObjectUtils.toObject( valueName));
// Get the type of this value
boolean failure = json.getBoolean( FAILURE_KEY, false);
boolean once = json.getBoolean( ONCE_K... | java | private static VarValueDef asValueDef( String valueName, JsonObject json)
{
try
{
VarValueDef valueDef = new VarValueDef( ObjectUtils.toObject( valueName));
// Get the type of this value
boolean failure = json.getBoolean( FAILURE_KEY, false);
boolean once = json.getBoolean( ONCE_K... | [
"private",
"static",
"VarValueDef",
"asValueDef",
"(",
"String",
"valueName",
",",
"JsonObject",
"json",
")",
"{",
"try",
"{",
"VarValueDef",
"valueDef",
"=",
"new",
"VarValueDef",
"(",
"ObjectUtils",
".",
"toObject",
"(",
"valueName",
")",
")",
";",
"// Get t... | Returns the value definition represented by the given JSON object. | [
"Returns",
"the",
"value",
"definition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L342-L380 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asContainsAll | 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();
} | java | 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();
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asContainsAll",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"containsKey",
"(",
"HAS_ALL_KEY",
")",
"?",
"Optional",
".",
"of",
"(",
"new",
"ContainsAll",
"(",
"toIdentifiers",
"(",
"j... | Returns the ContainsAll condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"ContainsAll",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L432-L438 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asContainsAny | 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();
} | java | 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();
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asContainsAny",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"containsKey",
"(",
"HAS_ANY_KEY",
")",
"?",
"Optional",
".",
"of",
"(",
"new",
"ContainsAny",
"(",
"toIdentifiers",
"(",
"j... | Returns the ContainsAny condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"ContainsAny",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L444-L450 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asNot | private static Optional<ICondition> asNot( JsonObject json)
{
return
json.containsKey( NOT_KEY)
? Optional.of( new Not( asCondition( json.getJsonObject( NOT_KEY))))
: Optional.empty();
} | java | private static Optional<ICondition> asNot( JsonObject json)
{
return
json.containsKey( NOT_KEY)
? Optional.of( new Not( asCondition( json.getJsonObject( NOT_KEY))))
: Optional.empty();
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asNot",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"containsKey",
"(",
"NOT_KEY",
")",
"?",
"Optional",
".",
"of",
"(",
"new",
"Not",
"(",
"asCondition",
"(",
"json",
".",
"getJso... | Returns the Not condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"Not",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L468-L474 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asAllOf | 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();
} | java | 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();
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asAllOf",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"containsKey",
"(",
"ALL_OF_KEY",
")",
"?",
"Optional",
".",
"of",
"(",
"new",
"AllOf",
"(",
"toConditions",
"(",
"json",
".",
... | Returns the AllOf condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AllOf",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L480-L486 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asAnyOf | 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();
} | java | 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();
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asAnyOf",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"json",
".",
"containsKey",
"(",
"ANY_OF_KEY",
")",
"?",
"Optional",
".",
"of",
"(",
"new",
"AnyOf",
"(",
"toConditions",
"(",
"json",
".",
... | Returns the AnyOf condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AnyOf",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L492-L498 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asLessThan | 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)));
} | java | 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)));
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asLessThan",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"LESS_THAN_KEY",
")",
")",
".",
... | Returns the AssertLess condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AssertLess",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L504-L511 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asMoreThan | 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)));
} | java | 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)));
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asMoreThan",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"MORE_THAN_KEY",
")",
")",
".",
... | Returns the AssertMore condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AssertMore",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L517-L524 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asNotLessThan | 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)));
} | java | 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)));
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asNotLessThan",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"NOT_LESS_THAN_KEY",
")",
")",
... | Returns the AssertNotLess condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AssertNotLess",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L530-L537 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asNotMoreThan | 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)));
} | java | 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)));
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asNotMoreThan",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"NOT_MORE_THAN_KEY",
")",
")",
... | Returns the AssertNotMore condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"AssertNotMore",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L543-L550 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asBetween | 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.getS... | java | 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.getS... | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asBetween",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"BETWEEN_KEY",
")",
")",
".",
"ma... | Returns the between condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"between",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L556-L571 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.asEquals | 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)));
} | java | 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)));
} | [
"private",
"static",
"Optional",
"<",
"ICondition",
">",
"asEquals",
"(",
"JsonObject",
"json",
")",
"{",
"return",
"Optional",
".",
"of",
"(",
"json",
")",
".",
"filter",
"(",
"j",
"->",
"j",
".",
"containsKey",
"(",
"EQUALS_KEY",
")",
")",
".",
"map"... | Returns the equals condition represented by the given JSON object or an empty
value if no such condition is found. | [
"Returns",
"the",
"equals",
"condition",
"represented",
"by",
"the",
"given",
"JSON",
"object",
"or",
"an",
"empty",
"value",
"if",
"no",
"such",
"condition",
"is",
"found",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L577-L584 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toIdentifiers | private static List<String> toIdentifiers( JsonArray array)
{
return
IntStream.range( 0, array.size())
.mapToObj( i -> validIdentifier( array.getString( i)))
.collect( toList());
} | java | private static List<String> toIdentifiers( JsonArray array)
{
return
IntStream.range( 0, array.size())
.mapToObj( i -> validIdentifier( array.getString( i)))
.collect( toList());
} | [
"private",
"static",
"List",
"<",
"String",
">",
"toIdentifiers",
"(",
"JsonArray",
"array",
")",
"{",
"return",
"IntStream",
".",
"range",
"(",
"0",
",",
"array",
".",
"size",
"(",
")",
")",
".",
"mapToObj",
"(",
"i",
"->",
"validIdentifier",
"(",
"ar... | Returns the contents of the given JSON array as a list of identifiers. | [
"Returns",
"the",
"contents",
"of",
"the",
"given",
"JSON",
"array",
"as",
"a",
"list",
"of",
"identifiers",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L589-L595 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java | SystemInputJson.toConditions | private static ICondition[] toConditions( JsonArray array)
{
return
IntStream.range( 0, array.size())
.mapToObj( i -> asCondition( array.getJsonObject( i)))
.collect( toList())
.toArray( new ICondition[0]);
} | java | private static ICondition[] toConditions( JsonArray array)
{
return
IntStream.range( 0, array.size())
.mapToObj( i -> asCondition( array.getJsonObject( i)))
.collect( toList())
.toArray( new ICondition[0]);
} | [
"private",
"static",
"ICondition",
"[",
"]",
"toConditions",
"(",
"JsonArray",
"array",
")",
"{",
"return",
"IntStream",
".",
"range",
"(",
"0",
",",
"array",
".",
"size",
"(",
")",
")",
".",
"mapToObj",
"(",
"i",
"->",
"asCondition",
"(",
"array",
"."... | Returns the contents of the given JSON array as an array of conditions. | [
"Returns",
"the",
"contents",
"of",
"the",
"given",
"JSON",
"array",
"as",
"an",
"array",
"of",
"conditions",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/SystemInputJson.java#L600-L607 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/Conditional.java | Conditional.getEffectiveCondition | public ICondition getEffectiveCondition( ICondition contextCondition)
{
ICondition condition = getCondition();
ICondition effCondition;
if( condition == null && contextCondition == null)
{
effCondition = ICondition.ALWAYS;
}
else if( condition == null && contextCondition != null)... | java | public ICondition getEffectiveCondition( ICondition contextCondition)
{
ICondition condition = getCondition();
ICondition effCondition;
if( condition == null && contextCondition == null)
{
effCondition = ICondition.ALWAYS;
}
else if( condition == null && contextCondition != null)... | [
"public",
"ICondition",
"getEffectiveCondition",
"(",
"ICondition",
"contextCondition",
")",
"{",
"ICondition",
"condition",
"=",
"getCondition",
"(",
")",
";",
"ICondition",
"effCondition",
";",
"if",
"(",
"condition",
"==",
"null",
"&&",
"contextCondition",
"==",
... | Returns the effective condition that defines when this element is applicable,
given the specified context condition. | [
"Returns",
"the",
"effective",
"condition",
"that",
"defines",
"when",
"this",
"element",
"is",
"applicable",
"given",
"the",
"specified",
"context",
"condition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/Conditional.java#L42-L76 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java | SystemInputDef.addFunctionInputDef | public SystemInputDef addFunctionInputDef( FunctionInputDef functionInputDef)
{
assert functionInputDef != null;
assert functionInputDef.getName() != null;
if( findFunctionInputDef( functionInputDef.getName()) >= 0)
{
throw new IllegalStateException( "Function=" + functionInputDef.getName()... | java | public SystemInputDef addFunctionInputDef( FunctionInputDef functionInputDef)
{
assert functionInputDef != null;
assert functionInputDef.getName() != null;
if( findFunctionInputDef( functionInputDef.getName()) >= 0)
{
throw new IllegalStateException( "Function=" + functionInputDef.getName()... | [
"public",
"SystemInputDef",
"addFunctionInputDef",
"(",
"FunctionInputDef",
"functionInputDef",
")",
"{",
"assert",
"functionInputDef",
"!=",
"null",
";",
"assert",
"functionInputDef",
".",
"getName",
"(",
")",
"!=",
"null",
";",
"if",
"(",
"findFunctionInputDef",
"... | Adds a new function definition. | [
"Adds",
"a",
"new",
"function",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java#L60-L72 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java | SystemInputDef.removeFunctionInputDef | public SystemInputDef removeFunctionInputDef( String name)
{
int i = findFunctionInputDef( name);
if( i >= 0)
{
functionInputDefs_.remove(i);
}
return this;
} | java | public SystemInputDef removeFunctionInputDef( String name)
{
int i = findFunctionInputDef( name);
if( i >= 0)
{
functionInputDefs_.remove(i);
}
return this;
} | [
"public",
"SystemInputDef",
"removeFunctionInputDef",
"(",
"String",
"name",
")",
"{",
"int",
"i",
"=",
"findFunctionInputDef",
"(",
"name",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"functionInputDefs_",
".",
"remove",
"(",
"i",
")",
";",
"}",
"ret... | Removes a function definition. | [
"Removes",
"a",
"function",
"definition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java#L77-L86 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java | SystemInputDef.getFunctionInputDef | public FunctionInputDef getFunctionInputDef( String name)
{
int i = findFunctionInputDef( name);
return i >= 0? functionInputDefs_.get(i) : null;
} | java | public FunctionInputDef getFunctionInputDef( String name)
{
int i = findFunctionInputDef( name);
return i >= 0? functionInputDefs_.get(i) : null;
} | [
"public",
"FunctionInputDef",
"getFunctionInputDef",
"(",
"String",
"name",
")",
"{",
"int",
"i",
"=",
"findFunctionInputDef",
"(",
"name",
")",
";",
"return",
"i",
">=",
"0",
"?",
"functionInputDefs_",
".",
"get",
"(",
"i",
")",
":",
"null",
";",
"}"
] | Returns the function definition with the given name. | [
"Returns",
"the",
"function",
"definition",
"with",
"the",
"given",
"name",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java#L91-L95 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java | SystemInputDef.findFunctionInputDef | 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;
} | java | 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;
} | [
"protected",
"int",
"findFunctionInputDef",
"(",
"String",
"name",
")",
"{",
"int",
"functionCount",
"=",
"name",
"==",
"null",
"?",
"0",
":",
"functionInputDefs_",
".",
"size",
"(",
")",
";",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<"... | Returns the index of the function definition with the given name. | [
"Returns",
"the",
"index",
"of",
"the",
"function",
"definition",
"with",
"the",
"given",
"name",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDef.java#L108-L114 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/TupleIterator.java | TupleIterator.getNextTuple | private Tuple getNextTuple()
{
if( nextTuple_ == null)
{
// Still traversing values for current start variable?
int tupleSize = getTupleSize();
if( !(values_ != null && values_.hasNext()))
{
// No, still traversing subtuples for current start variable?
values_ = n... | java | private Tuple getNextTuple()
{
if( nextTuple_ == null)
{
// Still traversing values for current start variable?
int tupleSize = getTupleSize();
if( !(values_ != null && values_.hasNext()))
{
// No, still traversing subtuples for current start variable?
values_ = n... | [
"private",
"Tuple",
"getNextTuple",
"(",
")",
"{",
"if",
"(",
"nextTuple_",
"==",
"null",
")",
"{",
"// Still traversing values for current start variable?",
"int",
"tupleSize",
"=",
"getTupleSize",
"(",
")",
";",
"if",
"(",
"!",
"(",
"values_",
"!=",
"null",
... | Returns the next N-tuple of compatible values. | [
"Returns",
"the",
"next",
"N",
"-",
"tuple",
"of",
"compatible",
"values",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/TupleIterator.java#L102-L160 | train |
Cornutum/tcases | tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java | TcasesMojo.getProjectFile | 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( m... | java | 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( m... | [
"private",
"String",
"getProjectFile",
"(",
"String",
"projectName",
",",
"String",
"filePattern",
")",
"{",
"String",
"projectFile",
"=",
"null",
";",
"if",
"(",
"!",
"StringUtils",
".",
"isBlank",
"(",
"filePattern",
")",
")",
"{",
"Matcher",
"matcher",
"=... | Returns the file name defined by applying the given pattern to the project name.
Returns null if the file pattern is invalid. | [
"Returns",
"the",
"file",
"name",
"defined",
"by",
"applying",
"the",
"given",
"pattern",
"to",
"the",
"project",
"name",
".",
"Returns",
"null",
"if",
"the",
"file",
"pattern",
"is",
"invalid",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java#L159-L175 | train |
Cornutum/tcases | tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java | TcasesMojo.getBaseDir | private File getBaseDir( File path)
{
return
path == null?
baseDir_ :
path.isAbsolute()?
path :
new File( baseDir_, path.getPath());
} | java | private File getBaseDir( File path)
{
return
path == null?
baseDir_ :
path.isAbsolute()?
path :
new File( baseDir_, path.getPath());
} | [
"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. | [
"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",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java#L181-L191 | train |
Cornutum/tcases | tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java | TcasesMojo.getTargetDir | private File getTargetDir( File path)
{
return
path == null?
targetDir_ :
path.isAbsolute()?
path :
new File( targetDir_, path.getPath());
} | java | private File getTargetDir( File path)
{
return
path == null?
targetDir_ :
path.isAbsolute()?
path :
new File( targetDir_, path.getPath());
} | [
"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. | [
"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",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-maven-plugin/src/main/java/org/cornutum/tcases/maven/TcasesMojo.java#L197-L207 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/Annotated.java | Annotated.setAnnotation | 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);
}
... | java | 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);
}
... | [
"public",
"void",
"setAnnotation",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"String",
"annotation",
"=",
"StringUtils",
".",
"trimToNull",
"(",
"name",
")",
";",
"if",
"(",
"annotation",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgum... | Changes the value of the given annotation. | [
"Changes",
"the",
"value",
"of",
"the",
"given",
"annotation",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/Annotated.java#L25-L40 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/Annotated.java | Annotated.addAnnotations | 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));
}
... | java | 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));
}
... | [
"public",
"void",
"addAnnotations",
"(",
"Annotated",
"other",
")",
"{",
"for",
"(",
"Iterator",
"<",
"String",
">",
"otherAnnotations",
"=",
"other",
".",
"getAnnotations",
"(",
")",
";",
"otherAnnotations",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"Strin... | Adds annotations from another annotated element. This leaves all existing annotation
unchanged, adding only annotations not already defined. | [
"Adds",
"annotations",
"from",
"another",
"annotated",
"element",
".",
"This",
"leaves",
"all",
"existing",
"annotation",
"unchanged",
"adding",
"only",
"annotations",
"not",
"already",
"defined",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/Annotated.java#L46-L56 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/TupleRef.java | TupleRef.addVarBinding | 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");
}
... | java | 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");
}
... | [
"public",
"TupleRef",
"addVarBinding",
"(",
"VarBinding",
"varBinding",
")",
"{",
"assert",
"varBinding",
"!=",
"null",
";",
"assert",
"varBinding",
".",
"getVar",
"(",
")",
"!=",
"null",
";",
"String",
"varName",
"=",
"varBinding",
".",
"getVar",
"(",
")",
... | Adds a new variable binding. | [
"Adds",
"a",
"new",
"variable",
"binding",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/TupleRef.java#L34-L47 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/TcasesJson.java | TcasesJson.writeGenerators | 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 def... | java | 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 def... | [
"public",
"static",
"void",
"writeGenerators",
"(",
"IGeneratorSet",
"generators",
",",
"OutputStream",
"outputStream",
")",
"{",
"try",
"(",
"GeneratorSetJsonWriter",
"writer",
"=",
"new",
"GeneratorSetJsonWriter",
"(",
"outputStream",
")",
")",
"{",
"writer",
".",... | Writes a JSON document describing the given generator definitions to the given output stream. | [
"Writes",
"a",
"JSON",
"document",
"describing",
"the",
"given",
"generator",
"definitions",
"to",
"the",
"given",
"output",
"stream",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/TcasesJson.java#L78-L88 | train |
Cornutum/tcases | tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java | OpenApiReader.isYaml | private boolean isYaml()
{
String extension =
getLocation() == null
? null
: FilenameUtils.getExtension( getLocation().getPath()).toLowerCase();
return "yml".equals( extension) || "yaml".equals( extension);
} | java | private boolean isYaml()
{
String extension =
getLocation() == null
? null
: FilenameUtils.getExtension( getLocation().getPath()).toLowerCase();
return "yml".equals( extension) || "yaml".equals( extension);
} | [
"private",
"boolean",
"isYaml",
"(",
")",
"{",
"String",
"extension",
"=",
"getLocation",
"(",
")",
"==",
"null",
"?",
"null",
":",
"FilenameUtils",
".",
"getExtension",
"(",
"getLocation",
"(",
")",
".",
"getPath",
"(",
")",
")",
".",
"toLowerCase",
"("... | Returns true if this is a YAML document. | [
"Returns",
"true",
"if",
"this",
"is",
"a",
"YAML",
"document",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java#L143-L151 | train |
Cornutum/tcases | tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java | OpenApiReader.toUrl | 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);
}
} | java | 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);
}
} | [
"private",
"static",
"URL",
"toUrl",
"(",
"File",
"file",
")",
"{",
"try",
"{",
"return",
"file",
"==",
"null",
"?",
"null",
":",
"file",
".",
"toURI",
"(",
")",
".",
"toURL",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",... | Returns a URL for the given file. | [
"Returns",
"a",
"URL",
"for",
"the",
"given",
"file",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java#L156-L169 | train |
Cornutum/tcases | tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java | OpenApiReader.inputFor | 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);
}
} | java | 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);
}
} | [
"private",
"static",
"InputStream",
"inputFor",
"(",
"File",
"file",
")",
"{",
"try",
"{",
"return",
"file",
"==",
"null",
"?",
"null",
":",
"new",
"FileInputStream",
"(",
"file",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",... | Returns an InputStream for the given file. | [
"Returns",
"an",
"InputStream",
"for",
"the",
"given",
"file",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReader.java#L174-L187 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDefBuilder.java | SystemInputDefBuilder.has | public SystemInputDefBuilder has( String name, Object value)
{
systemInputDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | java | public SystemInputDefBuilder has( String name, Object value)
{
systemInputDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | [
"public",
"SystemInputDefBuilder",
"has",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"systemInputDef_",
".",
"setAnnotation",
"(",
"name",
",",
"Objects",
".",
"toString",
"(",
"value",
",",
"null",
")",
")",
";",
"return",
"this",
";",
"}"
] | Adds a system annotation. | [
"Adds",
"a",
"system",
"annotation",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDefBuilder.java#L128-L132 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDefBuilder.java | SystemInputDefBuilder.hasIf | public SystemInputDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | java | public SystemInputDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | [
"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 | [
"Adds",
"a",
"system",
"annotation",
"if",
"the",
"given",
"value",
"is",
"non",
"-",
"null"
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/SystemInputDefBuilder.java#L137-L143 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/conditions/Between.java | Between.getMin | public BoundedAssertion getMin()
{
ICondition min = null;
Iterator<ICondition> conditions = getConditions();
for( int i = 0; i < 1; i++) min = conditions.next();
return (BoundedAssertion) min;
} | java | public BoundedAssertion getMin()
{
ICondition min = null;
Iterator<ICondition> conditions = getConditions();
for( int i = 0; i < 1; i++) min = conditions.next();
return (BoundedAssertion) min;
} | [
"public",
"BoundedAssertion",
"getMin",
"(",
")",
"{",
"ICondition",
"min",
"=",
"null",
";",
"Iterator",
"<",
"ICondition",
">",
"conditions",
"=",
"getConditions",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"1",
";",
"i",
"++",... | Returns the minimum condition. | [
"Returns",
"the",
"minimum",
"condition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/conditions/Between.java#L50-L56 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/conditions/Between.java | Between.getMax | public BoundedAssertion getMax()
{
ICondition max = null;
Iterator<ICondition> conditions = getConditions();
for( int i = 0; i < 2; i++) max = conditions.next();
return (BoundedAssertion) max;
} | java | public BoundedAssertion getMax()
{
ICondition max = null;
Iterator<ICondition> conditions = getConditions();
for( int i = 0; i < 2; i++) max = conditions.next();
return (BoundedAssertion) max;
} | [
"public",
"BoundedAssertion",
"getMax",
"(",
")",
"{",
"ICondition",
"max",
"=",
"null",
";",
"Iterator",
"<",
"ICondition",
">",
"conditions",
"=",
"getConditions",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"2",
";",
"i",
"++",... | Returns the maximum condition. | [
"Returns",
"the",
"maximum",
"condition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/conditions/Between.java#L61-L67 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java | FunctionInputDefBuilder.vars | public FunctionInputDefBuilder vars( String type, AbstractVarDef... vars)
{
for( AbstractVarDef var : vars)
{
var.setType( type);
functionInputDef_.addVarDef( var);
}
return this;
} | java | public FunctionInputDefBuilder vars( String type, AbstractVarDef... vars)
{
for( AbstractVarDef var : vars)
{
var.setType( type);
functionInputDef_.addVarDef( var);
}
return this;
} | [
"public",
"FunctionInputDefBuilder",
"vars",
"(",
"String",
"type",
",",
"AbstractVarDef",
"...",
"vars",
")",
"{",
"for",
"(",
"AbstractVarDef",
"var",
":",
"vars",
")",
"{",
"var",
".",
"setType",
"(",
"type",
")",
";",
"functionInputDef_",
".",
"addVarDef... | Adds function input variables of the given type. | [
"Adds",
"function",
"input",
"variables",
"of",
"the",
"given",
"type",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java#L128-L136 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java | FunctionInputDefBuilder.has | public FunctionInputDefBuilder has( String name, Object value)
{
functionInputDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | java | public FunctionInputDefBuilder has( String name, Object value)
{
functionInputDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | [
"public",
"FunctionInputDefBuilder",
"has",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"functionInputDef_",
".",
"setAnnotation",
"(",
"name",
",",
"Objects",
".",
"toString",
"(",
"value",
",",
"null",
")",
")",
";",
"return",
"this",
";",
"... | Adds a function annotation. | [
"Adds",
"a",
"function",
"annotation",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java#L141-L145 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java | FunctionInputDefBuilder.hasIf | public FunctionInputDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | java | public FunctionInputDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | [
"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 | [
"Adds",
"a",
"function",
"annotation",
"if",
"the",
"given",
"value",
"is",
"non",
"-",
"null"
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/FunctionInputDefBuilder.java#L150-L156 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/util/ListBuilder.java | ListBuilder.to | public static <T> ListBuilder<T> to( List<T> list)
{
return new ListBuilder<T>( list);
} | java | public static <T> ListBuilder<T> to( List<T> list)
{
return new ListBuilder<T>( list);
} | [
"public",
"static",
"<",
"T",
">",
"ListBuilder",
"<",
"T",
">",
"to",
"(",
"List",
"<",
"T",
">",
"list",
")",
"{",
"return",
"new",
"ListBuilder",
"<",
"T",
">",
"(",
"list",
")",
";",
"}"
] | Creates a new ListBuilder object. | [
"Creates",
"a",
"new",
"ListBuilder",
"object",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/util/ListBuilder.java#L37-L40 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/util/ListBuilder.java | ListBuilder.addAll | public ListBuilder<T> addAll( Iterable<T> elements)
{
for( T element : elements)
{
list_.add( element);
}
return this;
} | java | public ListBuilder<T> addAll( Iterable<T> elements)
{
for( T element : elements)
{
list_.add( element);
}
return this;
} | [
"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. | [
"Appends",
"all",
"elements",
"of",
"the",
"given",
"colletion",
"to",
"the",
"list",
"for",
"this",
"builder",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/util/ListBuilder.java#L54-L62 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.getUsed | public Iterator<Tuple> getUsed()
{
if( usedChanged_)
{
// Order to prefer reuse of larger tuples first. By preferring "intact" tuples over post-reduction singletons,
// we hope to minimize reoccurrence of once-only tuples.
Collections.sort( used_, tupleSizeDescending_);
usedChanged... | java | public Iterator<Tuple> getUsed()
{
if( usedChanged_)
{
// Order to prefer reuse of larger tuples first. By preferring "intact" tuples over post-reduction singletons,
// we hope to minimize reoccurrence of once-only tuples.
Collections.sort( used_, tupleSizeDescending_);
usedChanged... | [
"public",
"Iterator",
"<",
"Tuple",
">",
"getUsed",
"(",
")",
"{",
"if",
"(",
"usedChanged_",
")",
"{",
"// Order to prefer reuse of larger tuples first. By preferring \"intact\" tuples over post-reduction singletons,",
"// we hope to minimize reoccurrence of once-only tuples.",
"Col... | Returns input tuples already used in a test case. | [
"Returns",
"input",
"tuples",
"already",
"used",
"in",
"a",
"test",
"case",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L80-L91 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.getBinds | private Iterator<Tuple> getBinds( Iterator<Tuple> tuples, final VarDef var)
{
return
IteratorUtils.filteredIterator(
tuples,
tuple -> tuple.getBinding( var) != null);
} | java | private Iterator<Tuple> getBinds( Iterator<Tuple> tuples, final VarDef var)
{
return
IteratorUtils.filteredIterator(
tuples,
tuple -> tuple.getBinding( var) != null);
} | [
"private",
"Iterator",
"<",
"Tuple",
">",
"getBinds",
"(",
"Iterator",
"<",
"Tuple",
">",
"tuples",
",",
"final",
"VarDef",
"var",
")",
"{",
"return",
"IteratorUtils",
".",
"filteredIterator",
"(",
"tuples",
",",
"tuple",
"->",
"tuple",
".",
"getBinding",
... | Returns input tuples that bind the given variable. | [
"Returns",
"input",
"tuples",
"that",
"bind",
"the",
"given",
"variable",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L173-L179 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.used | public void used( final TestCaseDef testCase)
{
// Note: must accumulate tuples into a separate list to avoid ConcurrentModificationException when updating used/unused membership.
List<Tuple> usedTuples =
IteratorUtils.toList(
IteratorUtils.filteredIterator(
IteratorUtils.chainedIter... | java | public void used( final TestCaseDef testCase)
{
// Note: must accumulate tuples into a separate list to avoid ConcurrentModificationException when updating used/unused membership.
List<Tuple> usedTuples =
IteratorUtils.toList(
IteratorUtils.filteredIterator(
IteratorUtils.chainedIter... | [
"public",
"void",
"used",
"(",
"final",
"TestCaseDef",
"testCase",
")",
"{",
"// Note: must accumulate tuples into a separate list to avoid ConcurrentModificationException when updating used/unused membership.",
"List",
"<",
"Tuple",
">",
"usedTuples",
"=",
"IteratorUtils",
".",
... | Asserts use of all tuples contained in the given test case. | [
"Asserts",
"use",
"of",
"all",
"tuples",
"contained",
"in",
"the",
"given",
"test",
"case",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L184-L199 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.used | public void used( Tuple tuple)
{
// Currently unused?
int i = unused_.indexOf( tuple);
if( i >= 0)
{
// Yes, relocate to used list.
unused_.remove( i);
addUsed( tuple);
if( tuple.size() > 1)
{
// Once used, N-tuples can be reduced to 1-tuples. This enable... | java | public void used( Tuple tuple)
{
// Currently unused?
int i = unused_.indexOf( tuple);
if( i >= 0)
{
// Yes, relocate to used list.
unused_.remove( i);
addUsed( tuple);
if( tuple.size() > 1)
{
// Once used, N-tuples can be reduced to 1-tuples. This enable... | [
"public",
"void",
"used",
"(",
"Tuple",
"tuple",
")",
"{",
"// Currently unused?",
"int",
"i",
"=",
"unused_",
".",
"indexOf",
"(",
"tuple",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"// Yes, relocate to used list. ",
"unused_",
".",
"remove",
"(",
... | Asserts that the given tuple has been used in a test case. | [
"Asserts",
"that",
"the",
"given",
"tuple",
"has",
"been",
"used",
"in",
"a",
"test",
"case",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L204-L243 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.remove | public void remove( Tuple tuple)
{
int i = unused_.indexOf( tuple);
if( i >= 0)
{
unused_.remove( tuple);
}
} | java | public void remove( Tuple tuple)
{
int i = unused_.indexOf( tuple);
if( i >= 0)
{
unused_.remove( tuple);
}
} | [
"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. | [
"Removes",
"the",
"given",
"tuple",
"from",
"use",
"in",
"test",
"cases",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L257-L264 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java | VarTupleSet.getNextUnused | public Tuple getNextUnused()
{
Iterator<Tuple> unused = getUnused();
return
unused.hasNext()
? unused.next()
: null;
} | java | public Tuple getNextUnused()
{
Iterator<Tuple> unused = getUnused();
return
unused.hasNext()
? unused.next()
: null;
} | [
"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. | [
"Returns",
"the",
"next",
"unused",
"tuple",
"from",
"this",
"set",
".",
"Returns",
"null",
"if",
"all",
"tuples",
"have",
"been",
"used",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/VarTupleSet.java#L270-L277 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDefBuilder.java | VarDefBuilder.has | public VarDefBuilder has( String name, Object value)
{
varDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | java | public VarDefBuilder has( String name, Object value)
{
varDef_.setAnnotation( name, Objects.toString( value, null));
return this;
} | [
"public",
"VarDefBuilder",
"has",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"{",
"varDef_",
".",
"setAnnotation",
"(",
"name",
",",
"Objects",
".",
"toString",
"(",
"value",
",",
"null",
")",
")",
";",
"return",
"this",
";",
"}"
] | Adds a variable annotation. | [
"Adds",
"a",
"variable",
"annotation",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDefBuilder.java#L115-L119 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDefBuilder.java | VarDefBuilder.hasIf | public VarDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | java | public VarDefBuilder hasIf( String name, Object value)
{
return
value != null
? has( name, value)
: this;
} | [
"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 | [
"Adds",
"a",
"variable",
"annotation",
"if",
"the",
"given",
"value",
"is",
"non",
"-",
"null"
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDefBuilder.java#L124-L130 | train |
Cornutum/tcases | tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReaderException.java | OpenApiReaderException.errorReasonFor | 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.format( "[%s... | java | 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.format( "[%s... | [
"private",
"static",
"String",
"errorReasonFor",
"(",
"URL",
"location",
",",
"List",
"<",
"String",
">",
"errors",
")",
"{",
"return",
"Stream",
".",
"concat",
"(",
"Stream",
".",
"of",
"(",
"String",
".",
"format",
"(",
"\"%s conformance problem(s) found in ... | Returns a reason for the errors in the document at the given location. | [
"Returns",
"a",
"reason",
"for",
"the",
"errors",
"in",
"the",
"document",
"at",
"the",
"given",
"location",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-openapi/src/main/java/org/cornutum/tcases/openapi/reader/OpenApiReaderException.java#L62-L69 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java | VarDef.addValue | 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;
} | java | 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;
} | [
"public",
"VarDef",
"addValue",
"(",
"VarValueDef",
"value",
")",
"{",
"assert",
"value",
"!=",
"null",
";",
"if",
"(",
"findValue",
"(",
"value",
".",
"getName",
"(",
")",
")",
">=",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Value=... | Adds a value definition for this variable. | [
"Adds",
"a",
"value",
"definition",
"for",
"this",
"variable",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java#L93-L104 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java | VarDef.removeValue | public VarDef removeValue( Object name)
{
int i = findValue( name);
if( i >= 0)
{
values_.remove(i);
}
return this;
} | java | public VarDef removeValue( Object name)
{
int i = findValue( name);
if( i >= 0)
{
values_.remove(i);
}
return this;
} | [
"public",
"VarDef",
"removeValue",
"(",
"Object",
"name",
")",
"{",
"int",
"i",
"=",
"findValue",
"(",
"name",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"values_",
".",
"remove",
"(",
"i",
")",
";",
"}",
"return",
"this",
";",
"}"
] | Removes a value definition from this variable. | [
"Removes",
"a",
"value",
"definition",
"from",
"this",
"variable",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java#L109-L118 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java | VarDef.getValue | public VarValueDef getValue( Object name)
{
int i = findValue( name);
return i >= 0? values_.get(i) : null;
} | java | public VarValueDef getValue( Object name)
{
int i = findValue( name);
return i >= 0? values_.get(i) : null;
} | [
"public",
"VarValueDef",
"getValue",
"(",
"Object",
"name",
")",
"{",
"int",
"i",
"=",
"findValue",
"(",
"name",
")",
";",
"return",
"i",
">=",
"0",
"?",
"values_",
".",
"get",
"(",
"i",
")",
":",
"null",
";",
"}"
] | Returns the value definition with the given name. | [
"Returns",
"the",
"value",
"definition",
"with",
"the",
"given",
"name",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java#L123-L127 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java | VarDef.isApplicable | public boolean isApplicable( VarValueDef value)
{
return
value.isNA()
? isOptional()
: getValue( value.getName()) != null;
} | java | public boolean isApplicable( VarValueDef value)
{
return
value.isNA()
? isOptional()
: getValue( value.getName()) != null;
} | [
"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. | [
"Returns",
"true",
"if",
"the",
"given",
"value",
"can",
"be",
"bound",
"to",
"this",
"variable",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java#L132-L138 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java | VarDef.findValue | 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;
} | java | 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;
} | [
"protected",
"int",
"findValue",
"(",
"Object",
"name",
")",
"{",
"int",
"valueCount",
"=",
"values_",
".",
"size",
"(",
")",
";",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"valueCount",
"&&",
"!",
"Objects",
".",
"equals",
"(",
... | Returns the index of the value definition with the given name. | [
"Returns",
"the",
"index",
"of",
"the",
"value",
"definition",
"with",
"the",
"given",
"name",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/VarDef.java#L143-L149 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/conditions/ContainsAny.java | ContainsAny.satisfied | public boolean satisfied( PropertySet propertySet)
{
boolean isSatisfied;
Iterator<String> properties;
for( properties = getProperties(),
isSatisfied = !properties.hasNext();
!isSatisfied
&& properties.hasNext();
isSatisfied = propertySet.contains( properti... | java | public boolean satisfied( PropertySet propertySet)
{
boolean isSatisfied;
Iterator<String> properties;
for( properties = getProperties(),
isSatisfied = !properties.hasNext();
!isSatisfied
&& properties.hasNext();
isSatisfied = propertySet.contains( properti... | [
"public",
"boolean",
"satisfied",
"(",
"PropertySet",
"propertySet",
")",
"{",
"boolean",
"isSatisfied",
";",
"Iterator",
"<",
"String",
">",
"properties",
";",
"for",
"(",
"properties",
"=",
"getProperties",
"(",
")",
",",
"isSatisfied",
"=",
"!",
"properties... | Returns true if this condition is satisfied by the given test case contains. | [
"Returns",
"true",
"if",
"this",
"condition",
"is",
"satisfied",
"by",
"the",
"given",
"test",
"case",
"contains",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/conditions/ContainsAny.java#L68-L82 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/conditions/Conditions.java | Conditions.propertiesReferenced | public static Stream<String> propertiesReferenced( ICondition condition)
{
if( condition == null)
{
return Stream.empty();
}
PropertyVisitor propertyVisitor = new PropertyVisitor();
condition.accept( propertyVisitor);
return propertyVisitor.propertiesVisited();
} | java | public static Stream<String> propertiesReferenced( ICondition condition)
{
if( condition == null)
{
return Stream.empty();
}
PropertyVisitor propertyVisitor = new PropertyVisitor();
condition.accept( propertyVisitor);
return propertyVisitor.propertiesVisited();
} | [
"public",
"static",
"Stream",
"<",
"String",
">",
"propertiesReferenced",
"(",
"ICondition",
"condition",
")",
"{",
"if",
"(",
"condition",
"==",
"null",
")",
"{",
"return",
"Stream",
".",
"empty",
"(",
")",
";",
"}",
"PropertyVisitor",
"propertyVisitor",
"=... | Returns the properties referenced by the given condition. | [
"Returns",
"the",
"properties",
"referenced",
"by",
"the",
"given",
"condition",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/conditions/Conditions.java#L180-L190 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/PropertySet.java | PropertySet.remove | public PropertySet remove( String property)
{
String candidate = StringUtils.trimToNull( property);
if( candidate != null)
{
properties_.remove( candidate, 1);
}
return this;
} | java | public PropertySet remove( String property)
{
String candidate = StringUtils.trimToNull( property);
if( candidate != null)
{
properties_.remove( candidate, 1);
}
return this;
} | [
"public",
"PropertySet",
"remove",
"(",
"String",
"property",
")",
"{",
"String",
"candidate",
"=",
"StringUtils",
".",
"trimToNull",
"(",
"property",
")",
";",
"if",
"(",
"candidate",
"!=",
"null",
")",
"{",
"properties_",
".",
"remove",
"(",
"candidate",
... | Removes a property from this set. | [
"Removes",
"a",
"property",
"from",
"this",
"set",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/PropertySet.java#L118-L127 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.getGenerator | public ITestCaseGenerator getGenerator( String functionName)
{
ITestCaseGenerator generator = generators_.get( getFunctionKey( functionName));
return generator==null? generators_.get( ALL) : generator;
} | java | public ITestCaseGenerator getGenerator( String functionName)
{
ITestCaseGenerator generator = generators_.get( getFunctionKey( functionName));
return generator==null? generators_.get( ALL) : generator;
} | [
"public",
"ITestCaseGenerator",
"getGenerator",
"(",
"String",
"functionName",
")",
"{",
"ITestCaseGenerator",
"generator",
"=",
"generators_",
".",
"get",
"(",
"getFunctionKey",
"(",
"functionName",
")",
")",
";",
"return",
"generator",
"==",
"null",
"?",
"genera... | Returns the test case generator for the given system function. | [
"Returns",
"the",
"test",
"case",
"generator",
"for",
"the",
"given",
"system",
"function",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L29-L33 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.getGeneratorFunctions | public String[] getGeneratorFunctions()
{
String[] functions = new String[ generators_.size()];
generators_.keySet().toArray( functions);
return functions;
} | java | public String[] getGeneratorFunctions()
{
String[] functions = new String[ generators_.size()];
generators_.keySet().toArray( functions);
return functions;
} | [
"public",
"String",
"[",
"]",
"getGeneratorFunctions",
"(",
")",
"{",
"String",
"[",
"]",
"functions",
"=",
"new",
"String",
"[",
"generators_",
".",
"size",
"(",
")",
"]",
";",
"generators_",
".",
"keySet",
"(",
")",
".",
"toArray",
"(",
"functions",
... | Returns the set of system function names associated with generators in
this set. | [
"Returns",
"the",
"set",
"of",
"system",
"function",
"names",
"associated",
"with",
"generators",
"in",
"this",
"set",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L39-L44 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.addGenerator | 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( generato... | java | 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( generato... | [
"public",
"void",
"addGenerator",
"(",
"String",
"functionName",
",",
"ITestCaseGenerator",
"generator",
")",
"{",
"String",
"functionKey",
"=",
"getFunctionKey",
"(",
"functionName",
")",
";",
"if",
"(",
"generators_",
".",
"containsKey",
"(",
"functionKey",
")",... | Adds a new test case generator for the given system function. | [
"Adds",
"a",
"new",
"test",
"case",
"generator",
"for",
"the",
"given",
"system",
"function",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L57-L69 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.setGenerator | public void setGenerator( String functionName, ITestCaseGenerator generator)
{
String functionKey = getFunctionKey( functionName);
if( generator == null)
{
generators_.remove( functionKey);
}
else
{
generators_.put( functionKey, generator);
}
} | java | public void setGenerator( String functionName, ITestCaseGenerator generator)
{
String functionKey = getFunctionKey( functionName);
if( generator == null)
{
generators_.remove( functionKey);
}
else
{
generators_.put( functionKey, generator);
}
} | [
"public",
"void",
"setGenerator",
"(",
"String",
"functionName",
",",
"ITestCaseGenerator",
"generator",
")",
"{",
"String",
"functionKey",
"=",
"getFunctionKey",
"(",
"functionName",
")",
";",
"if",
"(",
"generator",
"==",
"null",
")",
"{",
"generators_",
".",
... | Changes the test case generator for the given system function. | [
"Changes",
"the",
"test",
"case",
"generator",
"for",
"the",
"given",
"system",
"function",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L74-L85 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.basicGenerator | public static GeneratorSet basicGenerator()
{
GeneratorSet genSet = new GeneratorSet();
genSet.addGenerator( GeneratorSet.ALL, new TupleGenerator());
return genSet;
} | java | public static GeneratorSet basicGenerator()
{
GeneratorSet genSet = new GeneratorSet();
genSet.addGenerator( GeneratorSet.ALL, new TupleGenerator());
return genSet;
} | [
"public",
"static",
"GeneratorSet",
"basicGenerator",
"(",
")",
"{",
"GeneratorSet",
"genSet",
"=",
"new",
"GeneratorSet",
"(",
")",
";",
"genSet",
".",
"addGenerator",
"(",
"GeneratorSet",
".",
"ALL",
",",
"new",
"TupleGenerator",
"(",
")",
")",
";",
"retur... | Returns a GeneratorSet that uses the default TupleGenerator for all functions. | [
"Returns",
"a",
"GeneratorSet",
"that",
"uses",
"the",
"default",
"TupleGenerator",
"for",
"all",
"functions",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L90-L95 | train |
Cornutum/tcases | tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java | GeneratorSet.getFunctionKey | private String getFunctionKey( String functionName)
{
functionName = StringUtils.trimToNull( functionName);
return functionName==null? ALL : functionName;
} | java | private String getFunctionKey( String functionName)
{
functionName = StringUtils.trimToNull( functionName);
return functionName==null? ALL : functionName;
} | [
"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. | [
"Returns",
"the",
"key",
"used",
"to",
"find",
"the",
"test",
"case",
"generator",
"for",
"the",
"given",
"system",
"function",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-lib/src/main/java/org/cornutum/tcases/generator/GeneratorSet.java#L100-L104 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/Project.java | Project.getSystemInput | public SystemInputDef getSystemInput()
{
if( systemInputDef_ == null && systemInputRef_ != null)
{
try( SystemInputResource resource = SystemInputResource.at( urlFor( systemInputRef_)))
{
systemInputDef_ = resource.getSystemInputDef();
}
catch( Exception e)
{
... | java | public SystemInputDef getSystemInput()
{
if( systemInputDef_ == null && systemInputRef_ != null)
{
try( SystemInputResource resource = SystemInputResource.at( urlFor( systemInputRef_)))
{
systemInputDef_ = resource.getSystemInputDef();
}
catch( Exception e)
{
... | [
"public",
"SystemInputDef",
"getSystemInput",
"(",
")",
"{",
"if",
"(",
"systemInputDef_",
"==",
"null",
"&&",
"systemInputRef_",
"!=",
"null",
")",
"{",
"try",
"(",
"SystemInputResource",
"resource",
"=",
"SystemInputResource",
".",
"at",
"(",
"urlFor",
"(",
... | Returns the system input definition for this project. | [
"Returns",
"the",
"system",
"input",
"definition",
"for",
"this",
"project",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/Project.java#L48-L63 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/Project.java | Project.getGenerators | public IGeneratorSet getGenerators() {
if( generatorSet_ == null && generatorSetRef_ != null)
{
try( GeneratorSetResource resource = GeneratorSetResource.at( urlFor( generatorSetRef_)))
{
generatorSet_ = resource.getGeneratorSet();
}
catch( Exception e)
{
th... | java | public IGeneratorSet getGenerators() {
if( generatorSet_ == null && generatorSetRef_ != null)
{
try( GeneratorSetResource resource = GeneratorSetResource.at( urlFor( generatorSetRef_)))
{
generatorSet_ = resource.getGeneratorSet();
}
catch( Exception e)
{
th... | [
"public",
"IGeneratorSet",
"getGenerators",
"(",
")",
"{",
"if",
"(",
"generatorSet_",
"==",
"null",
"&&",
"generatorSetRef_",
"!=",
"null",
")",
"{",
"try",
"(",
"GeneratorSetResource",
"resource",
"=",
"GeneratorSetResource",
".",
"at",
"(",
"urlFor",
"(",
"... | Returns the generator set for this project. | [
"Returns",
"the",
"generator",
"set",
"for",
"this",
"project",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/Project.java#L110-L123 | train |
Cornutum/tcases | tcases-io/src/main/java/org/cornutum/tcases/io/Project.java | Project.urlFor | public URL urlFor( URI location) throws MalformedURLException
{
URI uri =
getBaseLocation() == null
? location
: getBaseLocation().resolve( location);
return uri.toURL();
} | java | public URL urlFor( URI location) throws MalformedURLException
{
URI uri =
getBaseLocation() == null
? location
: getBaseLocation().resolve( location);
return uri.toURL();
} | [
"public",
"URL",
"urlFor",
"(",
"URI",
"location",
")",
"throws",
"MalformedURLException",
"{",
"URI",
"uri",
"=",
"getBaseLocation",
"(",
")",
"==",
"null",
"?",
"location",
":",
"getBaseLocation",
"(",
")",
".",
"resolve",
"(",
"location",
")",
";",
"ret... | Returns the full URL for the project element at the given location. | [
"Returns",
"the",
"full",
"URL",
"for",
"the",
"project",
"element",
"at",
"the",
"given",
"location",
"."
] | 21e15cf107fa149620c40f4bda1829c1224fcfb1 | https://github.com/Cornutum/tcases/blob/21e15cf107fa149620c40f4bda1829c1224fcfb1/tcases-io/src/main/java/org/cornutum/tcases/io/Project.java#L234-L242 | train |
pac4j/vertx-pac4j | src/main/java/org/pac4j/vertx/auth/Pac4jUser.java | Pac4jUser.updatePrincipal | private void updatePrincipal() {
principal = new JsonObject();
profiles.forEach((name, profile) -> {
final JsonObject jsonProfile = new JsonObject();
profile.getAttributes()
.forEach((attributeName, attributeValue) ->
jsonProfile.p... | java | private void updatePrincipal() {
principal = new JsonObject();
profiles.forEach((name, profile) -> {
final JsonObject jsonProfile = new JsonObject();
profile.getAttributes()
.forEach((attributeName, attributeValue) ->
jsonProfile.p... | [
"private",
"void",
"updatePrincipal",
"(",
")",
"{",
"principal",
"=",
"new",
"JsonObject",
"(",
")",
";",
"profiles",
".",
"forEach",
"(",
"(",
"name",
",",
"profile",
")",
"->",
"{",
"final",
"JsonObject",
"jsonProfile",
"=",
"new",
"JsonObject",
"(",
... | Update the principal, to be called on any modification of the profiles map internally. | [
"Update",
"the",
"principal",
"to",
"be",
"called",
"on",
"any",
"modification",
"of",
"the",
"profiles",
"map",
"internally",
"."
] | 5a660800257cbf180c2fd4f09e5c9ff85775aa25 | https://github.com/pac4j/vertx-pac4j/blob/5a660800257cbf180c2fd4f09e5c9ff85775aa25/src/main/java/org/pac4j/vertx/auth/Pac4jUser.java#L116-L126 | train |
pac4j/vertx-pac4j | src/main/java/org/pac4j/vertx/handler/impl/SecurityHandler.java | SecurityHandler.handle | @Override
public void handle(final RoutingContext routingContext) {
// No longer sufficient to check whether we have a user, as the user must have an appropriate pac4j profile
// so a user != null check is insufficient, so we'll go straight to the pac4j logic check
// Note that at present t... | java | @Override
public void handle(final RoutingContext routingContext) {
// No longer sufficient to check whether we have a user, as the user must have an appropriate pac4j profile
// so a user != null check is insufficient, so we'll go straight to the pac4j logic check
// Note that at present t... | [
"@",
"Override",
"public",
"void",
"handle",
"(",
"final",
"RoutingContext",
"routingContext",
")",
"{",
"// No longer sufficient to check whether we have a user, as the user must have an appropriate pac4j profile",
"// so a user != null check is insufficient, so we'll go straight to the pac... | Port of Pac4J auth to a handler in vert.x 3. | [
"Port",
"of",
"Pac4J",
"auth",
"to",
"a",
"handler",
"in",
"vert",
".",
"x",
"3",
"."
] | 5a660800257cbf180c2fd4f09e5c9ff85775aa25 | https://github.com/pac4j/vertx-pac4j/blob/5a660800257cbf180c2fd4f09e5c9ff85775aa25/src/main/java/org/pac4j/vertx/handler/impl/SecurityHandler.java#L77-L127 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/building/_2/ClosureSurfaceType.java | ClosureSurfaceType.get_GenericApplicationPropertyOfClosureSurface | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfClosureSurface() {
if (_GenericApplicationPropertyOfClosureSurface == null) {
_GenericApplicationPropertyOfClosureSurface = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfClosureSurface... | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfClosureSurface() {
if (_GenericApplicationPropertyOfClosureSurface == null) {
_GenericApplicationPropertyOfClosureSurface = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfClosureSurface... | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfClosureSurface",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfClosureSurface",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfClosureSurface",
"=",
"new",
"Ar... | Gets the value of the genericApplicationPropertyOfClosureSurface property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericAp... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfClosureSurface",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/building/_2/ClosureSurfaceType.java#L73-L78 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/bridge/_2/BridgeRoomType.java | BridgeRoomType.get_GenericApplicationPropertyOfBridgeRoom | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridgeRoom() {
if (_GenericApplicationPropertyOfBridgeRoom == null) {
_GenericApplicationPropertyOfBridgeRoom = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBridgeRoom;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridgeRoom() {
if (_GenericApplicationPropertyOfBridgeRoom == null) {
_GenericApplicationPropertyOfBridgeRoom = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBridgeRoom;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfBridgeRoom",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfBridgeRoom",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfBridgeRoom",
"=",
"new",
"ArrayList",
... | Gets the value of the genericApplicationPropertyOfBridgeRoom property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplic... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfBridgeRoom",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/bridge/_2/BridgeRoomType.java#L381-L386 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/transportation/_2/AuxiliaryTrafficAreaType.java | AuxiliaryTrafficAreaType.get_GenericApplicationPropertyOfAuxiliaryTrafficArea | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAuxiliaryTrafficArea() {
if (_GenericApplicationPropertyOfAuxiliaryTrafficArea == null) {
_GenericApplicationPropertyOfAuxiliaryTrafficArea = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationProper... | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAuxiliaryTrafficArea() {
if (_GenericApplicationPropertyOfAuxiliaryTrafficArea == null) {
_GenericApplicationPropertyOfAuxiliaryTrafficArea = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationProper... | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfAuxiliaryTrafficArea",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfAuxiliaryTrafficArea",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfAuxiliaryTrafficArea",
"... | Gets the value of the genericApplicationPropertyOfAuxiliaryTrafficArea property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the gen... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfAuxiliaryTrafficArea",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/transportation/_2/AuxiliaryTrafficAreaType.java#L317-L322 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/tunnel/_2/TunnelInstallationType.java | TunnelInstallationType.get_GenericApplicationPropertyOfTunnelInstallation | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTunnelInstallation() {
if (_GenericApplicationPropertyOfTunnelInstallation == null) {
_GenericApplicationPropertyOfTunnelInstallation = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfTu... | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTunnelInstallation() {
if (_GenericApplicationPropertyOfTunnelInstallation == null) {
_GenericApplicationPropertyOfTunnelInstallation = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfTu... | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfTunnelInstallation",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfTunnelInstallation",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfTunnelInstallation",
"=",
... | Gets the value of the genericApplicationPropertyOfTunnelInstallation property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the gener... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfTunnelInstallation",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/tunnel/_2/TunnelInstallationType.java#L421-L426 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/CurveSegmentArrayPropertyType.java | CurveSegmentArrayPropertyType.get_CurveSegment | public List<JAXBElement<? extends AbstractCurveSegmentType>> get_CurveSegment() {
if (_CurveSegment == null) {
_CurveSegment = new ArrayList<JAXBElement<? extends AbstractCurveSegmentType>>();
}
return this._CurveSegment;
} | java | public List<JAXBElement<? extends AbstractCurveSegmentType>> get_CurveSegment() {
if (_CurveSegment == null) {
_CurveSegment = new ArrayList<JAXBElement<? extends AbstractCurveSegmentType>>();
}
return this._CurveSegment;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"?",
"extends",
"AbstractCurveSegmentType",
">",
">",
"get_CurveSegment",
"(",
")",
"{",
"if",
"(",
"_CurveSegment",
"==",
"null",
")",
"{",
"_CurveSegment",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
"<",
"?",
"e... | Gets the value of the curveSegment property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the curveSegment property.
<p>
For example... | [
"Gets",
"the",
"value",
"of",
"the",
"curveSegment",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/gml/CurveSegmentArrayPropertyType.java#L87-L92 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/TopoPrimitiveArrayAssociationType.java | TopoPrimitiveArrayAssociationType.get_TopoPrimitive | public List<JAXBElement<? extends AbstractTopoPrimitiveType>> get_TopoPrimitive() {
if (_TopoPrimitive == null) {
_TopoPrimitive = new ArrayList<JAXBElement<? extends AbstractTopoPrimitiveType>>();
}
return this._TopoPrimitive;
} | java | public List<JAXBElement<? extends AbstractTopoPrimitiveType>> get_TopoPrimitive() {
if (_TopoPrimitive == null) {
_TopoPrimitive = new ArrayList<JAXBElement<? extends AbstractTopoPrimitiveType>>();
}
return this._TopoPrimitive;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"?",
"extends",
"AbstractTopoPrimitiveType",
">",
">",
"get_TopoPrimitive",
"(",
")",
"{",
"if",
"(",
"_TopoPrimitive",
"==",
"null",
")",
"{",
"_TopoPrimitive",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
"<",
"?",
... | Gets the value of the topoPrimitive property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the topoPrimitive property.
<p>
For examp... | [
"Gets",
"the",
"value",
"of",
"the",
"topoPrimitive",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/gml/TopoPrimitiveArrayAssociationType.java#L78-L83 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/vegetation/_1/SolitaryVegetationObjectType.java | SolitaryVegetationObjectType.get_GenericApplicationPropertyOfSolitaryVegetationObject | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfSolitaryVegetationObject() {
if (_GenericApplicationPropertyOfSolitaryVegetationObject == null) {
_GenericApplicationPropertyOfSolitaryVegetationObject = new ArrayList<JAXBElement<Object>>();
}
return this._GenericAppli... | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfSolitaryVegetationObject() {
if (_GenericApplicationPropertyOfSolitaryVegetationObject == null) {
_GenericApplicationPropertyOfSolitaryVegetationObject = new ArrayList<JAXBElement<Object>>();
}
return this._GenericAppli... | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfSolitaryVegetationObject",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfSolitaryVegetationObject",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfSolitaryVegetation... | Gets the value of the genericApplicationPropertyOfSolitaryVegetationObject property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfSolitaryVegetationObject",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/vegetation/_1/SolitaryVegetationObjectType.java#L527-L532 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/bridge/_2/IntBridgeInstallationType.java | IntBridgeInstallationType.get_GenericApplicationPropertyOfIntBridgeInstallation | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfIntBridgeInstallation() {
if (_GenericApplicationPropertyOfIntBridgeInstallation == null) {
_GenericApplicationPropertyOfIntBridgeInstallation = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPro... | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfIntBridgeInstallation() {
if (_GenericApplicationPropertyOfIntBridgeInstallation == null) {
_GenericApplicationPropertyOfIntBridgeInstallation = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPro... | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfIntBridgeInstallation",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfIntBridgeInstallation",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfIntBridgeInstallation",
... | Gets the value of the genericApplicationPropertyOfIntBridgeInstallation property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the ge... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfIntBridgeInstallation",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/bridge/_2/IntBridgeInstallationType.java#L298-L303 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/AbstractGMLType.java | AbstractGMLType.getName | public List<JAXBElement<CodeType>> getName() {
if (name == null) {
name = new ArrayList<JAXBElement<CodeType>>();
}
return this.name;
} | java | public List<JAXBElement<CodeType>> getName() {
if (name == null) {
name = new ArrayList<JAXBElement<CodeType>>();
}
return this.name;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"CodeType",
">",
">",
"getName",
"(",
")",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"name",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
"<",
"CodeType",
">",
">",
"(",
")",
";",
"}",
"return",
"thi... | 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.
<p>
This accessor method returns a referen... | [
"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",
... | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/gml/AbstractGMLType.java#L184-L189 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/SurfaceArrayPropertyType.java | SurfaceArrayPropertyType.get_Surface | public List<JAXBElement<? extends AbstractSurfaceType>> get_Surface() {
if (_Surface == null) {
_Surface = new ArrayList<JAXBElement<? extends AbstractSurfaceType>>();
}
return this._Surface;
} | java | public List<JAXBElement<? extends AbstractSurfaceType>> get_Surface() {
if (_Surface == null) {
_Surface = new ArrayList<JAXBElement<? extends AbstractSurfaceType>>();
}
return this._Surface;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"?",
"extends",
"AbstractSurfaceType",
">",
">",
"get_Surface",
"(",
")",
"{",
"if",
"(",
"_Surface",
"==",
"null",
")",
"{",
"_Surface",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
"<",
"?",
"extends",
"Abstract... | Gets the value of the surface property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the surface property.
<p>
For example, to add a... | [
"Gets",
"the",
"value",
"of",
"the",
"surface",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/gml/SurfaceArrayPropertyType.java#L81-L86 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/GeometryArrayPropertyType.java | GeometryArrayPropertyType.get_Geometry | public List<JAXBElement<? extends AbstractGeometryType>> get_Geometry() {
if (_Geometry == null) {
_Geometry = new ArrayList<JAXBElement<? extends AbstractGeometryType>>();
}
return this._Geometry;
} | java | public List<JAXBElement<? extends AbstractGeometryType>> get_Geometry() {
if (_Geometry == null) {
_Geometry = new ArrayList<JAXBElement<? extends AbstractGeometryType>>();
}
return this._Geometry;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"?",
"extends",
"AbstractGeometryType",
">",
">",
"get_Geometry",
"(",
")",
"{",
"if",
"(",
"_Geometry",
"==",
"null",
")",
"{",
"_Geometry",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
"<",
"?",
"extends",
"Abst... | Gets the value of the geometry property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the geometry property.
<p>
For example, to add... | [
"Gets",
"the",
"value",
"of",
"the",
"geometry",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/gml/GeometryArrayPropertyType.java#L108-L113 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/_1/AddressType.java | AddressType.get_GenericApplicationPropertyOfAddress | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAddress() {
if (_GenericApplicationPropertyOfAddress == null) {
_GenericApplicationPropertyOfAddress = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfAddress;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAddress() {
if (_GenericApplicationPropertyOfAddress == null) {
_GenericApplicationPropertyOfAddress = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfAddress;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfAddress",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfAddress",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfAddress",
"=",
"new",
"ArrayList",
"<",
"J... | Gets the value of the genericApplicationPropertyOfAddress property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplicati... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfAddress",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/_1/AddressType.java#L143-L148 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/building/_2/BuildingPartType.java | BuildingPartType.get_GenericApplicationPropertyOfBuildingPart | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuildingPart() {
if (_GenericApplicationPropertyOfBuildingPart == null) {
_GenericApplicationPropertyOfBuildingPart = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBuildingPart;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuildingPart() {
if (_GenericApplicationPropertyOfBuildingPart == null) {
_GenericApplicationPropertyOfBuildingPart = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBuildingPart;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfBuildingPart",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfBuildingPart",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfBuildingPart",
"=",
"new",
"ArrayLis... | Gets the value of the genericApplicationPropertyOfBuildingPart property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericAppl... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfBuildingPart",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/building/_2/BuildingPartType.java#L73-L78 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/building/_1/RoofSurfaceType.java | RoofSurfaceType.get_GenericApplicationPropertyOfRoofSurface | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfRoofSurface() {
if (_GenericApplicationPropertyOfRoofSurface == null) {
_GenericApplicationPropertyOfRoofSurface = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfRoofSurface;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfRoofSurface() {
if (_GenericApplicationPropertyOfRoofSurface == null) {
_GenericApplicationPropertyOfRoofSurface = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfRoofSurface;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfRoofSurface",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfRoofSurface",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfRoofSurface",
"=",
"new",
"ArrayList",... | Gets the value of the genericApplicationPropertyOfRoofSurface property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericAppli... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfRoofSurface",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/building/_1/RoofSurfaceType.java#L73-L78 | train |
citygml4j/citygml4j | src-gen/main/java/oasis/names/tc/ciq/xsdschema/xal/_2/PremiseElement.java | PremiseElement.getPremiseName | public List<PremiseElement.PremiseName> getPremiseName() {
if (premiseName == null) {
premiseName = new ArrayList<PremiseElement.PremiseName>();
}
return this.premiseName;
} | java | public List<PremiseElement.PremiseName> getPremiseName() {
if (premiseName == null) {
premiseName = new ArrayList<PremiseElement.PremiseName>();
}
return this.premiseName;
} | [
"public",
"List",
"<",
"PremiseElement",
".",
"PremiseName",
">",
"getPremiseName",
"(",
")",
"{",
"if",
"(",
"premiseName",
"==",
"null",
")",
"{",
"premiseName",
"=",
"new",
"ArrayList",
"<",
"PremiseElement",
".",
"PremiseName",
">",
"(",
")",
";",
"}",... | Gets the value of the premiseName property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the premiseName property.
<p>
For example, ... | [
"Gets",
"the",
"value",
"of",
"the",
"premiseName",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/oasis/names/tc/ciq/xsdschema/xal/_2/PremiseElement.java#L281-L286 | train |
citygml4j/citygml4j | src-gen/main/java/oasis/names/tc/ciq/xsdschema/xal/_2/LocalityElement.java | LocalityElement.getLocalityName | public List<LocalityElement.LocalityName> getLocalityName() {
if (localityName == null) {
localityName = new ArrayList<LocalityElement.LocalityName>();
}
return this.localityName;
} | java | public List<LocalityElement.LocalityName> getLocalityName() {
if (localityName == null) {
localityName = new ArrayList<LocalityElement.LocalityName>();
}
return this.localityName;
} | [
"public",
"List",
"<",
"LocalityElement",
".",
"LocalityName",
">",
"getLocalityName",
"(",
")",
"{",
"if",
"(",
"localityName",
"==",
"null",
")",
"{",
"localityName",
"=",
"new",
"ArrayList",
"<",
"LocalityElement",
".",
"LocalityName",
">",
"(",
")",
";",... | Gets the value of the localityName property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the localityName property.
<p>
For example... | [
"Gets",
"the",
"value",
"of",
"the",
"localityName",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/oasis/names/tc/ciq/xsdschema/xal/_2/LocalityElement.java#L183-L188 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/bridge/_2/BridgeType.java | BridgeType.get_GenericApplicationPropertyOfBridge | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridge() {
if (_GenericApplicationPropertyOfBridge == null) {
_GenericApplicationPropertyOfBridge = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBridge;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBridge() {
if (_GenericApplicationPropertyOfBridge == null) {
_GenericApplicationPropertyOfBridge = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBridge;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfBridge",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfBridge",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfBridge",
"=",
"new",
"ArrayList",
"<",
"JAXB... | Gets the value of the genericApplicationPropertyOfBridge property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplicatio... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfBridge",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/bridge/_2/BridgeType.java#L73-L78 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/building/_1/BuildingType.java | BuildingType.get_GenericApplicationPropertyOfBuilding | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuilding() {
if (_GenericApplicationPropertyOfBuilding == null) {
_GenericApplicationPropertyOfBuilding = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBuilding;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuilding() {
if (_GenericApplicationPropertyOfBuilding == null) {
_GenericApplicationPropertyOfBuilding = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBuilding;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfBuilding",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfBuilding",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfBuilding",
"=",
"new",
"ArrayList",
"<",
... | Gets the value of the genericApplicationPropertyOfBuilding property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplicat... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfBuilding",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/building/_1/BuildingType.java#L73-L78 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/transportation/_2/RoadType.java | RoadType.get_GenericApplicationPropertyOfRoad | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfRoad() {
if (_GenericApplicationPropertyOfRoad == null) {
_GenericApplicationPropertyOfRoad = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfRoad;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfRoad() {
if (_GenericApplicationPropertyOfRoad == null) {
_GenericApplicationPropertyOfRoad = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfRoad;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfRoad",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfRoad",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfRoad",
"=",
"new",
"ArrayList",
"<",
"JAXBElemen... | Gets the value of the genericApplicationPropertyOfRoad property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplicationP... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfRoad",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/transportation/_2/RoadType.java#L76-L81 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/_1/AbstractCityObjectType.java | AbstractCityObjectType.get_GenericAttribute | public List<JAXBElement<? extends AbstractGenericAttributeType>> get_GenericAttribute() {
if (_GenericAttribute == null) {
_GenericAttribute = new ArrayList<JAXBElement<? extends AbstractGenericAttributeType>>();
}
return this._GenericAttribute;
} | java | public List<JAXBElement<? extends AbstractGenericAttributeType>> get_GenericAttribute() {
if (_GenericAttribute == null) {
_GenericAttribute = new ArrayList<JAXBElement<? extends AbstractGenericAttributeType>>();
}
return this._GenericAttribute;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"?",
"extends",
"AbstractGenericAttributeType",
">",
">",
"get_GenericAttribute",
"(",
")",
"{",
"if",
"(",
"_GenericAttribute",
"==",
"null",
")",
"{",
"_GenericAttribute",
"=",
"new",
"ArrayList",
"<",
"JAXBElement",
... | Gets the value of the genericAttribute property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericAttribute property.
<p>
For... | [
"Gets",
"the",
"value",
"of",
"the",
"genericAttribute",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/_1/AbstractCityObjectType.java#L282-L287 | train |
citygml4j/citygml4j | src-gen/main/java/net/opengis/citygml/_1/AbstractCityObjectType.java | AbstractCityObjectType.get_GenericApplicationPropertyOfCityObject | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfCityObject() {
if (_GenericApplicationPropertyOfCityObject == null) {
_GenericApplicationPropertyOfCityObject = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfCityObject;
} | java | public List<JAXBElement<Object>> get_GenericApplicationPropertyOfCityObject() {
if (_GenericApplicationPropertyOfCityObject == null) {
_GenericApplicationPropertyOfCityObject = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfCityObject;
} | [
"public",
"List",
"<",
"JAXBElement",
"<",
"Object",
">",
">",
"get_GenericApplicationPropertyOfCityObject",
"(",
")",
"{",
"if",
"(",
"_GenericApplicationPropertyOfCityObject",
"==",
"null",
")",
"{",
"_GenericApplicationPropertyOfCityObject",
"=",
"new",
"ArrayList",
... | Gets the value of the genericApplicationPropertyOfCityObject property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the genericApplic... | [
"Gets",
"the",
"value",
"of",
"the",
"genericApplicationPropertyOfCityObject",
"property",
"."
] | 9155997d5ecf7e8f19411a02ba047f13375b97b9 | https://github.com/citygml4j/citygml4j/blob/9155997d5ecf7e8f19411a02ba047f13375b97b9/src-gen/main/java/net/opengis/citygml/_1/AbstractCityObjectType.java#L357-L362 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.