public class StructuredObject extends Object
| Modifier and Type | Method and Description |
|---|---|
IEntityJsonInstanceContext |
getContext()
Return the parse context from which this object was created, which includes error reports
if the input was invalid in some way.
|
List<StructuredObjectId> |
getIdList() |
int |
getMajorVersion() |
int |
getMinorVersion() |
String |
getType() |
String |
getVersion() |
String |
toString() |
IEntityJsonSchemaContext |
validate(EntityJsonParser parser)
Validate this object against the specific schema for this type from the official repo.
|
public IEntityJsonInstanceContext getContext()
public IEntityJsonSchemaContext validate(EntityJsonParser parser) throws SchemaValidationException, NoSchemaException, InvalidSchemaException
parser - A parser to do the validation.SchemaValidationException - If this object is not valid according to it's schema.NoSchemaException - If there is no official schema for this type.InvalidSchemaException - If the schema exists but is not itself valid or cannot be read.public String getType()
public String getVersion()
public int getMajorVersion()
public int getMinorVersion()
public List<StructuredObjectId> getIdList()
Copyright © 2020 The Symphony Software Foundation. All rights reserved.