-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
499c6e1
commit a2d7c89
Showing
30 changed files
with
945 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
src/src/main/java/com/relewise/client/model/ObjectValueIsSubsetOfCondition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
package com.relewise.client.model; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import javax.annotation.Nullable; | ||
import java.io.IOException; | ||
import java.time.OffsetDateTime; | ||
import java.time.LocalDateTime; | ||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import java.util.UUID; | ||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.AbstractMap; | ||
import java.util.Map; | ||
import java.util.Map.Entry; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
|
||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
property = "$type", | ||
defaultImpl = ObjectValueIsSubsetOfCondition.class) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class ObjectValueIsSubsetOfCondition extends ObjectValueCondition | ||
{ | ||
public String $type = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueIsSubsetOfCondition, Relewise.Client"; | ||
public DataValue value; | ||
public static ObjectValueIsSubsetOfCondition create(String key, String[] objectPath, DataValue value) | ||
{ | ||
return new ObjectValueIsSubsetOfCondition(key, objectPath, value); | ||
} | ||
public ObjectValueIsSubsetOfCondition(String key, String[] objectPath, DataValue value) | ||
{ | ||
this.key = key; | ||
this.objectPath = objectPath; | ||
this.value = value; | ||
this.negated = false; | ||
} | ||
public static ObjectValueIsSubsetOfCondition create(String key, String[] objectPath, DataValue value, Boolean negated) | ||
{ | ||
return new ObjectValueIsSubsetOfCondition(key, objectPath, value, negated); | ||
} | ||
public ObjectValueIsSubsetOfCondition(String key, String[] objectPath, DataValue value, Boolean negated) | ||
{ | ||
this.key = key; | ||
this.objectPath = objectPath; | ||
this.value = value; | ||
this.negated = negated; | ||
} | ||
public static ObjectValueIsSubsetOfCondition create(String key, DataValue value) | ||
{ | ||
return new ObjectValueIsSubsetOfCondition(key, value); | ||
} | ||
public ObjectValueIsSubsetOfCondition(String key, DataValue value) | ||
{ | ||
this.key = key; | ||
this.value = value; | ||
this.negated = false; | ||
} | ||
public static ObjectValueIsSubsetOfCondition create(String key, DataValue value, Boolean negated) | ||
{ | ||
return new ObjectValueIsSubsetOfCondition(key, value, negated); | ||
} | ||
public ObjectValueIsSubsetOfCondition(String key, DataValue value, Boolean negated) | ||
{ | ||
this.key = key; | ||
this.value = value; | ||
this.negated = negated; | ||
} | ||
public ObjectValueIsSubsetOfCondition() | ||
{ | ||
this.negated = false; | ||
} | ||
public DataValue getValue() | ||
{ | ||
return this.value; | ||
} | ||
public ObjectValueIsSubsetOfCondition setValue(DataValue value) | ||
{ | ||
this.value = value; | ||
return this; | ||
} | ||
@Override | ||
public ObjectValueIsSubsetOfCondition setNegated(Boolean negated) | ||
{ | ||
this.negated = negated; | ||
return this; | ||
} | ||
@Override | ||
public ObjectValueIsSubsetOfCondition setKey(String key) | ||
{ | ||
this.key = key; | ||
return this; | ||
} | ||
@Override | ||
public ObjectValueIsSubsetOfCondition setObjectPath(String... objectPath) | ||
{ | ||
this.objectPath = objectPath; | ||
return this; | ||
} | ||
public ObjectValueIsSubsetOfCondition addToObjectPath(String objectPath) | ||
{ | ||
if (this.objectPath == null) | ||
{ | ||
this.objectPath = new String[] { objectPath }; | ||
} | ||
else | ||
{ | ||
ArrayList<String> existingList = new ArrayList<>(Arrays.asList(this.objectPath)); | ||
existingList.add(objectPath); | ||
this.objectPath = existingList.toArray(new String[0]); | ||
} | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.