public class EntityJson extends Object implements Iterable<StructuredObject>
| Constructor and Description |
|---|
EntityJson(IEntityJsonInstanceContext context)
Construct an EntityJson from the given context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(StructuredObject o)
As per the method of the same name in java.util.List
|
StructuredObject |
get(int index)
As per the method of the same name in java.util.List
|
StructuredObject |
get(String name)
Return the StructuredObject for the given name, or null.
|
List<StructuredObject> |
getChildren()
Return the StructuredObjects contained within this object as a list.
|
IEntityJsonInstanceContext |
getContext()
Return the parse context from which this object was created, which includes error reports
if the input was invalid in some way.
|
boolean |
isEmpty()
As per the method of the same name in java.util.List
|
Iterator<StructuredObject> |
iterator() |
int |
size()
As per the method of the same name in java.util.List
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic EntityJson(IEntityJsonInstanceContext context) throws InvalidInstanceException
EntityJsonParser.parseStructuredObject(...)context - A parser context.InvalidInstanceException - If the EntityJSON structure contains elements whch
are not valid STructuredObjects.public IEntityJsonInstanceContext getContext()
public List<StructuredObject> getChildren()
public Iterator<StructuredObject> iterator()
iterator in interface Iterable<StructuredObject>@Nullable public StructuredObject get(String name)
name - The name of the required object.public int size()
public boolean isEmpty()
public boolean contains(StructuredObject o)
public StructuredObject get(int index)
Copyright © 2018 The Symphony Software Foundation. All rights reserved.