com.infoteria.asteria.flowbuilder2.stream.field
クラス FieldDefinition

java.lang.Object
  |
  +--com.infoteria.asteria.flowbuilder2.stream.field.FieldDefinition
すべての実装インタフェース:
Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingHolder
直系の既知のサブクラス:
FixedLengthFieldDefinition, SingleFieldDefinition, XMLFieldDefinition

public class FieldDefinition
extends Object
implements Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingHolder

フィールド定義です。


フィールドの概要
protected  Vector _list
           
static String A_NAME
           
static String COLNAME_DESC
           
static String COLNAME_NAME
           
static String COLNAME_TYPE
           
static String E_FIELD
           
static String TYPE_FIXED
           
static String TYPE_RECORD
           
static String TYPE_SINGLE
           
static String TYPE_VARIABLE
           
static String TYPE_XML
           
 
コンストラクタの概要
FieldDefinition()
           
FieldDefinition(FieldType[] acceptTypes)
           
 
メソッドの概要
 UndoableEdit add(Field f)
          フィールドを追加します。
 void addFieldDefinitionListener(FieldDefinitionListener l)
           
 void addReadOnlyColumn(String columnName)
          指定された列を編集不可に設定します。
 void assign(Element el)
          要素からFeildDefinitonの内容を読み出し自分に反映します。
 void assignTo(Element el)
          FeildDefinitonの内容を要素に書き出します。
 void beginUpdate()
           
 boolean canMoveDown(Field f)
          フィールドが下に移動可能かどうかを返します。
 boolean canMoveUp(Field f)
          フィールドが上に移動可能かどうかを返します。
 Object clone()
          FeildDefinitonを複製します。
 boolean containsName(String name)
          指定の名前のフィールドがあるかどうかを返します。
 Field createField(String name)
          FeildDefinitonのクラスに対応したフィールドを作成します。
 Field createField(String name, FieldType type)
          FeildDefinitonのクラスに対応したフィールドを作成します。
 UndoableEdit endUpdate(UndoableEdit undo)
           
 boolean equals(Object o)
           
 UndoableEdit fireEvent(int id, Field f, int index, UndoableEdit undo, Object old)
           
 UndoableEdit fireEvent(int id, Field f, UndoableEdit undo, Object old)
           
 FieldType[] getAcceptTypes()
          設定可能なフィールドのデータ型を返します。
 Field getField(int idx)
          idx番目のフィールドを返します。
 Field getField(String name)
          指定の名前のフィールドを返します。
 Field getFieldById(String id)
          指定のIDのフィールドを返します。
 FieldDefinitionListener[] getFieldDefinitionListeners()
           
 Icon getFieldIcon()
           
 com.infoteria.asteria.flowbuilder2.mapper.MappingItem getMappingItem(int idx)
           
 int getMappingItemCount()
           
 FieldTableModel getModel()
           
 String getName()
          フィールド定義の名前を返します。
 String getNameLabel()
           
 String getType()
          フィールド定義の種別を返します。
 UndoableEdit importFieldDefinition(FieldDefinition fd)
          importFieldDefinition(fd, false)と同じです。
 UndoableEdit importFieldDefinition(FieldDefinition fd, boolean keepFieldId)
          別のFeildDefinitonの内容をインポートします。
 UndoableEdit importFieldDefinition(FieldDefinition fd, boolean keepFieldId, String oldName)
           
 int indexOf(Field f)
          指定のフィールドの位置を返します。
 int indexOfName(String name)
          指定の名前を持つフィールドの位置を返します。
 UndoableEdit insert(Field f, int idx)
          フィールドを挿入します。
 boolean isAcceptType(FieldType ft)
          指定のフィールドデータ型が設定可能かどうかを返します。
 boolean isExportSupport(com.infoteria.asteria.flowbuilder2.stream.field.io.IOType type)
           
 boolean isImportSupport(com.infoteria.asteria.flowbuilder2.stream.field.io.IOType type)
           
 boolean isNameLock()
          Name列が編集可能かどうかを返します。
 boolean isReadOnlyColumn(String columnName)
          指定された列が編集可能かどうかを返します。
 boolean isSerializeFieldId()
           
 boolean isUserDefinable()
           
 UndoableEdit moveDown(Field f)
          フィールドを下に移動します。
 UndoableEdit moveUp(Field f)
          フィールドを上に移動します。
 UndoableEdit remove(Field f)
          フィールドを削除します。
 UndoableEdit remove(int idx)
          フィールドを削除します。
 UndoableEdit remove(int start, int end)
          指定の範囲のフィールドを削除します。
 void removeFieldDefinitionListener(FieldDefinitionListener l)
           
 void removeReadOnlyColumn(String columnName)
          指定された列を編集可能に設定します。
 void setAcceptTypes(FieldType[] types)
          設定可能なフィールドのデータ型を設定します。
 void setFieldIcon(Icon icon)
           
 void setName(String name)
          フィールド定義の名前を設定します。
 void setSerializeFieldId(boolean b)
           
 int size()
          フィールド数を返します。
 com.infoteria.asteria.flowbuilder2.stream.field.io.IOType[] supportExportTypes()
           
 com.infoteria.asteria.flowbuilder2.stream.field.io.IOType[] supportImportTypes()
           
 void validate()
          フィールド定義が不正でないかどうかをチェックします。
 boolean validName(String name)
          フィールド名が正当かどうかを返します。
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TYPE_RECORD

public static final String TYPE_RECORD

TYPE_SINGLE

public static final String TYPE_SINGLE

TYPE_FIXED

public static final String TYPE_FIXED

TYPE_XML

public static final String TYPE_XML

TYPE_VARIABLE

public static final String TYPE_VARIABLE

COLNAME_NAME

public static final String COLNAME_NAME

COLNAME_TYPE

public static final String COLNAME_TYPE

COLNAME_DESC

public static final String COLNAME_DESC

E_FIELD

public static final String E_FIELD

A_NAME

public static final String A_NAME

_list

protected Vector _list
コンストラクタの詳細

FieldDefinition

public FieldDefinition()

FieldDefinition

public FieldDefinition(FieldType[] acceptTypes)
メソッドの詳細

getType

public String getType()
フィールド定義の種別を返します。

getName

public String getName()
フィールド定義の名前を返します。
定義:
インタフェース com.infoteria.asteria.flowbuilder2.mapper.MappingHolder 内の getName

setName

public void setName(String name)
フィールド定義の名前を設定します。

getNameLabel

public String getNameLabel()

isUserDefinable

public boolean isUserDefinable()

isReadOnlyColumn

public boolean isReadOnlyColumn(String columnName)
指定された列が編集可能かどうかを返します。

addReadOnlyColumn

public void addReadOnlyColumn(String columnName)
指定された列を編集不可に設定します。

removeReadOnlyColumn

public void removeReadOnlyColumn(String columnName)
指定された列を編集可能に設定します。

isNameLock

public boolean isNameLock()
Name列が編集可能かどうかを返します。

getAcceptTypes

public FieldType[] getAcceptTypes()
設定可能なフィールドのデータ型を返します。

setAcceptTypes

public void setAcceptTypes(FieldType[] types)
設定可能なフィールドのデータ型を設定します。

isAcceptType

public boolean isAcceptType(FieldType ft)
指定のフィールドデータ型が設定可能かどうかを返します。

add

public UndoableEdit add(Field f)
フィールドを追加します。

insert

public UndoableEdit insert(Field f,
                           int idx)
フィールドを挿入します。

remove

public UndoableEdit remove(Field f)
フィールドを削除します。

remove

public UndoableEdit remove(int idx)
フィールドを削除します。

remove

public UndoableEdit remove(int start,
                           int end)
指定の範囲のフィールドを削除します。

canMoveUp

public boolean canMoveUp(Field f)
フィールドが上に移動可能かどうかを返します。

moveUp

public UndoableEdit moveUp(Field f)
フィールドを上に移動します。

canMoveDown

public boolean canMoveDown(Field f)
フィールドが下に移動可能かどうかを返します。

moveDown

public UndoableEdit moveDown(Field f)
フィールドを下に移動します。

size

public int size()
フィールド数を返します。

getField

public Field getField(int idx)
idx番目のフィールドを返します。

getField

public Field getField(String name)
指定の名前のフィールドを返します。

getFieldById

public Field getFieldById(String id)
指定のIDのフィールドを返します。

getModel

public FieldTableModel getModel()

indexOf

public int indexOf(Field f)
指定のフィールドの位置を返します。

indexOfName

public int indexOfName(String name)
指定の名前を持つフィールドの位置を返します。

containsName

public boolean containsName(String name)
指定の名前のフィールドがあるかどうかを返します。

createField

public Field createField(String name)
FeildDefinitonのクラスに対応したフィールドを作成します。

createField

public Field createField(String name,
                         FieldType type)
FeildDefinitonのクラスに対応したフィールドを作成します。

isImportSupport

public boolean isImportSupport(com.infoteria.asteria.flowbuilder2.stream.field.io.IOType type)

isExportSupport

public boolean isExportSupport(com.infoteria.asteria.flowbuilder2.stream.field.io.IOType type)

supportImportTypes

public com.infoteria.asteria.flowbuilder2.stream.field.io.IOType[] supportImportTypes()

supportExportTypes

public com.infoteria.asteria.flowbuilder2.stream.field.io.IOType[] supportExportTypes()

validName

public boolean validName(String name)
フィールド名が正当かどうかを返します。

validate

public void validate()
              throws Exception
フィールド定義が不正でないかどうかをチェックします。
不正がある場合はExceptionとなります。

clone

public Object clone()
FeildDefinitonを複製します。
オーバーライド:
クラス Object 内の clone

equals

public boolean equals(Object o)
オーバーライド:
クラス Object 内の equals

assignTo

public void assignTo(Element el)
FeildDefinitonの内容を要素に書き出します。

assign

public void assign(Element el)
要素からFeildDefinitonの内容を読み出し自分に反映します。

getMappingItemCount

public int getMappingItemCount()
定義:
インタフェース com.infoteria.asteria.flowbuilder2.mapper.MappingHolder 内の getMappingItemCount

getMappingItem

public com.infoteria.asteria.flowbuilder2.mapper.MappingItem getMappingItem(int idx)
定義:
インタフェース com.infoteria.asteria.flowbuilder2.mapper.MappingHolder 内の getMappingItem

addFieldDefinitionListener

public void addFieldDefinitionListener(FieldDefinitionListener l)

removeFieldDefinitionListener

public void removeFieldDefinitionListener(FieldDefinitionListener l)

getFieldDefinitionListeners

public FieldDefinitionListener[] getFieldDefinitionListeners()

beginUpdate

public void beginUpdate()

endUpdate

public UndoableEdit endUpdate(UndoableEdit undo)

fireEvent

public UndoableEdit fireEvent(int id,
                              Field f,
                              UndoableEdit undo,
                              Object old)

fireEvent

public UndoableEdit fireEvent(int id,
                              Field f,
                              int index,
                              UndoableEdit undo,
                              Object old)

isSerializeFieldId

public boolean isSerializeFieldId()

setSerializeFieldId

public void setSerializeFieldId(boolean b)

importFieldDefinition

public UndoableEdit importFieldDefinition(FieldDefinition fd,
                                          boolean keepFieldId,
                                          String oldName)

importFieldDefinition

public UndoableEdit importFieldDefinition(FieldDefinition fd,
                                          boolean keepFieldId)
別のFeildDefinitonの内容をインポートします。
パラメータ:
fd - フィールド定義
keepFieldId - フィールド名が同じ場合はIDをキープするかどうか

importFieldDefinition

public UndoableEdit importFieldDefinition(FieldDefinition fd)
importFieldDefinition(fd, false)と同じです。

getFieldIcon

public Icon getFieldIcon()

setFieldIcon

public void setFieldIcon(Icon icon)