com.funambol.syncml.protocol
Class Source

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

public class Source
extends java.lang.Object

This class represents to the <Source> s defined by the SyncML representation specifications


Constructor Summary
Source()
          For serialization purposes
Source(java.lang.String locURI)
          Creates a new Source object given its URI
Source(java.lang.String locURI, java.lang.String locName)
          Creates a new Source object given its URI and display name.
 
Method Summary
 java.lang.String getLocName()
          Returns the source display name
 java.lang.String getLocURI()
          Returns the source URI value
 void setLocName(java.lang.String locName)
          Sets the local name property
 void setLocURI(java.lang.String locURI)
          Sets the source URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source()
For serialization purposes


Source

public Source(java.lang.String locURI,
              java.lang.String locName)
Creates a new Source object given its URI and display name.

Parameters:
locURI - the source URI - NOT NULL
locName - the source display name - NULL ALLOWED
Throws:
java.lang.IllegalArgumentException - if logURI is null.

Source

public Source(java.lang.String locURI)
Creates a new Source object given its URI

Parameters:
locURI - the source URI - NOT NULL
Throws:
java.lang.IllegalArgumentException - if logURI is null.
Method Detail

getLocURI

public java.lang.String getLocURI()
Returns the source URI value

Returns:
the source URI value

setLocURI

public void setLocURI(java.lang.String locURI)
Sets the source URI

Parameters:
locURI - the source URI - NOT NULL
Throws:
java.lang.IllegalArgumentException - if locURI is null

getLocName

public java.lang.String getLocName()
Returns the source display name

Returns:
the source display name

setLocName

public void setLocName(java.lang.String locName)
Sets the local name property

Parameters:
locName - the local name property


Copyright © 2001-2009 Funambol.