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

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

public abstract class NestedField
extends Field

Abstract super class for hierarchical field types like XML and JSON.


Field Summary
protected  java.lang.String _label
           
protected  boolean _repeat
           
 
Fields inherited from class com.infoteria.asteria.flowbuilder2.stream.field.Field
_id, _owner, _type
 
Fields inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem
MAPPING_BOTH, MAPPING_INPUT, MAPPING_NONE, MAPPING_OUTPUT
 
Method Summary
 void assign(org.w3c.dom.Element el)
           
 void assignTo(org.w3c.dom.Element el)
           
 boolean equalsIgnoreId(Field f)
           
protected abstract  NestedField getAsNewField()
           
 int getDepth()
          深さを返します。
深さは文書要素が0で階層構造に従って大きくなります。
 java.lang.String getLabel()
          ラベルを返します。
 java.lang.String getString(java.lang.String name)
          項目名に対応する値を文字列で返します。
 boolean isExpand()
          このノードがGUI上で展開されているかどうかを返します。
 boolean isRepeat()
          フィールドに繰り返しがあるかどうかを返します。
 void setExpand(boolean b)
          このノードがGUI上で展開されているかどうかを設定します。
 javax.swing.undo.UndoableEdit setLabel(java.lang.String s)
          ラベルを設定します。
 javax.swing.undo.UndoableEdit setRepeat(boolean b)
          フィールドに繰り返しがあるかどうかを設定します。
 
Methods inherited from class com.infoteria.asteria.flowbuilder2.stream.field.Field
clone, clone, equals, getCanonicalName, getDescription, getDisplayName, getId, getName, getType, isVisible, setDescription, setName, setType, 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

_repeat

protected boolean _repeat

_label

protected java.lang.String _label
Method Detail

getAsNewField

protected abstract NestedField getAsNewField()

getDepth

public int getDepth()
深さを返します。
深さは文書要素が0で階層構造に従って大きくなります。

isRepeat

public boolean isRepeat()
フィールドに繰り返しがあるかどうかを返します。

setRepeat

public javax.swing.undo.UndoableEdit setRepeat(boolean b)
フィールドに繰り返しがあるかどうかを設定します。

getLabel

public java.lang.String getLabel()
ラベルを返します。

setLabel

public javax.swing.undo.UndoableEdit setLabel(java.lang.String s)
ラベルを設定します。

isExpand

public boolean isExpand()
このノードがGUI上で展開されているかどうかを返します。

setExpand

public void setExpand(boolean b)
このノードがGUI上で展開されているかどうかを設定します。

assignTo

public void assignTo(org.w3c.dom.Element el)
Description copied from class: Field
フィールドの内容を要素に書き出します。
Overrides:
assignTo in class Field

assign

public void assign(org.w3c.dom.Element el)
Description copied from class: Field
フィールドの内容を要素から読み出します。
Overrides:
assign in class Field

equalsIgnoreId

public boolean equalsIgnoreId(Field f)
Description copied from class: Field
IDの違いを無視してフィールドを比較します。
Overrides:
equalsIgnoreId in class Field

getString

public java.lang.String getString(java.lang.String name)
項目名に対応する値を文字列で返します。
Overrides:
getString in class Field