}
}
private void findModelsAssocation(ResourceSchema resourceSchema, Map<String, NamedDataSchema> foundTypes, List<NamedDataSchema> typeOrder)
{
AssociationSchema association = resourceSchema.getAssociation();
if (association != null)
{
for (AssocKeySchema assocKeySchema : association.getAssocKeys())
{
String type = assocKeySchema.getType();
recordType(type, foundTypes, typeOrder);
}
if (association.hasFinders())
{
for (FinderSchema restMethodSchema: association.getFinders())
{
findModelsFinder(restMethodSchema, foundTypes, typeOrder);
}
}
if (association.hasMethods())
{
for (RestMethodSchema restMethodSchema: association.getMethods())
{
findModelsMethod(restMethodSchema, foundTypes, typeOrder);
}
}
if (association.hasActions())
{
for (ActionSchema actionSchema : association.getActions())
{
findModelsAction(actionSchema, foundTypes, typeOrder);
}
}
if (association.hasEntity())
{
EntitySchema entitySchema = association.getEntity();
findModelsEntity(entitySchema, foundTypes, typeOrder);
}
}
}