|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectorg.omg.CORBA.ContextList
public abstract class ContextList
ÇÁ·ÎÆÛƼ¸íÀ» ³ªÅ¸³»´Â String °´Ã¼ÀÇ ¼öÁ¤ °¡´ÉÇÑ ¸®½ºÆ®¸¦ Æ÷ÇÔÇÏ´Â °´Ã¼ÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â Request Á¶ÀÛÀ¸·Î »ç¿ëµÇ¾î ÇØ°á ¹× È£ÃâÇØ ¶§ÀÇ ¼Û½ÅÀÌ ÇÊ¿äÇÑ ÄÁÅØ½ºÆ®¸¦ ±â¼úÇÕ´Ï´Ù. ÄÁÅØ½ºÆ®Àº ÇÁ·ÎÆÛƼ¸íÀ» ÁöÁ¤ÇØ, °Å±â¿¡ °ü·ÃµÈ
°ªÀ» ¾ò´Â °ÍÀ¸·Î ÇØ°áµË´Ï´Ù. ÀÌ ¶§¹®¿¡
Context
get_values ¸Þ¼µå¸¦ È£ÃâÇØ, ContextList °´Ã¼·ÎºÎÅÍÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» 3 ¹øÂ°ÀÇ ÆÄ¶ó¹ÌÅͷμ ÁöÁ¤ÇÕ´Ï´Ù. get_values ¸Þ¼µå´Â ÁöÁ¤µÈ ij¸¯ÅÍ ¶óÀÎÀ¸·Î ½Äº°µÇ´Â °ªÀ» º¸°ü À¯ÁöÇÏ´Â NamedValue °´Ã¼¸¦ Æ÷ÇÔÇÏ´Â NVList °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ContextList°´Ã¼´Â
´ÙÀ½¿¡ ³ªÅ¸³»µµ·Ï
ORB¿¡ ÀÇÇØ ÀÛ¼ºµË´Ï´Ù.
ORB orb = ORB.init(args, null); org.omg.CORBA.ContextList ctxList = orb.create_context_list();º¯¼ö
ctxList´Â ºñ¾îÀÖ´Â ContextList °´Ã¼¸¦ ³ªÅ¸³À´Ï´Ù. ij¸¯ÅÍ ¶óÀÎÀº, add ¸Þ¼µå¿¡ ÀÇÇØ ¸®½ºÆ®¿¡ Ãß°¡µÇ¾îitem ¸Þ¼µå¸¦ »ç¿ëÇØ ¾×¼¼½º µÇ¾îremove ¸Þ¼µå·Î »èÁ¦µË´Ï´Ù.
Context | »ý¼ºÀÚ °³¿ä | |
|---|---|
ContextList ()
|
|
| ¸Þ¼µå °³¿ä | |
|---|---|
abstract void |
add (String ctx)
String °´Ã¼¸¦ ÀÌ ContextList °´Ã¼¿¡ Ãß°¡ÇÕ´Ï´Ù. |
abstract int |
count ()
ÀÌ ContextList °´Ã¼³»ÀÇ String °´Ã¼ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
abstract String |
item (int index)
ÁöÁ¤µÈ À妽º¿¡¼ÀÇ String¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
abstract void |
remove (int index)
ÁöÁ¤µÈ À妽ºÀÇ String °´Ã¼¸¦ »èÁ¦ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public ContextList()
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public abstract int count()
ContextList °´Ã¼³»ÀÇ String °´Ã¼ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ContextList °´Ã¼³»ÀÇ String °´Ã¼ÀÇ ¼ö¸¦ ³ªÅ¸³»´Â intpublic abstract void add(String ctx)
String °´Ã¼¸¦ ÀÌ ContextList °´Ã¼¿¡ Ãß°¡ÇÕ´Ï´Ù.
ctx - Ãß°¡µÇ´Â String
public abstract String item(int index)
throws Bounds
String¸¦ ¸®ÅÏÇÕ´Ï´Ù.
index - ´ë»óÀÇ Ä³¸¯ÅÍ ¶óÀÎÀÇ À妽º. ÃÖÃÊÀÇ Ä³¸¯ÅÍ ¶óÀÎÀÇ À妽º´Â 0
Bounds - À妽º°¡ ÀÌ ContextList °´Ã¼ÀÇ Ä³¸¯ÅÍ ¶óÀμöÀÌ»óÀÇ °æ¿ì
public abstract void remove(int index)
throws Bounds
String °´Ã¼¸¦ »èÁ¦ÇÕ´Ï´Ù. »èÁ¦µÈ ij¸¯ÅÍ ¶óÀÎ ÀÌÈÄÀÇ ¸ðµç ij¸¯ÅÍ ¶óÀÎÀÇ À妽º°¡ 1 ¸¸ °¨¼ÒÇÕ´Ï´Ù.
index - »èÁ¦µÇ´Â String °´Ã¼ÀÇ À妽º. 0 Àº ÃÖÃÊÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» ³ªÅ¸³½´Ù
Bounds - À妽º°¡ ÀÌ ContextList °´Ã¼ÀÇ String °´Ã¼¼öÀÌ»óÀÇ °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.