org.zeroexchange.representation
Class AbstractRepresentation<T>

java.lang.Object
  extended by org.zeroexchange.representation.AbstractRepresentation<T>
All Implemented Interfaces:
Representation<T>, RepresentationFactoryAware
Direct Known Subclasses:
CollectionRepresentation, ContractRepresentation, DefaultValueRepresentation, LocalizableValueRepresentation, ResourceRepresentation, UserRepresentation, ValueRepresentation

public abstract class AbstractRepresentation<T>
extends Object
implements Representation<T>, RepresentationFactoryAware

The abstract class for entity representation services.

Author:
black

Field Summary
 
Fields inherited from interface org.zeroexchange.representation.Representation
UNLIMITED
 
Constructor Summary
AbstractRepresentation()
           
 
Method Summary
protected  RepresentationFactory getRepresentatinFactory()
          Returns representation factory.
protected  String limitValue(String valueSpec, int limit)
          Limits the value.
 void setRepresentationFactory(RepresentationFactory representationFactory)
          Sets entity representation factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.representation.Representation
getRepresentation
 

Constructor Detail

AbstractRepresentation

public AbstractRepresentation()
Method Detail

setRepresentationFactory

public void setRepresentationFactory(RepresentationFactory representationFactory)
Sets entity representation factory.

Specified by:
setRepresentationFactory in interface RepresentationFactoryAware

getRepresentatinFactory

protected RepresentationFactory getRepresentatinFactory()
Returns representation factory.


limitValue

protected String limitValue(String valueSpec,
                            int limit)
Limits the value.



Copyright © 2013. All Rights Reserved.