org.ujoframework.core
Class UjoService<UJO extends Ujo>

java.lang.Object
  extended by org.ujoframework.core.UjoService<UJO>
Direct Known Subclasses:
UjoManagerCSV, UjoManagerRBundle, UjoManagerXML

public abstract class UjoService<UJO extends Ujo>
extends java.lang.Object

A Core of a UjoService.

Author:
Pavel Ponec

Field Summary
static java.lang.String UNDEFINED
          Undefined text VALUE
static java.nio.charset.Charset UTF_8
          Charset UTF-8
 
Constructor Summary
UjoService(java.lang.Class<UJO> ujoClass)
          Creates a new instance of UjoService
UjoService(java.lang.Class<UJO> ujoClass, UjoProperty... properties)
          Creates a new instance of UjoService
 
Method Summary
protected  java.io.InputStream getInputStream(java.io.File file)
          Create a Buffered Input Stream.
protected  java.io.OutputStream getOutputStream(java.io.File file)
          Create a Buffered Output Stream.
 UjoProperty[] getProperties()
          Get required properties
 java.lang.String getText(UJO ujo, UjoProperty<? super Ujo,?> prop, java.lang.Object value, UjoAction action)
          Returns TEXT
 java.lang.Class<UJO> getUjoClass()
          Returns BASIC class
 UjoManager getUjoManager()
           
 boolean isTextable()
          Returns a TRUE value if attribute ujoClass is textable.
 void setText(UJO ujo, UjoProperty prop, java.lang.Class type, java.lang.String value, UjoAction action)
          Returns TEXT
 UjoService setUjoManager(UjoManager ujoManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final java.lang.String UNDEFINED
Undefined text VALUE


UTF_8

public static final java.nio.charset.Charset UTF_8
Charset UTF-8

Constructor Detail

UjoService

public UjoService(java.lang.Class<UJO> ujoClass)
Creates a new instance of UjoService


UjoService

public UjoService(java.lang.Class<UJO> ujoClass,
                  UjoProperty... properties)
Creates a new instance of UjoService

Method Detail

getUjoClass

public final java.lang.Class<UJO> getUjoClass()
Returns BASIC class


isTextable

public final boolean isTextable()
Returns a TRUE value if attribute ujoClass is textable.


getUjoManager

public final UjoManager getUjoManager()

setUjoManager

public UjoService setUjoManager(UjoManager ujoManager)

getProperties

public UjoProperty[] getProperties()
Get required properties


getText

public java.lang.String getText(UJO ujo,
                                UjoProperty<? super Ujo,?> prop,
                                java.lang.Object value,
                                UjoAction action)
Returns TEXT


setText

public void setText(UJO ujo,
                    UjoProperty prop,
                    java.lang.Class type,
                    java.lang.String value,
                    UjoAction action)
Returns TEXT


getOutputStream

protected java.io.OutputStream getOutputStream(java.io.File file)
                                        throws java.io.FileNotFoundException
Create a Buffered Output Stream.

Throws:
java.io.FileNotFoundException

getInputStream

protected java.io.InputStream getInputStream(java.io.File file)
                                      throws java.io.FileNotFoundException
Create a Buffered Input Stream.

Throws:
java.io.FileNotFoundException


Copyright © 2010. All Rights Reserved.