Tabnine Logo
SMFAttributeName.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
com.io7m.smfj.core.SMFAttributeName

Best Java code snippets using com.io7m.smfj.core.SMFAttributeName.value (Showing top 20 results out of 315)

origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorExtraAttribute(
 final SMFAttributeName name)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append(
  "The mesh contains an extra attribute but the schema does not permit them.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorMissingAttribute(
 final SMFAttributeName name)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("A required attribute is missing.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorWrongComponentSize(
 final SMFAttributeName name,
 final int expected,
 final int received)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Attribute component size is not the expected size.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 sb.append("  Expected:  ");
 sb.append(expected);
 sb.append(System.lineSeparator());
 sb.append("  Received:  ");
 sb.append(received);
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorWrongComponentCount(
 final SMFAttributeName name,
 final int expected,
 final int received)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Attribute component count is not the expected count.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 sb.append("  Expected:  ");
 sb.append(expected);
 sb.append(System.lineSeparator());
 sb.append("  Received:  ");
 sb.append(received);
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj/com.io7m.smfj.validation.api

private static SMFSchemaValidationError errorWrongComponentType(
 final SMFAttributeName name,
 final SMFComponentType expected,
 final SMFComponentType received)
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Attribute is not of the expected type.");
 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(name.value());
 sb.append(System.lineSeparator());
 sb.append("  Expected:  ");
 sb.append(expected.getName());
 sb.append(System.lineSeparator());
 sb.append("  Received:  ");
 sb.append(received.getName());
 sb.append(System.lineSeparator());
 return SMFSchemaValidationError.of(sb.toString(), Optional.empty());
}
origin: com.io7m.smfj.jcanephora/io7m-smfj-jcanephora-core

@Override
public void onDataAttributeStart(
 final SMFAttribute attribute)
{
 final String name = attribute.name().value();
 if (this.attributes_by_name.containsKey(name)) {
  final Attribute attr = this.attributes_by_name.get(name);
  this.packer = new SMFByteBufferPacker(
   this.array_update.getData(),
   attr.type,
   (int) attr.offset,
   this.vertex_size);
 } else {
  this.packer = null;
 }
}
origin: com.io7m.smfj/com.io7m.smfj.processing.api

sb.append(System.lineSeparator());
sb.append("  Attribute: ");
sb.append(name.value());
sb.append(System.lineSeparator());
sb.append("  Existing:  ");
 final Tuple2<SMFAttributeName, SMFAttribute> tuple = iter.next();
 sb.append("  ");
 sb.append(tuple._1.value());
 sb.append(System.lineSeparator());
origin: com.io7m.smfj/com.io7m.smfj.processing.main

sb.append(System.lineSeparator());
sb.append("  Expected: An attribute '");
sb.append(this.config.name().value());
sb.append("'");
if (this.config.componentCount().isPresent()) {
origin: com.io7m.smfj/com.io7m.smfj.processing.api

sb.append(System.lineSeparator());
sb.append("  Attribute: ");
sb.append(name.value());
sb.append(System.lineSeparator());
sb.append("  Existing:  ");
 final Tuple2<SMFAttributeName, SMFAttribute> tuple = iter.next();
 sb.append("  ");
 sb.append(tuple._1.value());
 sb.append(System.lineSeparator());
origin: com.io7m.smfj/com.io7m.smfj.validation.main

writer.append(requirement);
writer.append(" \"");
writer.append(name.value());
writer.append("\" ");
origin: com.io7m.smfj/io7m-smfj-format-text

sb.append(System.lineSeparator());
sb.append("  Attribute:      ");
sb.append(a.name().value());
sb.append(System.lineSeparator());
sb.append("  Attribute type: ");
origin: com.io7m.smfj/io7m-smfj-format-text

 sb.append(System.lineSeparator());
 sb.append("  Attribute: ");
 sb.append(this.attribute_current.name().value());
 sb.append(System.lineSeparator());
 sb.append("  Remaining: ");
   String.format(
    "attribute \"%s\"",
    this.attribute_current.name().value()));
  this.writer.newLine();
  return;
sb.append("  Expected: ");
if (!this.attribute_queue.isEmpty()) {
 sb.append(this.attribute_queue.head().name().value());
} else {
 sb.append("(no attribute expected)");
sb.append(name.value());
sb.append(System.lineSeparator());
this.state.transition(SerializerState.STATE_FAILED);
origin: com.io7m.smfj/io7m-smfj-format-text

private void parseHeaderCheckUniqueAttributeNames()
{
 final Collection<SMFAttributeName> names =
  new HashSet<>(this.attributes_list.size());
 for (final SMFAttribute attribute : this.attributes_list) {
  final SMFAttributeName name = attribute.name();
  if (names.contains(name)) {
   Invariants.checkInvariant(
    name,
    this.attribute_lines.containsKey(name),
    a_name -> "Attribute lines must contain " + a_name);
   this.failWithLineNumber(
    this.attribute_lines.get(name).get().intValue(),
    "Duplicate attribute name: " + name.value(),
    Optional.empty());
  }
  names.add(name);
 }
}
origin: com.io7m.smfj/io7m-smfj-core

/**
 * @return The attributes by name
 */
@Value.Derived
default SortedMap<SMFAttributeName, SMFAttribute> attributesByName()
{
 SortedMap<SMFAttributeName, SMFAttribute> m = TreeMap.empty();
 final List<SMFAttribute> ordered = this.attributesInOrder();
 for (int index = 0; index < ordered.size(); ++index) {
  final SMFAttribute attr = ordered.get(index);
  if (m.containsKey(attr.name())) {
   final StringBuilder sb = new StringBuilder(128);
   sb.append("Duplicate attribute name.");
   sb.append(System.lineSeparator());
   sb.append("  Attribute: ");
   sb.append(attr.name().value());
   sb.append(System.lineSeparator());
   throw new IllegalArgumentException(sb.toString());
  }
  m = m.put(attr.name(), attr);
 }
 return m;
}
origin: com.io7m.smfj/com.io7m.smfj.core

/**
 * @return The attributes by name
 */
@Value.Derived
default SortedMap<SMFAttributeName, SMFAttribute> attributesByName()
{
 SortedMap<SMFAttributeName, SMFAttribute> m = TreeMap.empty();
 final List<SMFAttribute> ordered = this.attributesInOrder();
 for (int index = 0; index < ordered.size(); ++index) {
  final SMFAttribute attr = ordered.get(index);
  if (m.containsKey(attr.name())) {
   final StringBuilder sb = new StringBuilder(128);
   sb.append("Duplicate attribute name.");
   sb.append(System.lineSeparator());
   sb.append("  Attribute: ");
   sb.append(attr.name().value());
   sb.append(System.lineSeparator());
   throw new IllegalArgumentException(sb.toString());
  }
  m = m.put(attr.name(), attr);
 }
 return m;
}
origin: com.io7m.smfj/io7m-smfj-format-text

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()));
 }
}
origin: com.io7m.smfj/io7m-smfj-format-text

  "An attempt has already been made to supply data for attribute " + name.value(),
  Optional.empty());
 return;
 this.log().debug("finished attribute {}", name.value());
 this.attributes_ok = this.attributes_ok.put(name, Boolean.TRUE);
} finally {
super.fail("No such attribute: " + name.value(), Optional.empty());
origin: com.io7m.smfj/io7m-smfj-format-text

String.format(
 "attribute \"%s\" %s %s %s",
 attribute.name().value(),
 attribute.componentType().getName(),
 Long.toUnsignedString((long) attribute.componentCount()),
origin: com.io7m.smfj/com.io7m.smfj.processing.main

String.format(
 "An attribute '%s' with %d components of type %s with size %d",
 attr.name().value(),
 Integer.valueOf(attr.componentCount()),
 attr.componentType().getName(),
origin: com.io7m.smfj.jcanephora/io7m-smfj-jcanephora-core

 Integer.valueOf(required_attribute.index());
this.attributes_by_index.put(b_index, attr);
this.attributes_by_name.put(name.value(), attr);
com.io7m.smfj.coreSMFAttributeNamevalue

Popular methods of SMFAttributeName

  • equals
    This instance is equal to all instances of SMFAttributeName that have equal attribute values.
  • hashCode
    Computes a hash code from attributes: value.
  • of
    Construct a new immutable SMFAttributeName instance.
  • <init>
  • builder
    Creates a builder for SMFAttributeName.
  • checkPreconditions
  • equalTo
  • validate

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now