public void setAnnotation(String key, String annotation) throws IllegalAnnotationException { checkWritable(); if (annotation == null) { annotations.remove(key); return; } ParsedText parsedText = new ParsedText(annotation); parsedText.init(parseContext); annotations.put(key, parsedText); }
public void setResolver(EntityResolver resolver) { super.setResolver(resolver); for (AttributeImpl child : attributes) { child.setParent(this); } for (ParsedText annotation : annotations.values()) { try { annotation.init(parseContext); } catch (IllegalAnnotationException e) { } } for (PermissionImpl p : permissions) { p.setResolver(resolver); } }