use of com.linkedin.restli.restspec.EntitySchema in project rest.li by linkedin.
the class SnapshotGenerator method findModelsAssocation.
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);
}
}
}
use of com.linkedin.restli.restspec.EntitySchema in project rest.li by linkedin.
the class SnapshotGenerator method findModelsSimple.
private void findModelsSimple(ResourceSchema resourceSchema, Map<String, NamedDataSchema> foundTypes, List<NamedDataSchema> typeOrder) {
SimpleSchema simple = resourceSchema.getSimple();
if (simple != null) {
if (simple.hasMethods()) {
for (RestMethodSchema restMethodSchema : simple.getMethods()) {
findModelsMethod(restMethodSchema, foundTypes, typeOrder);
}
}
if (simple.hasActions()) {
for (ActionSchema actionSchema : simple.getActions()) {
findModelsAction(actionSchema, foundTypes, typeOrder);
}
}
if (simple.hasEntity()) {
EntitySchema entity = simple.getEntity();
findModelsEntity(entity, foundTypes, typeOrder);
}
}
}
Aggregations