public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
protected void applyExcludeFilter(Set<Element> apiElements) { Iterator<Element> elementIterator = apiElements.iterator(); while (elementIterator.hasNext()) { Element next = elementIterator.next(); if (this.context.isExcluded(next) || isIgnored(next)) { elementIterator.remove(); } } }
public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
protected void applyExcludeFilter(Set<Element> apiElements) { Iterator<Element> elementIterator = apiElements.iterator(); while (elementIterator.hasNext()) { Element next = elementIterator.next(); if (this.context.isExcluded(next) || isIgnored(next)) { elementIterator.remove(); } } }
public static boolean isResourceParameter(Element candidate, EnunciateJaxrsContext context) { if (IgnoreUtils.isIgnored(candidate)) { return false; } if (!isSystemParameter(candidate, context)) { for (AnnotationMirror annotation : candidate.getAnnotationMirrors()) { TypeElement declaration = (TypeElement) annotation.getAnnotationType().asElement(); if (declaration != null) { String fqn = declaration.getQualifiedName().toString(); if ((MatrixParam.class.getName().equals(fqn)) || QueryParam.class.getName().equals(fqn) || PathParam.class.getName().equals(fqn) || CookieParam.class.getName().equals(fqn) || HeaderParam.class.getName().equals(fqn) || FormParam.class.getName().equals(fqn)) { return true; } if (context.getSystemResourceParameterAnnotations().contains(fqn)) { return false; } if (context.getCustomResourceParameterAnnotations().contains(fqn)) { return true; } } } } return false; }
/** * Gets all properties, including properties from the superclass. * * @param declaration The declaration from which to get all properties. * @return All properties. */ protected Collection<PropertyElement> getAllFaultProperties(DecoratedTypeElement declaration) { ArrayList<PropertyElement> properties = new ArrayList<PropertyElement>(); Set<String> excludedProperties = new TreeSet<String>(); while ((declaration != null) && (!Object.class.getName().equals(declaration.getQualifiedName().toString()))) { for (PropertyElement property : declaration.getProperties()) { if (property.getGetter() != null && property.getAnnotation(XmlTransient.class) == null && !IgnoreUtils.isIgnored(property) && !excludedProperties.contains(property.getPropertyName())) { //only the readable properties that are not marked with @XmlTransient properties.add(property); } else { excludedProperties.add(property.getPropertyName()); } } declaration = (DecoratedTypeElement) ((DeclaredType)declaration.getSuperclass()).asElement(); } return properties; }
if (IgnoreUtils.isIgnored(method)) { continue;
if (IgnoreUtils.isIgnored(method)) { continue;
if (declaration != null) { String fqn = declaration.getQualifiedName().toString(); if (IgnoreUtils.isIgnored(declaration)) {
if (IgnoreUtils.isIgnored(resourceMethod)) { return;
if (isIgnored(declaration)) { continue;
if (IgnoreUtils.isIgnored(element)) { return false;
if (IgnoreUtils.isIgnored(element)) { return false;
if (IgnoreUtils.isIgnored(parameterDeclaration)) { continue;