private boolean isBodyDone() { final boolean ok_triangles = this.header.triangles().triangleCount() == this.parsed_triangles; final boolean attribute_size_ok = this.attributes_ok.size() == this.header.attributesByName().size(); final boolean attribute_all_done = this.attributes_ok.foldRight( Boolean.TRUE, (p, x) -> Boolean.valueOf(p._2.booleanValue() && x.booleanValue())).booleanValue(); this.log().trace( "triangles done: {}", Boolean.valueOf(ok_triangles)); this.log().trace( "attributes size: {}", Boolean.valueOf(attribute_size_ok)); this.log().trace( "attributes done: {}", Boolean.valueOf(attribute_all_done)); return ok_triangles && attribute_size_ok && attribute_all_done; }
private void failMissedAttributes() { final Set<SMFAttributeName> names = this.header.attributesByName().keySet().diff( this.attributes_attempted.keySet()); if (!names.isEmpty()) { names.forEach( name -> this.fail( "No data specified for attribute: " + name.value(), Optional.empty())); } }
this.header.attributesByName().get(name); if (attribute_opt.isDefined()) { final SMFAttribute attribute = attribute_opt.get();
this.configuration.mappings(); final Map<SMFAttributeName, SMFAttribute> received_attributes = in_header.attributesByName();
m.header().attributesByName(); Seq<SMFProcessingError> errors = List.empty(); errors = checkAttributeExists(errors, by_name, this.attribute);
List.empty(), m.header().attributesByName(), this.source); if (!errors.isEmpty()) { return invalid(List.ofAll(errors)); orig_header.attributesInOrder(); final Map<SMFAttributeName, SMFAttribute> orig_by_name = orig_header.attributesByName(); final SMFAttribute orig_attrib = orig_by_name.get(this.source).get();
m.header().attributesByName(); Seq<SMFProcessingError> errors = checkAttributeExists(List.empty(), by_name, this.source); orig_header.attributesByName(); final SMFAttribute orig_attrib = orig_by_name.get(this.source).get();
m.header().attributesByName(); Seq<SMFProcessingError> errors = List.empty(); for (final SMFAttributeName name : this.attributes) {
schema.requiredAttributes(); final SortedMap<SMFAttributeName, SMFAttribute> by_name = header.attributesByName();