com.atlassian.jira.functest.config.ps
Class ConfigPropertySetEntry

java.lang.Object
  extended by com.atlassian.jira.functest.config.ps.ConfigPropertySetEntry

public abstract class ConfigPropertySetEntry
extends Object

Represents an entry in a property set. Instances should be created through the static factory methods.

Since:
v4.0

Nested Class Summary
static class ConfigPropertySetEntry.Type
           
 
Constructor Summary
ConfigPropertySetEntry(String propertyName, ConfigPropertySetEntry.Type propertyType)
           
 
Method Summary
abstract  Boolean asBoolean()
           
abstract  Integer asInteger()
           
abstract  Long asLong()
           
abstract  Object asObject()
           
abstract  String asString()
           
static ConfigPropertySetEntry createBooleanEntry(String name, Boolean b)
           
static ConfigPropertySetEntry createIntegerEntry(String name, Integer value)
           
static ConfigPropertySetEntry createLongEntry(String name, Long value)
           
static ConfigPropertySetEntry createStringEntry(String name, String value)
           
static ConfigPropertySetEntry createTextEntry(String name, String value)
           
 boolean equals(Object o)
           
 String getPropertyName()
           
 ConfigPropertySetEntry.Type getPropertyType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigPropertySetEntry

public ConfigPropertySetEntry(String propertyName,
                              ConfigPropertySetEntry.Type propertyType)
Method Detail

getPropertyName

public String getPropertyName()

getPropertyType

public ConfigPropertySetEntry.Type getPropertyType()

asString

public abstract String asString()

asLong

public abstract Long asLong()

asBoolean

public abstract Boolean asBoolean()

asInteger

public abstract Integer asInteger()

asObject

public abstract Object asObject()

createStringEntry

public static ConfigPropertySetEntry createStringEntry(String name,
                                                       String value)

createTextEntry

public static ConfigPropertySetEntry createTextEntry(String name,
                                                     String value)

createIntegerEntry

public static ConfigPropertySetEntry createIntegerEntry(String name,
                                                        Integer value)

createLongEntry

public static ConfigPropertySetEntry createLongEntry(String name,
                                                     Long value)

createBooleanEntry

public static ConfigPropertySetEntry createBooleanEntry(String name,
                                                        Boolean b)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.