Beispiel #1
0
 public static void checkResourceType(ResourceType<?> resource) {
   // Check optional fields
   URI href = resource.getHref();
   if (href != null) checkHref(href);
   String type = resource.getType();
   if (type != null) checkType(type);
   Set<Link> links = resource.getLinks();
   if (links != null && !links.isEmpty()) {
     for (Link link : links) checkLink(link);
   }
 }