|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.web.mapper.element.Entity
public abstract class Entity
Web Mapper 파일의 Column, Attribute, Value의 공통 속성을 나타내는 클래스이다.
| Field Summary | |
|---|---|
protected String |
defValue
|
protected String |
description
|
protected boolean |
hasCountPattern
${count} 패턴의 존재여부 플래그이다. |
protected boolean |
hasRepeatRefPattern
${repeat_ref} 패턴의 존재여부 플래그이다. |
protected boolean |
hasValuePattern
${value} 패턴의 존재여부 플래그이다. |
protected String |
name
|
protected static Pattern |
patternCount
예약어 ${count}의 패턴객체이다. |
protected static Pattern |
patternValue
예약어 ${value}의 패턴객체이다. |
protected String |
ref1
|
protected String |
ref2
|
protected String |
value
|
| Constructor Summary | |
|---|---|
Entity(String nm,
String ref,
String val,
String desc)
생성자이다. |
|
Entity(String nm,
String r1,
String r2,
String val,
String desc)
생성자이다. |
|
| Method Summary | |
|---|---|
String |
getDescription()
desc 속성값을 반환한다. |
String |
getName()
치환되지 않는 name 값 그대로를 반환한다. |
String |
getName(int idx,
Map<String,Object> map)
name에 있는 ${value}와 ${count} 예약어를 치환한 후 그 결과를 최종 name으로 반환한다. |
String |
getName(int idx,
ValueObjectAssembler voa)
name에 있는 ${value}와 ${count} 예약어를 치환한 후 그 결과를 최종 name으로 반환한다. |
protected Object |
getOutputValue(int idx,
Map<String,Object> map,
StringBuilder sb)
<output> 매핑에서 Map의 내용을 출력하기 위하여 사용되는 기능이다. |
protected Object |
getOutputValue(int idx,
ValueObjectAssembler voa,
StringBuilder sb)
<output> 매핑에서 ValueObjectAssembler의 내용을 출력하기 위하여 사용되는 기능이다. |
String |
getRef()
|
String |
getValueDef()
|
boolean |
hasRepeatRef()
${repeat_ref} 존재여부를 반환한다. |
protected boolean |
isEmpty(Object source)
source 가 null 이거나 또는 String 객체이고 "" 이면 true를 리턴한다. |
void |
markRepeatRef()
${repeat_ref}가 존재하는 것으로 마킹한다. |
String |
replaceName(Object value,
int count)
name에서 ${value}와 ${count} 예약어를 주어진 값으로 치환후 반환한다. |
abstract Entity |
replaceRepeatRef(String repeatRef)
Entity의 name, ref1, ref2, value 내에 존재하는 ${repeat_ref} 문자를 repeatRef로 치환하여 Entity 객체를 생성하여 반환한다. |
protected String |
replaceValue(int count)
value에서 ${count} 예약어를 실제 값으로 치환후 반환한다. |
void |
setDefaultValue(String def)
default 속성 값을 설정한다. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Pattern patternValue
protected static final Pattern patternCount
protected String name
protected String ref1
protected String ref2
protected String value
protected String defValue
protected String description
protected boolean hasValuePattern
protected boolean hasCountPattern
protected boolean hasRepeatRefPattern
| Constructor Detail |
|---|
public Entity(String nm,
String ref,
String val,
String desc)
nm - Entity 이름ref - val - desc -
public Entity(String nm,
String r1,
String r2,
String val,
String desc)
nm - r1 - r2 - val - desc - | Method Detail |
|---|
public String getName()
public String getRef()
public String getValueDef()
public String replaceName(Object value,
int count)
value - count -
public String getName(int idx,
ValueObjectAssembler voa)
idx - voa - count -
public String getName(int idx,
Map<String,Object> map)
idx - voa - count -
public String getDescription()
public void setDefaultValue(String def)
def - public abstract Entity replaceRepeatRef(String repeatRef)
repeatRef -
public boolean hasRepeatRef()
public void markRepeatRef()
protected Object getOutputValue(int idx,
ValueObjectAssembler voa,
StringBuilder sb)
idx - voa - sb - 디폴트 값을 사용한 컬럼의 경우 그 명칭을 담아서 로그로 출력하기 위하여 사용한다.
protected Object getOutputValue(int idx,
Map<String,Object> map,
StringBuilder sb)
idx - voa - sb - 디폴트 값을 사용한 컬럼의 경우 그 명칭을 담아서 로그로 출력하기 위하여 사용한다.protected String replaceValue(int count)
count -
protected boolean isEmpty(Object source)
source -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||