You are here

getTitle

public String getTitle() returns the title of the site.

Parameters

None

Returns

Returns a string representing the title of the site.

Example


    SiteService ss = session.getServiceRegistry()
    		.getSiteService();		
    
    Site site = ss.getSite("testsite");
    
    Log.d(TAG, "getDescription: " + site.getDescription());
    Log.d(TAG, "getShortName: " + site.getShortName());
    Log.d(TAG, "getTitle: " + site.getTitle());
    Log.d(TAG, "getVisibility: " + site.getVisibility().value());

    

Would result in output such as the following:


    getDescription: This is a very cool site!
    getShortName: testsite
    getTitle: TestSite
    getVisibility: MODERATED