/** * Create an instance of {@link MatchersSequenceType } * */ public MatchersSequenceType createMatchersSequenceType() { return new MatchersSequenceType(); }
public MatchersSequenceType withExpression(String value) { setExpression(value); return this; }
public MatchersSequenceType withSequenceIdentifier(MatcherRule value) { setSequenceIdentifier(value); return this; }
@Override public String getJavaIdentifier(Definition definition) { for (MatchersSchemaType schemas : schemas(definition)) { String result = match(definition, schemas.getExpression(), schemas.getSchemaIdentifier()); if (result != null) return result; } for (MatchersTableType tables : tables(definition)) { String result = match(definition, tables.getExpression(), tables.getTableIdentifier()); if (result != null) return result; } for (MatchersFieldType fields : fields(definition)) { String result = match(definition, fields.getExpression(), fields.getFieldIdentifier()); if (result != null) return result; } for (MatchersSequenceType sequences : sequences(definition)) { String result = match(definition, sequences.getExpression(), sequences.getSequenceIdentifier()); if (result != null) return result; } // Default to standard behaviour return super.getJavaIdentifier(definition); }