org.codeforamerica.open311.facade.data
Class AttributeInfo

java.lang.Object
  extended by org.codeforamerica.open311.facade.data.AttributeInfo
All Implemented Interfaces:
Serializable

public class AttributeInfo
extends Object
implements Serializable

Represents a single attribute of a service definition.

Author:
Santiago MunĂ­n
See Also:
Serialized Form

Nested Class Summary
static class AttributeInfo.Datatype
           
 
Constructor Summary
AttributeInfo(Boolean variable, String code, AttributeInfo.Datatype datatype, Boolean required, String datatypeDescription, Integer order, String description, Map<String,String> values)
           
 
Method Summary
 String getCode()
           
 AttributeInfo.Datatype getDatatype()
           
 String getDatatypeDescription()
           
 String getDescription()
           
 Integer getOrder()
           
 Map<String,String> getValues()
           
 Boolean isRequired()
           
 Boolean isVariable()
           
 String toString()
          Returns a string of the form ATTRIBUTE[key1][key2]...[keyN]=value1, value2,...valueN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeInfo

public AttributeInfo(Boolean variable,
                     String code,
                     AttributeInfo.Datatype datatype,
                     Boolean required,
                     String datatypeDescription,
                     Integer order,
                     String description,
                     Map<String,String> values)
Method Detail

isVariable

public Boolean isVariable()

getCode

public String getCode()

getDatatype

public AttributeInfo.Datatype getDatatype()

getOrder

public Integer getOrder()

getDescription

public String getDescription()

getValues

public Map<String,String> getValues()

isRequired

public Boolean isRequired()

getDatatypeDescription

public String getDatatypeDescription()

toString

public String toString()
Returns a string of the form ATTRIBUTE[key1][key2]...[keyN]=value1, value2,...valueN.

Overrides:
toString in class Object


Copyright © 2013 Code for America. All Rights Reserved.