1 package io.guixer.logs.lines; 2 3 import static com.google.common.base.Preconditions.checkNotNull; 4 import static io.guixer.logs.lines.LogLine.Type.TAG; 5 6 import io.guixer.types.AttributeScope; 7 8 public final class TagLogLine extends AbstractLogLine { 9 10 private final AttributeScope scope; 11 private final String name; 12 13 public TagLogLine( 14 final long timeMillis, 15 final String rawText, 16 final AttributeScope scope, 17 final String name 18 ) { 19 20 super(timeMillis, TAG, rawText); 21 22 this.scope = checkNotNull(scope, "scope"); 23 this.name = checkNotNull(name, "name"); 24 } 25 26 public AttributeScope getScope() { 27 28 return scope; 29 } 30 31 public String getName() { 32 33 return name; 34 } 35 }