Attr.h 1007 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. SVG-DOM, via Core DOM:
  3. http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-637646024
  4. interface Attr : Node {
  5. readonly attribute DOMString name;
  6. readonly attribute boolean specified;
  7. attribute DOMString value;
  8. // raises(DOMException) on setting
  9. // Introduced in DOM Level 2:
  10. readonly attribute Element ownerElement;
  11. };
  12. */
  13. #import <Foundation/Foundation.h>
  14. /** objc won't allow this: @class Node;*/
  15. #import "Node.h"
  16. @class Element;
  17. @interface Attr : Node
  18. /*! NB: The official DOM spec FAILS TO SPECIFY what the value of "name" is */
  19. @property(nonatomic,strong,readonly) NSString* name;
  20. @property(nonatomic,readonly) BOOL specified;
  21. @property(nonatomic,strong,readonly) NSString* value;
  22. // Introduced in DOM Level 2:
  23. @property(nonatomic,strong,readonly) Element* ownerElement;
  24. #pragma mark - ObjC methods
  25. - (id)initWithName:(NSString*) n value:(NSString*) v;
  26. - (id)initWithNamespace:(NSString*) ns qualifiedName:(NSString*) qn value:(NSString*) v;
  27. @end