helper for getting self describing objects from row
@@ -35,6 +35,7 @@ import org.batfish.datamodel.acl.AclTrace;
import org.batfish.datamodel.answers.Issue;
import org.batfish.datamodel.answers.Schema;
import org.batfish.datamodel.answers.SchemaUtils;
+import org.batfish.datamodel.answers.SelfDescribingObject;
import org.batfish.datamodel.collections.FileLines;
import org.batfish.datamodel.collections.NodeInterfacePair;
import org.batfish.datamodel.flow.Trace;
@@ -347,6 +348,10 @@ public class Row implements Comparable<Row>, Serializable {
return (Prefix) get(column, Schema.PREFIX);
}
+ public SelfDescribingObject getSelfDescribing(String column) {
+ return (SelfDescribingObject) get(column, Schema.SELF_DESCRIBING);
+ }
+
public String getString(String column) {
return (String) get(column, Schema.STRING);
}
