com.infoteria.asteria.flowbuilder2.stream.field
Class Field

java.lang.Object
  |
  +--com.infoteria.asteria.flowbuilder2.stream.field.Field
All Implemented Interfaces:
Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingItem
Direct Known Subclasses:
FieldFixedLength, FieldXML

public class Field
extends Object
implements Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingItem

フィールド定義のフィールドを表すクラスです。


Field Summary
protected  String _id
           
protected  FieldDefinition _owner
           
protected  FieldType _type
           
 
Fields inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem
MAPPING_BOTH, MAPPING_INPUT, MAPPING_NONE, MAPPING_OUTPUT
 
Constructor Summary
  Field(Field f)
          コピーコンストラクタ。
作成されたFieldはIDも同じになります。
  Field(String name, FieldType type)
          フィールド名とデータ型を指定してFieldを作成します
protected Field(String name, FieldType type, String id)
          フィールド名とデータ型とIDを指定してFieldを作成します
 
Method Summary
 void assign(Element el)
          フィールドの内容を要素から読み出します。
 void assignTo(Element el)
          フィールドの内容を要素に書き出します。
 Object clone()
          clone(false)と同じです。
 Object clone(boolean keepId)
          フィールドを複製します。
 boolean equals(Object o)
           
 boolean equalsIgnoreId(Field f)
          IDの違いを無視してフィールドを比較します。
 String getCanonicalName()
          フィールドの正規名を返します。
 String getDescription()
          フィールドの説明を返します。
 String getDisplayName()
          フィールドの表示名を返します。FieldXML以外ではフィールド名と同じです。
 String getId()
           
 String getName()
          フィールド名を返します。
 String getString(String name)
          項目名に対応する値を文字列で返します。
 FieldType getType()
          データ型を返します。
 boolean isVisible()
          フィールドが可視であるかどうかを返します。
 UndoableEdit setDescription(String desc)
          フィールドの説明を設定します。
 UndoableEdit setName(String name)
          フィールド名を設定します。
 UndoableEdit setType(FieldType type)
          データ型を設定します。
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem
getIcon, getMappingType, isIgnoreSerialize
 

Field Detail

_type

protected FieldType _type

_id

protected String _id

_owner

protected FieldDefinition _owner
Constructor Detail

Field

public Field(String name,
             FieldType type)
フィールド名とデータ型を指定してFieldを作成します

Field

protected Field(String name,
                FieldType type,
                String id)
フィールド名とデータ型とIDを指定してFieldを作成します

Field

public Field(Field f)
コピーコンストラクタ。
作成されたFieldはIDも同じになります。
Method Detail

isVisible

public boolean isVisible()
フィールドが可視であるかどうかを返します。
Specified by:
isVisible in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

getName

public String getName()
フィールド名を返します。
Specified by:
getName in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

getDisplayName

public String getDisplayName()
フィールドの表示名を返します。FieldXML以外ではフィールド名と同じです。
Specified by:
getDisplayName in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

setName

public UndoableEdit setName(String name)
フィールド名を設定します。

getType

public FieldType getType()
データ型を返します。

setType

public UndoableEdit setType(FieldType type)
データ型を設定します。

getId

public String getId()
Specified by:
getId in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

toString

public String toString()
Overrides:
toString in class Object

assignTo

public void assignTo(Element el)
フィールドの内容を要素に書き出します。

assign

public void assign(Element el)
フィールドの内容を要素から読み出します。

clone

public Object clone(boolean keepId)
フィールドを複製します。
Parameters:
keepId - IDを維持するかどうか

clone

public Object clone()
clone(false)と同じです。
Overrides:
clone in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

equalsIgnoreId

public boolean equalsIgnoreId(Field f)
IDの違いを無視してフィールドを比較します。

getDescription

public String getDescription()
フィールドの説明を返します。

setDescription

public UndoableEdit setDescription(String desc)
フィールドの説明を設定します。

getCanonicalName

public String getCanonicalName()
フィールドの正規名を返します。

getString

public String getString(String name)
項目名に対応する値を文字列で返します。