List < String > function ( Metacard arg0 , String arg1 ) { Attribute loc0 = arg0 . getAttribute ( arg1 ) ; if ( loc0 == null || loc0 . getValue ( ) == null ) { return new ArrayList < > ( ) ; } return loc0 . getValues ( ) . stream ( ) . map ( Object :: toString ) . collect ( Collectors . toCollection ( ArrayList :: new ) ) ; }
attempts to return a list of strings from an attribute . if the attribute is null the default value will be returned instead . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isIdentityNode concode_elem_sep boolean getBooleanAttribute concode_elem_sep boolean isRegistryMetacard concode_elem_sep boolean isRegistryMetacard concode_elem_sep boolean isLocalNode concode_elem_sep String getStringAttribute concode_elem_sep boolean hasAttribute concode_elem_sep boolean isInternalRegistryMetacard concode_elem_sep String getRegistryId