net.sf.ofx4j.io
Class AggregateAttribute

java.lang.Object
  extended by net.sf.ofx4j.io.AggregateAttribute
All Implemented Interfaces:
java.lang.Comparable<AggregateAttribute>

public class AggregateAttribute
extends java.lang.Object
implements java.lang.Comparable<AggregateAttribute>

A generic descriptor for an attribute of an OFX aggregate.

Author:
Ryan Heaton

Nested Class Summary
static class AggregateAttribute.Type
           
 
Method Summary
 int compareTo(AggregateAttribute other)
           
 java.lang.Object get(java.lang.Object instance)
           
 java.lang.Class getAttributeType()
           
 java.lang.String getName()
           
 int getOrder()
           
 AggregateAttribute.Type getType()
           
 boolean isCollection()
           
 boolean isRequired()
           
protected  java.util.Collection newCollectionInstance()
           
 void set(java.lang.Object value, java.lang.Object instance)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public java.lang.Object get(java.lang.Object instance)
                     throws java.lang.Exception
Throws:
java.lang.Exception

set

public void set(java.lang.Object value,
                java.lang.Object instance)
         throws java.lang.Exception
Throws:
java.lang.Exception

newCollectionInstance

protected java.util.Collection newCollectionInstance()

getAttributeType

public java.lang.Class getAttributeType()

getName

public java.lang.String getName()

isRequired

public boolean isRequired()

getOrder

public int getOrder()

getType

public AggregateAttribute.Type getType()

compareTo

public int compareTo(AggregateAttribute other)
Specified by:
compareTo in interface java.lang.Comparable<AggregateAttribute>

isCollection

public boolean isCollection()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.