Exemplo n.º 1
0
 private Property[] visibleProperties(Member m) {
   Property[] src = m.getProperties();
   String scope = null;
   if (extension != null) scope = extension.getPropertyScope(m);
   List list = new ArrayList();
   for (int i = 0; i < src.length; i++) {
     Property p = src[i];
     if (PropertyUtils.isInline(p.getName())) continue;
     if (scope != null && visible != null) {
       if (visible.contains(scope, p.getName())) list.add(p);
     } else list.add(p);
   }
   return (Property[]) list.toArray(new Property[list.size()]);
 }
Exemplo n.º 2
0
  private void addMemberPropertiesJo(JSONObject e, Member m) {
    if (!propertyConfig.isShowProperties()) return;

    Property[] props = visibleProperties(m);
    PropertyUtils.addProperties(e, props);
  }