@Test public void testAnnotations() throws IllegalArgumentException { schema.clearFields(); complexSchema.clearFields(); AppInfo d = new AppInfo(null); d.put(AppInfo.READ_ENFORCEMENT_ELEMENT_NAME, new HashSet<String>(Arrays.asList(Right.READ_RESTRICTED.toString()))); complexSchema.addAnnotation(d); schema.getList().add(complexSchema); assertTrue("The schema should have a read_restricted annotation", schema.getAppInfo().getReadAuthorities() .contains(Right.READ_RESTRICTED)); }
public List<NeutralSchema> getList() { return list; }
ListSchema extends NeutralSchema { public List<NeutralSchema> getList() { return list; } }
ListSchema extends NeutralSchema { public List<NeutralSchema> getList() { return list; } ListSchema();  ListSchema(String xsdType); }
ListSchema extends NeutralSchema { public List<NeutralSchema> getList() { return list; } ListSchema();  ListSchema(String xsdType); @Override NeutralSchemaType getSchemaType(); @Override boolean isPrimitive(); void setList(List<NeutralSchema> list); List<NeutralSchema> getList(); @Override boolean isSimple(); void updateAnnotations(); @Override Object convert(Object value); Map<String, NeutralSchema> getFields(); }
ListSchema extends NeutralSchema { public List<NeutralSchema> getList() { return list; } ListSchema();  ListSchema(String xsdType); @Override NeutralSchemaType getSchemaType(); @Override boolean isPrimitive(); void setList(List<NeutralSchema> list); List<NeutralSchema> getList(); @Override boolean isSimple(); void updateAnnotations(); @Override Object convert(Object value); Map<String, NeutralSchema> getFields();  }