@ JsonIgnore public boolean hasUnsatisfiedRequiredVariables ( ) { for ( ActionDescriptor actionDescriptor : actionDescriptors ) { Map < String , ActionInputParameter > requiredParameters = actionDescriptor . getRequiredParameters ( ) ; for ( ActionInputParameter annotatedParameter : requiredParameters . values ( ) ) { if ( ! annotatedParameter . hasValue ( ) ) { return true ; } } } return false ; }
Determines if the affordance has unsatisfied required variables . This allows to decide if the affordance can also be treated as a plain Link without template variables if the caller omits all optional variables . Serializers can use this to render it as a resource with optional search features .