Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* *********************************************************************
   * This Source Code Form is subject to the terms of the Mozilla Public
   * License, v. 2.0.
   * 
   * If a copy of the MPL was not distributed with this file, You can obtain
   * one at http://mozilla.org/MPL/2.0/.
   * 
   * This Source Code Form is "Incompatible With Secondary Licenses", as
   * defined by the Mozilla Public License, v. 2.0.
  * ********************************************************************* */
 package fiftyone.mobile.detection;

Describes a name that can be assigned to a property.

Author(s):
51Degrees.mobi
Version:
2.2.8.9
 
 public class PropertyValue {

    
The String index of the name.
 
     private int _nameStringIndex = -1;
    
The String name.
 
     private String _name;
    
A description of the name.
 
     private String _description;
    
A url to more information about the name.
 
     private String _url;
    
The provider the property or value is associated with.
 
     private Provider _provider;

    
Constructs an instance of Property Value.

Parameters:
provider The provider the property was created from.
name The String name.
 
     PropertyValue(final Provider providerfinal String name) {
          = provider;
          = name;
     }

    
Constructs an instance of Property Value.

Parameters:
provider The provider the property was created from.
name The String name.
description The description of the name.
 
     PropertyValue(
             final Provider provider
             final String name
             final String description) {
         this(providername);
          = description;
     }

    
Constructs an instance of Property Value.

Parameters:
provider The provider the property was created from.
name The String name.
description The description of the name.
url An optional URL linking to more information about the name.
 
     PropertyValue(
             final Provider provider
             final String name
             final String description
             final String url) {
         this(providernamedescription);
          = url;
     }

    

Returns:
The String index of the name.
 
     public int getNameStringIndex() {
         if ( < 0) {
              = .getStrings().add(getName());
         }
         return ;
     }

    

Returns:
The String name.
    public String getName() {
        return ;
    }

    

Returns:
A description of the name.
    public String getDescription() {
        return ;
    }

    

Returns:
A url to more information about the name.
    public String getUrl() {
        return ;
    }

    

Returns:
The provider the property or value is associated with.
    public Provider getProvider() {
        return ;
    }
New to GrepCode? Check out our FAQ X