public class ResourceTypeSchema extends Object
| Constructor and Description |
|---|
ResourceTypeSchema(org.everit.json.schema.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
definesProperty(String field) |
List<List<String>> |
getAdditionalIdentifiersAsStrings() |
List<String> |
getConditionalCreateOnlyPropertiesAsStrings() |
List<String> |
getCreateOnlyPropertiesAsStrings() |
List<String> |
getDeprecatedPropertiesAsStrings() |
String |
getDescription() |
Set<String> |
getHandlerPermissions(String action) |
Integer |
getHandlerTimeoutInMinutes(String action) |
List<String> |
getPrimaryIdentifierAsStrings() |
List<String> |
getReadOnlyPropertiesAsStrings() |
String |
getReplacementStrategy() |
Map<String,Object> |
getUnprocessedProperties() |
List<String> |
getWriteOnlyPropertiesAsStrings() |
Boolean |
hasHandler(String action) |
static ResourceTypeSchema |
load(org.json.JSONObject resourceDefinition) |
static void |
removeProperty(PublicJSONPointer property,
org.json.JSONObject resourceModel) |
void |
removeWriteOnlyProperties(org.json.JSONObject resourceModel) |
void |
validate(org.json.JSONObject json) |
public ResourceTypeSchema(org.everit.json.schema.Schema schema)
public static ResourceTypeSchema load(org.json.JSONObject resourceDefinition)
public String getDescription()
public List<String> getConditionalCreateOnlyPropertiesAsStrings() throws ValidationException
ValidationExceptionpublic List<String> getCreateOnlyPropertiesAsStrings() throws ValidationException
ValidationExceptionpublic List<String> getDeprecatedPropertiesAsStrings() throws ValidationException
ValidationExceptionpublic List<String> getPrimaryIdentifierAsStrings() throws ValidationException
ValidationExceptionpublic List<List<String>> getAdditionalIdentifiersAsStrings() throws ValidationException
ValidationExceptionpublic List<String> getReadOnlyPropertiesAsStrings() throws ValidationException
ValidationExceptionpublic List<String> getWriteOnlyPropertiesAsStrings() throws ValidationException
ValidationExceptionpublic void removeWriteOnlyProperties(org.json.JSONObject resourceModel)
public String getReplacementStrategy()
public static void removeProperty(PublicJSONPointer property, org.json.JSONObject resourceModel)
public boolean definesProperty(String field)
public void validate(org.json.JSONObject json)
Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.