com.funambol.syncml.protocol
Class SourceRef

java.lang.Object
  extended by com.funambol.syncml.protocol.SourceRef

public class SourceRef
extends java.lang.Object

This class represents the <SourceRef> element as defined by the SyncML representation specifications


Constructor Summary
SourceRef()
          In order to expose the server configuration like WS this constructor must be public
SourceRef(Source source)
          Creates a new SourceRef object from an existing Source.
SourceRef(java.lang.String value)
          Creates a new SourceRef object given the referenced value.
 
Method Summary
 Source getSource()
          Gets the Source property
 java.lang.String getValue()
          Returns the value
 void setSource(Source source)
          Sets the Source property
 void setValue(java.lang.String value)
          Sets the reference value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceRef

public SourceRef()
In order to expose the server configuration like WS this constructor must be public


SourceRef

public SourceRef(java.lang.String value)
Creates a new SourceRef object given the referenced value. A null value is considered an empty string

Parameters:
value - the referenced value - NULL ALLOWED
Throws:
java.lang.IllegalArgumentException - if value is null

SourceRef

public SourceRef(Source source)
Creates a new SourceRef object from an existing Source.

Parameters:
source - the source to extract the reference from - NOT NULL
Throws:
java.lang.IllegalArgumentException - if source is null
Method Detail

getValue

public java.lang.String getValue()
Returns the value

Returns:
the value

setValue

public void setValue(java.lang.String value)
Sets the reference value. If value is null, the empty string is adopted.

Parameters:
value - the reference value - NULL

getSource

public Source getSource()
Gets the Source property

Returns:
source the Source object property

setSource

public void setSource(Source source)
Sets the Source property

Parameters:
source - the Source object property - NOT NULL


Copyright © 2001-2009 Funambol.