/** * Create an instance of {@link MatchersSchemaType } * */ public MatchersSchemaType createMatchersSchemaType() { return new MatchersSchemaType(); }
public MatchersSchemaType withExpression(String value) { setExpression(value); return this; }
public MatchersSchemaType withSchemaClass(MatcherRule value) { setSchemaClass(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); }
@Override public String getJavaClassName(Definition definition, Mode mode) { for (MatchersSchemaType schemas : schemas(definition)) { String result = match(definition, schemas.getExpression(), schemas.getSchemaClass()); if (result != null) return result;
@Override public List<String> getJavaClassImplements(Definition definition, Mode mode) { for (MatchersSchemaType schemas : schemas(definition)) { String result = match(definition, schemas.getExpression(), schemas.getSchemaImplements()); if (result != null) return split(result);
public MatchersSchemaType withSchemaImplements(String value) { setSchemaImplements(value); return this; }
public MatchersSchemaType withSchemaIdentifier(MatcherRule value) { setSchemaIdentifier(value); return this; }