if (settableAttributes == null || Boolean.TRUE.equals(settableAttributes.canSetQueryName())) { result.setQueryName("tck:testqueryname"); } else if (settableAttributes != null) { failure = createResult(WARNING, "Flag 'queryName' in capability NewTypeSettableAttributes is not set!"); addResult(assertNotNull(settableAttributes.canSetQueryName(), null, failure));
newTypeSettableAttributes.canSetDisplayName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION, newTypeSettableAttributes.canSetDescription());
target.setDisplayName(newTypeSettableAttributes.canSetDisplayName() == null ? true : newTypeSettableAttributes.canSetDisplayName()); target.setQueryName(newTypeSettableAttributes.canSetQueryName() == null ? true : newTypeSettableAttributes.canSetQueryName()); target.setDescription(newTypeSettableAttributes.canSetDescription() == null ? true : newTypeSettableAttributes.canSetDescription());
newTypeSettableAttributes.canSetDisplayName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION, newTypeSettableAttributes.canSetDescription());
newTypeSettableAttributes.canSetDisplayName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION, newTypeSettableAttributes.canSetDescription());
newTypeSettableAttributes.canSetDisplayName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION, newTypeSettableAttributes.canSetDescription());