getRequired method

MarshalledObject getRequired(
  1. String property
)

Get a property, throwing if not set.

Implementation

MarshalledObject getRequired(String property)
{
  MarshalledObject? object = get(property);
  if (object == null) {
    throw new IllegalStateException("MarshalledObject: During unmarshalling, the application tried to access '${property}' as a required property, but it was null.");
  }
  return object;
}