FBXMLGenerationOptions.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <Foundation/Foundation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface FBXMLGenerationOptions : NSObject
  12. /**
  13. XML buidling scope. Passing nil means the XML should be built in the default scope,
  14. i.e no changes to the original tree structore. If the scope is provided then the resulting
  15. XML tree will be put under the root, which name is equal to the given scope value.
  16. */
  17. @property (nonatomic, nullable) NSString *scope;
  18. /**
  19. The list of attribute names to exclude from the resulting document.
  20. Passing nil means all the available attributes should be included
  21. */
  22. @property (nonatomic, nullable) NSArray<NSString *> *excludedAttributes;
  23. /**
  24. Allows to provide XML scope.
  25. @param scope See the property description above
  26. @return self instance for chaining
  27. */
  28. - (FBXMLGenerationOptions *)withScope:(nullable NSString *)scope;
  29. /**
  30. Allows to provide a list of excluded XML attributes.
  31. @param excludedAttributes See the property description above
  32. @return self instance for chaining
  33. */
  34. - (FBXMLGenerationOptions *)withExcludedAttributes:(nullable NSArray<NSString *> *)excludedAttributes;
  35. @end
  36. NS_ASSUME_NONNULL_END