Class Schema

    • Constructor Detail

      • Schema

        public Schema()
    • Method Detail

      • getField

        public FieldType getField​(String fieldName)
        Get the field type for the given field name
        Parameters:
        fieldName - The name of the field
        Returns:
        the field type for this given field, or null if the field does not exist
      • setField

        public Schema setField​(String fieldName,
                               FieldType fieldType)
        Set the field type for the given field
        Parameters:
        fieldName - The name of the field
        fieldType - The type of the field
        Returns:
        the updated schema object
      • getFieldNames

        public Set<String> getFieldNames()
        Get a set of all the field names in this schema
        Returns:
        a set of all the field names in this schema
      • isError

        public boolean isError()
        Description copied from interface: ErrorableResponse
        Gets whether this response contains any errors from the requested operation
        Specified by:
        isError in interface ErrorableResponse
        Returns:
        true if 1 or more errors occurred, otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getErrors

        public List<String> getErrors()
        Get the errors
        Returns:
        the errors
      • setErrors

        public void setErrors​(List<String> errors)
        Get the errors
        Parameters:
        errors - the errors