com.infoteria.asteria.flowlibrary2.property
クラス EncodingProperty

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.property.ValueProperty
        |
        +--com.infoteria.asteria.flowlibrary2.property.StringProperty
              |
              +--com.infoteria.asteria.flowlibrary2.property.EncodingProperty
すべての実装インタフェース:
Cloneable, Property

public class EncodingProperty
extends StringProperty

StringPropertyを拡張してEncodingの設定に特化したクラスです。


フィールドの概要
static String STR_AUTODETECT
           
static String STR_PLATFORM
           
 
コンストラクタの概要
EncodingProperty(String name)
          EncodingProperty(name, false, true, null) と同じです。
EncodingProperty(String name, boolean required)
          EncodingProperty(name, required, true, null) と同じです。
EncodingProperty(String name, boolean required, boolean mapable)
          EncodingProperty(name, required, mapable, null) と同じです。
EncodingProperty(String name, boolean required, boolean mapable, String value)
          コンストラクタ
 
メソッドの概要
 String getEncoding()
          strValueを解釈してエンコーディング名を返します。
 boolean isAutoDetect()
          設定値が"(AutoDetect)"の場合にtrueを返します。
 boolean isPlatform()
          設定値が"(Platform)"の場合にtrueを返します。
 
クラス com.infoteria.asteria.flowlibrary2.property.StringProperty から継承したメソッド
setValue, strValue
 
クラス com.infoteria.asteria.flowlibrary2.property.ValueProperty から継承したメソッド
assign, clone, getName, getType, getValue, getValueType, init, isMapable, isNull, isRequired, setRequired, setString, toString
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

STR_AUTODETECT

public static final String STR_AUTODETECT

STR_PLATFORM

public static final String STR_PLATFORM
コンストラクタの詳細

EncodingProperty

public EncodingProperty(String name)
EncodingProperty(name, false, true, null) と同じです。

EncodingProperty

public EncodingProperty(String name,
                        boolean required)
EncodingProperty(name, required, true, null) と同じです。

EncodingProperty

public EncodingProperty(String name,
                        boolean required,
                        boolean mapable)
EncodingProperty(name, required, mapable, null) と同じです。

EncodingProperty

public EncodingProperty(String name,
                        boolean required,
                        boolean mapable,
                        String value)
コンストラクタ
パラメータ:
name - プロパティ名
required - このプロパティが必須プロパティの場合はtrue
mapable - このプロパティがMapping可能な場合はtrue
value - デフォルト値
メソッドの詳細

isAutoDetect

public boolean isAutoDetect()
設定値が"(AutoDetect)"の場合にtrueを返します。

isPlatform

public boolean isPlatform()
設定値が"(Platform)"の場合にtrueを返します。

getEncoding

public String getEncoding()
strValueを解釈してエンコーディング名を返します。
strValueが"(AutoDetect)"の場合は"JISAutoDetect"を返します。
strValueが"(Platform)"の場合はnullを返します。
strValueが設定されていない場合は"us-ascii"を返します。
それ以外の場合はstrValueを返します。
strValueがエンコーディング名として正当かどうかはチェックされません。