private static List<SMFErrorType> checkComponentType( final List<SMFErrorType> errors, final SMFAttributeName name, final SMFSchemaAttribute attr_schema, final SMFAttribute attr) { final Optional<SMFComponentType> req_type_opt = attr_schema.requiredComponentType(); if (req_type_opt.isPresent()) { final SMFComponentType req_type = req_type_opt.get(); if (attr.componentType() != req_type) { return errors.append(errorWrongComponentType( name, req_type, attr.componentType())); } } return errors; }
if (a.componentType() == type && a.componentCount() == count) { return; sb.append(a.componentCount()); sb.append(" components of type "); sb.append(a.componentType().name()); sb.append(System.lineSeparator()); sb.append(" Received: ");
"attribute \"%s\" %s %s %s", attribute.name().value(), attribute.componentType().getName(), Long.toUnsignedString((long) attribute.componentCount()), Long.toUnsignedString((long) attribute.componentSizeBits())));
type_ok = this.config.componentType().get() == attr.componentType(); attr.name().value(), Integer.valueOf(attr.componentCount()), attr.componentType().getName(), Integer.valueOf(attr.componentSizeBits()))));
n -> "Attribute must have 3 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_SIGNED, n -> "Attribute must be of a signed integer type");
n -> "Attribute must have 4 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_SIGNED, n -> "Attribute must be of a signed integer type");
n -> "Attribute must have 3 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_UNSIGNED, n -> "Attribute must be of an unsigned integer type");
n -> "Attribute must have 4 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_FLOATING, n -> "Attribute must be of a floating point type");
n -> "Attribute must have 4 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_UNSIGNED, n -> "Attribute must be of an unsigned integer type");
n -> "Attribute must have 2 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_UNSIGNED, n -> "Attribute must be of an unsigned integer type");
n -> "Attribute must have 1 component"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_UNSIGNED, n -> "Attribute must be of an unsigned integer type");
n -> "Attribute must have 3 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_FLOATING, n -> "Attribute must be of a floating point type");
n -> "Attribute must have 2 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_FLOATING, n -> "Attribute must be of a floating point type");
n -> "Attribute must have 1 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_FLOATING, n -> "Attribute must be of a floating point type");
n -> "Attribute must have 2 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_SIGNED, n -> "Attribute must be of a signed integer type");
n -> "Attribute must have 1 components"); Preconditions.checkPrecondition( attr.componentType(), attr.componentType() == SMFComponentType.ELEMENT_TYPE_INTEGER_SIGNED, n -> "Attribute must be of a signed integer type");
determineComponentType( required_attribute.componentType(), received_attribute.componentType());
this.vertices = in_vertices; if (Long.compareUnsigned(in_vertices, 0L) > 0) { switch (attribute.componentType()) { case ELEMENT_TYPE_INTEGER_SIGNED: { switch (attribute.componentCount()) {
@Override public void onDataAttributeValueFinish() switch (this.attribute_current.componentType()) { case ELEMENT_TYPE_INTEGER_SIGNED: { switch (this.attribute_current.componentCount()) {