SVN::Dumpfile::Node::Properties - Represents the properties of a node in a Subversion dumpfile.
Objects of this class are used in SVN::Dumpfile::Node objects, but can also be used independently for manipulating Subversion revision property files.
use SVN::Dumpfile::Node:Properties; my $prop = new SVN::Dumpfile::Node::Properties; $prop->load('filename'); ... $prop->save('filename');
Returns a new SVN::Dumpfile::Node::Properties object. Properties can be given as hash reference, array reference or as a list. Array or list must be even an hold key/value pairs and must be used if the order of the given properties should be maintained.
Returns the number of properties.
Adds the property with the given value at given position or at the end. Order of properties is maintained to support the creation of identical output files.
Deletes a property from the instance. Note if the properties are written in differential form the property will retrain its value from the last changed revision when not written. Use mark_deleted() to mark the property as deleted in this case.
Marks a property as deleted. This is for differential property blocks which are only supported in dumpfile version 3 or later. It automatically calls del() on the property.
Unmarks a property as deleted. This is for differential property blocks which are only supported in dumpfile version 3 or later. The property is not added to the node, use add() to do this.
Returns if a property is marked as deleted. See also mark_deleted().
Returns an array of all properties currently marked as deleted. See also mark_deleted.
Internal method to parse single property format element from string. The element is removed from the string and returned as (ID, value) pair.
Reads the properties from string by repeatly calling parse().
Reads <length> bytes from filehandle and parses them as properties by calling from_string().
Writes the properties in subversion dumpfile format to the given filehandle.
Loads the properties from a subversion revision property file.
Saves the properties to a subversion revision property file.
Returns the length of the string returned by as_string().
Returns all properties as one string formatted in the format needed for subversion dumpfiles. If a true value is given as argument the format is that of subversion revision property files is used ('END' instead of 'PROPS-END').