edu.iris.dmc.seed.control.dictionary.B033 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-4-seed Show documentation
Show all versions of java-4-seed Show documentation
Java API to work with seismic dataless seed
package edu.iris.dmc.seed.control.dictionary;
import edu.iris.dmc.io.SeedStringBuilder;
public class B033 extends AbstractDictionaryBlockette {
private String description;
public B033() {
this(null);
}
public B033(String text) {
super(33, "Generic Abbreviation Blockette");
this.originalText = text;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toSeedString() {
SeedStringBuilder builder = new SeedStringBuilder(this.getType(), 3).append("####");
builder.append(this.lookupKey, 3);
if (this.description != null) {
builder.append(this.description);
}
builder.append("~");
builder.replace(3, 7, builder.length(), "####");
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy