Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * ====================================================================
  * Copyright (c) 2004-2006 TMate Software Ltd.  All rights reserved.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
  * are also available at http://svnkit.com/license.html
  * If newer versions of this license are posted there, you may use a
  * newer version instead, at your option.
 * ====================================================================
 */
package org.tmatesoft.svn.core.wc;
SVNPropertyData is a wrapper for both versioned and unversioned properties. This class represents the pair: property name - property value. Property managing methods of the SVNWCClient class use SVNPropertyData to wrap properties and dispatch them to handleProperty() methods of ISVNPropertyHandler for processing or simply return that 'properties object' as a target.

Author(s):
TMate Software Ltd.
Version:
1.1.0
See also:
ISVNPropertyHandler
SVNWCClient
public class SVNPropertyData {
    private String myValue;
    private String myName;
    
    
Constructs an SVNPropertyData given a property name and its value.

Parameters:
name a property name
data a property value
    public SVNPropertyData(String nameString data) {
         = name;
         = data;
        if ( != null && SVNProperty.isSVNProperty()) {
             = .replaceAll("\n", System.getProperty("line.separator"));
        }
    }
    
    
Gets the name of the property represented by this SVNPropertyData object.

Returns:
a property name
    public String getName() {
        return ;
    }
    
    
Gets the value of the property represented by this SVNPropertyData object.

Returns:
a property value
    public String getValue() {
        return ;
    }
New to GrepCode? Check out our FAQ X