public void checkForValidOffsets(final Node node)
    {
        int offset = 0;

        for (final Type edt : containedTypeByNameMap.values())
        {
            final int offsetAttribute = edt.offsetAttribute();

            if (-1 != offsetAttribute)
            {
                if (offsetAttribute < offset)
                {
                    XmlSchemaParser.handleError(
                        node, "composite element \"" + edt.name() + "\" has incorrect offset specified");
                }

                offset = offsetAttribute;
            }

            offset += edt.encodedLength();
        }
    }
Check the composite for any specified offsets and validate they are correctly specified.

@param node of the XML for this composite
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/CompositeType.java