public class InsertionTag extends HTMLComponent
leader | タグ前置文字列。leading string. |
follower | タグ後置文字列。following string. |
default | デフォルトタグ値。 タグが値をセットされていない、つまりnullの場合いこの値を使用する。 default tag value. when the tag doesn't have any value, i.e. null, this value will be used. |
#default | leader/folllowerを伴わないデフォルトタグ値。default tag value without the leader or the follower. |
#empty | 空文字列の代替値。 セットされた値が空文字列の場合にこの値を使用する。 alternative value for the empty string value. when the tag has a string value whose length is 0, this value will be used. |
element_separator | addTagValueでオブジェクトを追加する場合の要素区切り。プロパティInsertionTag.ElementSeparatorでも指定可能。 separator for the elements added by addTagValue. can be defined by the property InsertionTag.ElementSeparator |
elements_limit | addTagValueでオブジェクトを追加できる、最大要素数。-1なら無制限。プロパティInsertionTag.ElementsLimitでも指定可能。 limit for the number of elements added by addTagValue. -1 means "NO LIMIT". can be defined by the property InsertionTag.ElementsLimit |
decode | trueの場合、セットされる値を属性でマップされた値にデコードしてからセットする。デコード値が見つからない場合は、セットされない。 When true, the value will be decoded with the attribute. If the decoded value is not defined, the value will be discarded. |
discard_on_decode_failure | decode=trueでデコードに失敗した場合には値をセットしない。この属性のデフォルトはtrue。 When true, the value will be discarded on decode failure with "decode=true". The default value of this attribute is true. |
join | trueの場合、getOriginalStringAsTemplate、getAttributeAsTemplateで取得されたHTMLTemplateインスタンスが、 タグの親テンプレートと連携する。デフォルトはfalse。When true, HTMLTemplate instances created by getOriginalStringAsTemplate or getAttributeAsTemplate will join the parent template of the tag. The default value of this attribute is false. |
#fe | フォーム要素値用フィルタを適用するためのマーカ。値は無視される。 a marker for the tag value to be processed with a filters set for HTML form element values. |
#url | URL用フィルタを適用するためのマーカ。値は無視される。 a marker for the tag value to be processed with a filters set for URL values. |
#nof | フィルタを無視するためのマーカ。値は無視される。 a marker for the tag value to be processed without any filters set for HTML form element values. |
#locale | #format等で適用されるロケール。The locale applied for #format and etc. |
#format | HTMLTemplateを通して数値、日付値をセットする際のタグ個別指定の書式文字列。 pattern to format with on setting the Date/numeric value via HTMLTemplate. |
#num | HTMLTemplate.setTagValue(String tagname, String value) を通して、文字列値をセットする際にBigDecimalに変換してからセットする指定。 the value will be converted into the BigDecimal instance when the String value is set with HTMLTemplate.setTagValue(String tagname, String value) . |
#decode | テンプレートの保持するデコーダにより値をデコードする。この属性の値としてコード種別を指定可能。コード種別が指定されなかった場合のデフォルトはタグ名と同じもの。 value will be decoded with the decoder held by HTMLTemplate. The code type can be specified by this attribute's value. The default code type will be the same as the tag name. |
#dsv | #decodeの際に、元の値をデリミタ","区切りした各要素値についてデコード処理を行う。 while processing #decode, value will sliced with the delimiter "," and its each element will be decoded with the decoder. |
#value_sw | セットしようとした値と同じ名前の内部タグの内容を出力する。値は無視される。内部のいずれのタグとも一致しない場合は"default"タグの内容が採用される。 The value of the inner tag whose name is the same as the value you set. "default" tag will be the default value for the other values. |
#cut | この属性で指定した文字数を超える場合、値を切り詰める。文字列をセットする場合のみ有効。 value will be cut when the length of the String value is longer than this attribute value. This option is valid while the value to set is a String. |
#urlenc | 出力をURLエンコードする指定。値としてエンコーディングタイプを指定可能。 tag value will be url-encoded. encoding type can be specified with its value. |
#urlenc.times | #urlencを指定した場合のエンコーディング処理回数を指定。デフォルトは1回。 the number of encoding process times when the attribute #urlenc is specified. |
#mask | 出力値をマスクする。属性値が指定された場合はその文字をマスク文字列として使用する。デフォルトは"*"。 value will be masked. When the attribute value is specified, it will be used as a mask character. The default value of mark character is "*". |
#mask_area | 出力値をマスクする際の対象領域。all(デフォルト)/left/right/bothのいずれか。mask target area. all(default)/left/right or both. |
#mask_num | 出力値をマスクする際の対象文字数。デフォルトは1。#mask_areaで"all"以外を指定した場合にのみ有効。number of mask target chars. default value is 1. is effective only when the #mask_area is not "all". |
#uniq | addInsertedObject(String)で追加される文字列が既に追加済みの場合は何もしない。addInsertedObject(String) will ignore the value when the tag contains the same String value. |
property name | default |
Application.Tag.Attribute.Name.Leader | leader |
Application.Tag.Attribute.Name.Follower | follower |
修飾子とタイプ | フィールドと説明 |
---|---|
protected java.util.Locale |
locale |
BR, df, END_TAG_CHAR, NullParamValue, params, subelements, TAG_CLOSE_CHAR, TAG_OPEN_CHAR
C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_BYTE_SPACE, C_DOUBLE_QUATATION, C_DOUBLE_QUOTATION, C_EQUAL, C_HYPHEN, C_LF, C_SINGLE_QUATATION, C_SINGLE_QUOTATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_DOUBLE_QUOTATION, S_EQUAL, S_HYPHEN, S_LF, S_SINGLE_QUATATION, S_SINGLE_QUOTATION, S_SPACE, S_TAB
コンストラクタと説明 |
---|
InsertionTag(java.lang.String tag_block) |
InsertionTag(java.lang.String tag_block,
java.util.Properties prop) |
InsertionTag(java.lang.String begin_tag,
java.lang.String original_string,
java.lang.String end_tag,
java.util.Properties prop) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addInsertedObject(HTMLComponent value) |
void |
addInsertedObject(java.lang.String value) |
void |
clear()
既にセットされている値をクリアする。
|
java.lang.Object |
clone() |
java.lang.String |
decodeIfRequired(java.lang.String value) |
java.lang.String |
getAttribute(java.lang.String name)
挿入タグの属性を取得。
|
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String default_value)
挿入タグの属性を取得。
|
HTMLTemplate |
getAttributeAsTemplate(EZServletContext context,
java.lang.String name) |
HTMLTemplate |
getAttributeAsTemplate(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
挿入タグの属性名リストを取得。
|
boolean |
getBooleanAttribute(java.lang.String name)
挿入タグの属性を取得。
|
boolean |
getBooleanAttribute(java.lang.String name,
boolean default_value)
挿入タグの属性を取得。
|
java.lang.String |
getCodeType()
#decodeで指定されたコード種別を取得する。
|
java.lang.String |
getElementSeparator() |
CoolProperties |
getGroupedAttribute(java.lang.String name)
指定された文字列で始まる名前の挿入タグの属群を取得。
|
HTMLComponent |
getInsertedComponent() |
java.lang.String |
getInsertedString() |
int |
getIntAttribute(java.lang.String name)
挿入タグの属性を取得。
|
int |
getIntAttribute(java.lang.String name,
int default_value)
挿入タグの属性を取得。
|
long |
getLongAttribute(java.lang.String name)
挿入タグの属性を取得。
|
long |
getLongAttribute(java.lang.String name,
long default_value)
挿入タグの属性を取得。
|
java.lang.String |
getName() |
java.lang.String |
getOriginalString() |
HTMLTemplate |
getOriginalStringAsTemplate() |
HTMLTemplate |
getOriginalStringAsTemplate(EZServletContext context) |
HTMLTemplate |
getOriginalStringAsTemplate(ngmObjectFunction o)
calls getOriginalStringAsTemplate() or getOriginalStringAsTemplate (Properties) depending on o.getProperties()
is null or not null.
|
HTMLTemplate |
getOriginalStringAsTemplate(java.util.Properties prop) |
HTMLTemplate |
getParentTemplate() |
short |
getShortAttribute(java.lang.String name)
挿入タグの属性を取得。
|
short |
getShortAttribute(java.lang.String name,
int default_value)
挿入タグの属性を取得。
|
java.lang.String |
getTagName()
returns tag name.
|
boolean |
isSelfClosing() |
void |
merge(InsertionTag target)
targetの保持する値を自インスタンスにマージする。
|
void |
setElementSeparator(java.lang.String element_separator) |
void |
setInsertedComponent(HTMLComponent replace) |
void |
setInsertedString(java.lang.String replace) |
HTMLTemplate |
setOriginalStringAsTemplate()
getOriginalStringAsTemplate() で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。 |
HTMLTemplate |
setOriginalStringAsTemplate(EZServletContext context)
getOriginalStringAsTemplate(EZServletContext) で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。 |
HTMLTemplate |
setOriginalStringAsTemplate(ngmObjectFunction o)
getOriginalStringAsTemplate(ngmObjectFunction) で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。 |
HTMLTemplate |
setOriginalStringAsTemplate(java.util.Properties prop)
getOriginalStringAsTemplate(Properties) で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。 |
void |
setParent(HTMLComponent parent)
set the reference to the including component instance.
|
void |
setParent(HTMLTemplate template) |
java.lang.String |
toHTML()
converts this object into HTML tagged string.
|
java.lang.String |
toString() |
addSubElement, addSubElement, addSubElement, addSubElement, getBooleanParameter, getBooleanParameter, getDecimalFormat, getIndex, getIntParameter, getIntParameter, getLongParameter, getLongParameter, getMimeType, getOmitClosingTag, getParameter, getParameter, getParameters, getParent, getParentTemplateTimezone, getSubElements, getVersion, removeAllSubElements, removeParameter, setMimeType, setOmitClosingTag, setParameter, setParameter, setParameter, setParameter, setParameters, setParameters, setSubElement, setSubElement, setSubElements
debug, debug, equals_n, equals_n2, getBooleanProperty, getBooleanProperty, getGroupedProperties, getIntProperty, getIntProperty, getLog, getLongProperty, getLongProperty, getProperties, getPropertiesForMe, getProperty, getProperty, getShortProperty, getShortProperty, setLog, setNgmObject, setProperties, sysoutprintln
public InsertionTag(java.lang.String tag_block)
public InsertionTag(java.lang.String tag_block, java.util.Properties prop)
public InsertionTag(java.lang.String begin_tag, java.lang.String original_string, java.lang.String end_tag, java.util.Properties prop)
public void setParent(HTMLTemplate template)
public HTMLTemplate getParentTemplate()
public void setParent(HTMLComponent parent)
HTMLComponent
setParent
クラス内 HTMLComponent
public boolean isSelfClosing()
public java.lang.String getCodeType()
public java.lang.String getElementSeparator()
public void setElementSeparator(java.lang.String element_separator)
public java.lang.String toString()
toString
クラス内 HTMLComponent
public java.lang.String getName()
public java.lang.String getOriginalString()
public HTMLTemplate getOriginalStringAsTemplate()
public HTMLTemplate setOriginalStringAsTemplate()
getOriginalStringAsTemplate()
で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。public HTMLTemplate getOriginalStringAsTemplate(java.util.Properties prop)
public HTMLTemplate setOriginalStringAsTemplate(java.util.Properties prop)
getOriginalStringAsTemplate(Properties)
で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。public HTMLTemplate getOriginalStringAsTemplate(ngmObjectFunction o)
o
- public HTMLTemplate setOriginalStringAsTemplate(ngmObjectFunction o)
getOriginalStringAsTemplate(ngmObjectFunction)
で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。public HTMLTemplate getOriginalStringAsTemplate(EZServletContext context)
public HTMLTemplate setOriginalStringAsTemplate(EZServletContext context)
getOriginalStringAsTemplate(EZServletContext)
で取得されるテンプレートをこのタグの値としてセットしつつそれを返す。public HTMLTemplate getAttributeAsTemplate(java.lang.String name)
public HTMLTemplate getAttributeAsTemplate(EZServletContext context, java.lang.String name)
public java.lang.String getInsertedString()
public HTMLComponent getInsertedComponent()
public void setInsertedString(java.lang.String replace)
public java.lang.String decodeIfRequired(java.lang.String value)
public void setInsertedComponent(HTMLComponent replace)
public void clear()
public void addInsertedObject(java.lang.String value)
public void addInsertedObject(HTMLComponent value)
public void merge(InsertionTag target)
target
- public java.lang.String getTagName()
HTMLComponent
getTagName
クラス内 HTMLComponent
public java.lang.String getAttribute(java.lang.String name)
public CoolProperties getGroupedAttribute(java.lang.String name)
public java.lang.String getAttribute(java.lang.String name, java.lang.String default_value)
public long getLongAttribute(java.lang.String name)
public long getLongAttribute(java.lang.String name, long default_value)
public int getIntAttribute(java.lang.String name)
public int getIntAttribute(java.lang.String name, int default_value)
public short getShortAttribute(java.lang.String name)
public short getShortAttribute(java.lang.String name, int default_value)
public boolean getBooleanAttribute(java.lang.String name)
public boolean getBooleanAttribute(java.lang.String name, boolean default_value)
public java.util.Enumeration<java.lang.String> getAttributeNames()
public java.lang.String toHTML()
HTMLComponent
toHTML
クラス内 HTMLComponent
public java.lang.Object clone()
clone
クラス内 HTMLComponent