|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object javax.naming.directory.BasicAttributes
public class BasicAttributes
ÀÌ Å¬·¡½º´Â Attributes ÀÎÅÍÆäÀ̽ºÀÇ ±âº»ÀûÀÎ ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù.
BasicAttributes´Â ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º°ÀÖÀ½À¸·Î ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º° ¾øÀ½ÀÇ ¾îµò°¡¿¡ µË´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ´Â BasicAttributes »ý¼ºÀÚ°¡ ºÒ·Á °£ ½ÃÁ¡¿¡¼ °áÁ¤µË´Ï´Ù. ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º°À» ÇÏÁö ¾Ê´Â BasicAttributesÀÎ °æ¿ì´Â ¼Ó¼ºÀÇ °Ë»ö ¶Ç´Â ¼Ó¼ºÀÇ Ãß°¡ ½Ã¿¡ ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µÇÁö ¾Ê½À´Ï´Ù. ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º°À» ÇÏ´Â BasicAttributesÀÎ °æ¿ì´Â ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µË´Ï´Ù.
BasicAttributes Ŭ·¡½º°¡ Attribute¸¦ ÀÛ¼ºÇÒ ÇÊ¿ä°¡ ÀÖ´Â °æ¿ì, BasicAttribute¸¦ »ç¿ëÇÕ´Ï´Ù. BasicAttribute ¿¡ Á¸ÇÏ°í ÀÖ´Â °ÍÀº ±× ¹Û¿¡ ¾ø½À´Ï´Ù.
BasicAttributes º¯°æ (¼Ó¼ºÀÇ Ãß°¡ »èÁ¦µî)Àº ÇØ´çÇÏ´Â µð·ºÅ丮ÀÇ ¼Ó¼ºÀÇ Ç¥½Ã¿¡´Â ¿µÇâÀ» ÁÖÁö ¾Ê½À´Ï´Ù. µð·ºÅ丮ÀÇ º¯°æÀº DirContext ÀÎÅÍÆäÀ̽ºÀÇ Á¶ÀÛÀ» »ç¿ëÇÏ´Â °æ¿ì¿¡ ÇÑÁ¤ÇØ, À¯È¿ÇÏ°Ô µË´Ï´Ù.
BasicAttributes ÀνºÅϽº´Â º´·Ä multi-thread ¾×¼¼½º¿¡ ´ëÇؼ µ¿±âÈ µÇÁö ¾Ê½À´Ï´Ù. ´ÜÀÏÀÇ BasicAttributes ÀνºÅϽº¸¦ ¾×¼¼½º ¹× º¯°æÇÏ·Á°í ÇÏ´Â º¹¼öÀÇ thread¿¡ÀÇÇØ °´Ã¼´Â ¶ô µË´Ï´Ù.
DirContext.getAttributes(javax.naming.Name)
,
DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)
,
DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,
DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,
DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)
,
DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[])
,
Á÷·ÄÈ µÈ Çü½Ä »ý¼ºÀÚ °³¿ä | |
---|---|
BasicAttributes ()
Attributes ÀνºÅϽº¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
|
BasicAttributes (boolean ignoreCase)
Attributes ÀνºÅϽº¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
|
BasicAttributes (String attrID,
Object val)
Attributes ÀνºÅϽº¸¦ 1°³ÀÇ ¼Ó¼ºÀ¸·Î »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
|
BasicAttributes (String attrID,
Object val,
boolean ignoreCase)
Attributes ÀνºÅϽº¸¦ 1°³ÀÇ ¼Ó¼ºÀ¸·Î »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
Object |
clone ()
ÀÌ °´Ã¼ÀÇ º¹»çº»À» ÀÛ¼ºÇØ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
equals (Object obj)
ÀÌ BasicAttributes°¡ ´Ù¸¥ Attributes¿Í µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ÆǺ°ÇÕ´Ï´Ù. |
Attribute |
get (String attrID)
¼Ó¼º ¼¼Æ®·ÎºÎÅÍ, ÁöÁ¤µÈ ¼Ó¼º ID¸¦ °¡Áö´Â ¼Ó¼ºÀ» ¼öÁß¿¡ ³Ö½À´Ï´Ù. |
NamingEnumeration <Attribute > |
getAll ()
¼Ó¼º ¼¼Æ®ÀÇ ¼Ó¼ºÀÇ ¿°Å¸¦ ²¨³À´Ï´Ù. |
NamingEnumeration <String > |
getIDs ()
¼Ó¼º ¼¼Æ®ÀÇ ¼Ó¼º ID ¿°Å¸¦ ²¨³À´Ï´Ù. |
int |
hashCode ()
ÀÌ BasicAttributes Çؽà Äڵ带 °è»êÇÕ´Ï´Ù. |
boolean |
isCaseIgnored ()
¼Ó¼ºÀÇ ¼öÁß¿¡ ³Ö¾î ¶Ç´Â Ãß°¡¸¦ ÇÏ°í ÀÖÀ» ¶§, ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ¹«½ÃÇÒÁö ¾î¶³Áö¸¦ ÆǺ°ÇÕ´Ï´Ù. |
Attribute |
put (Attribute attr)
¼Ó¼º ¼¼Æ®¿¡ »õ·Î¿î ¼Ó¼ºÀ» Ãß°¡ÇÕ´Ï´Ù. |
Attribute |
put (String attrID,
Object val)
¼Ó¼º ¼¼Æ®¿¡ »õ·Î¿î ¼Ó¼ºÀ» Ãß°¡ÇÕ´Ï´Ù. |
Attribute |
remove (String attrID)
¼Ó¼º ¼¼Æ®·ÎºÎÅÍ ¼Ó¼º ID ¡¸attrID¡¹¸¦ °¡Áö´Â ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù. |
int |
size ()
¼Ó¼º ¼¼Æ®ÀÇ ¼Ó¼º¼ö¸¦ ¼öÁß¿¡ ³Ö½À´Ï´Ù. |
String |
toString ()
ÀÌ ¼Ó¼º ¼¼Æ®ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥ±â¸¦ »ý¼ºÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public BasicAttributes()
public BasicAttributes(boolean ignoreCase)
ignoreCase
°¡ trueÀÎ °æ¿ì, ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µÇÁö ¾Ê½À´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ´ë¹®ÀÚ·Î ÇÒ±î ¼Ò¹®ÀÚ·Î ÇÒ±î´Â Áß¿äÇÕ´Ï´Ù.
ignoreCase
- ¼Ó¼ºÀ» °Ë»ö ¶Ç´Â Ãß°¡ÇÒ ¶§¿¡ ÀÌ ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falsepublic BasicAttributes(String attrID, Object val)
attrID
- Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ null ÀÌ¿ÜÀÇ IDval
- Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ °ª. nullÀÎ °æ¿ì, null °ªÀÌ ¼Ó¼º¿¡ Ãß°¡µÈ´Ùpublic BasicAttributes(String attrID, Object val, boolean ignoreCase)
ignoreCase
°¡ trueÀÎ °æ¿ì, ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µÇÁö ¾Ê½À´Ï´Ù. ±× ¿ÜÀÇ °æ¿ì, ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µË´Ï´Ù.
attrID
- Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ null ÀÌ¿ÜÀÇ ID. ÀÌ ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê´Â °æ¿ì, ¼Ó¼ºÀÇ ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ±¸º°µÇÁö ¾Ê´Âval
- Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ °ª. nullÀÎ °æ¿ì, null °ªÀÌ ¼Ó¼º¿¡ Ãß°¡µÇ´ÂignoreCase
- ¼Ó¼ºÀ» °Ë»ö ¶Ç´Â Ãß°¡ÇÒ ¶§¿¡ ÀÌ ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ½Äº°ÀÚÀÇ ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸Þ¼µåÀÇ »ó¼¼ |
---|
public Object clone()
Object
±â¼ú: ÇÏÁö¸¸ true À̸ç, ´ÙÀ½ÀÇ ½Äx.clone() ! = x
µµ true ÀÎ °ÍÀÔ´Ï´Ù¸¸, À̰͵鵵 Àý´ëÀûÀÎ ¿ä°ÇÀÌ ¾Æ´Õ´Ï´Ù. ¶Ç ´ÙÀ½ÀÇ ½Äx.clone(). getClass() == x.getClass()
µµ º¸Åë true°¡ µË´Ï´Ù¸¸, À̰͵µ Àý´ëÀûÀÎ ¿ä°ÇÀÌ ¾Æ´Õ´Ï´Ù.x.clone(). equals(x)
º¸Åë, super.clone¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î ¸®ÅÏµÈ °´Ã¼¸¦ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù. Ŭ·¡½º ¹× ±× ½´ÆÛ Å¬·¡½º ¸ðµç °Í (Object¸¦ Á¦¿ÜÇÑ´Ù)ÀÌ ÀÌ ±ÔÄ¢¿¡ µû¸£´Â °æ¿ì, x.clone(). getClass() == x.getClass()°¡ ¼º¸³ÇÕ´Ï´Ù.
º¸Åë, ÀÌ ¸Þ¼µå¿¡ ÀÇÇØ ¸®ÅÏµÈ °´Ã¼´Â ÀÌ °´Ã¼ (º¹Á¦µÇ°í ÀÖ´Ù)·ÎºÎÅÍ µ¶¸³ÇÏ°í ÀÖÀ» ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ µ¶¸³¼ºÀ» ´Þ¼ºÇϱâ À§ÇØ, super.clone°¡ µ¹·ÁÁÖ´Â °´Ã¼ÀÇ Çʵ带 1°³ ÀÌ»ó (°´Ã¼°¡ µ¹·ÁÁÖ±â Àü¿¡) º¯°æÇÏ´Â °ÍÀÌ ÇÊ¿äÇÏ°Ô µÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº º¸Åë, º¹Á¦ÇÏ´Â °´Ã¼ÀÇ ³»ºÎ ¡¸½ÉÃþ ±¸Á¶¡¹¸¦ ±¸¼ºÇÏ´Â °¡º¯ °´Ã¼ÀÇ Ä«ÇÇ ¹× ÀÌ·¯ÇÑ °´Ã¼¿¡ÀÇ ÂüÁ¶¸¦ Ä«ÇÇ¿¡ÀÇ ÂüÁ¶¿¡ ¿Å°Ü³õ´Â °ÍÀ»ÀǹÌÇÕ´Ï´Ù. Ŭ·¡½º¿¡ ¿ø½ÃÀû ÇÊµå ¶Ç´Â ºÒº¯ °´Ã¼¿¡ÀÇ ÂüÁ¶¸¸ÀÌ Æ÷ÇԵǴ °æ¿ì, º¸Åë, super.clone¿¡ ÀÇÇØ ¸®ÅÏµÈ °´Ã¼³»ÀÇ Çʵ带 º¯°æÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
Object Ŭ·¡½ºÀÇ clone ¸Þ¼µå´Â ƯÁ¤ÀÇ º¹Á¦ 󸮸¦ ½ÇÇàÇÕ´Ï´Ù. ¿ì¼±, ÀÌ °´Ã¼ÀÇ Å¬·¡½º°¡ Cloneable ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ°í ÀÖÁö ¾Ê´Â °æ¿ì´Â CloneNotSupportedExceptionÀÌ ¹ß»ý µË´Ï´Ù. ¹è¿Àº ¸ðµÎ, ÀÎÅÍÆäÀ̽º Cloneable¸¦ ±¸ÇöÇÏ°í ÀÖ´Â °ÍÀ̶ó°í º¸¿©Áö´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ±¸ÇöÇÏ°í ÀÖÁö ¾Ê´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â ÀÌ °´Ã¼ÀÇ Å¬·¡½ºÀÇ »õ·Î¿î ÀνºÅϽº¸¦ »ý¼ºÇØ, ±× Çʵ带 ¸ðµÎ, ÀÌ °´Ã¼ÀÇ ´ëÀÀÇÏ´Â °¢ ÇʵåÀÇ ³»¿ëÀ¸·Î ÃʱâÈÇÕ´Ï´Ù. ÀÌ°ÍÀº ´ëÀÔ°ú °°¾Æ, ÇʵåÀÇ ³»¿ë ÀÚ½ÅÀÌ º¹Á¦µÇ´Â °ÍÀº ¾Æ´Õ´Ï´Ù. Áï ÀÌ ¸Þ¼µå´Â °´Ã¼ÀÇ ¡¸»þ·ÎÄÚÇÇ¡¹¸¦ »ý¼ºÇÕ´Ï´Ù¸¸, ¡¸µö Ä«ÇÇ¡¹´Â »ý¼ºÇÏÁö ¾Ê½À´Ï´Ù.
Ŭ·¡½º Object ÀÚü´Â Cloneable ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏÁö ¾Ê±â ¶§¹®¿¡ Ŭ·¡½º°¡ Object ÀÎ clone ¸Þ¼µå¸¦ È£ÃâÇϸé, ½ÇÇà½Ã¿¡ ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
Attributes
³»ÀÇ clone
Object
³»ÀÇ clone
Cloneable
public boolean isCaseIgnored()
Attributes
񃬣:
Attributes
³»ÀÇ isCaseIgnored
public int size()
Attributes
񃬣:
Attributes
³»ÀÇ size
public Attribute get(String attrID)
Attributes
񃬣:
Attributes
³»ÀÇ get
attrID
- ¾ò´Â ¼Ó¼ºÀÇ null ÀÌ¿ÜÀÇ ID. ÀÌ ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ¹«½ÃÇÏ´Â °æ¿ì, attrID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ¹«½ÃµÈ´Ù
Attributes.put(java.lang.String, java.lang.Object)
,
Attributes.remove(java.lang.String)
public NamingEnumeration <Attribute > getAll()
Attributes
񃬣:
Attributes
³»ÀÇ getAll
public NamingEnumeration <String > getIDs()
Attributes
񃬣:
Attributes
³»ÀÇ getIDs
public Attribute put(String attrID, Object val)
Attributes
񃬣:
Attributes
³»ÀÇ put
attrID
- Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ null ÀÌ¿ÜÀÇ ID. ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ¹«½ÃÇÏ´Â °æ¿ì, attrID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ¹«½ÃµÇ´Âval
- null
°¡´É¼ºÀÌ ÀÖ´Â Ãß°¡ÇÏ´Â ¼Ó¼ºÀÇ °ª. nullÀÎ °æ¿ì´Â ¼Ó¼º¿¡ °ªÀº Æ÷ÇÔµÇÁö ¾Ê´Â´Ù
Attributes.remove(java.lang.String)
public Attribute put(Attribute attr)
Attributes
񃬣:
Attributes
³»ÀÇ put
attr
- Ãß°¡ÇÏ´Â null ÀÌ¿ÜÀÇ ¼Ó¼º. ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ¹«½ÃÇÏ´Â °æ¿ì, attrID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ¹«½ÃµÈ´Ù
Attributes.remove(java.lang.String)
public Attribute remove(String attrID)
Attributes
񃬣:
Attributes
³»ÀÇ remove
attrID
- »èÁ¦ÇÏ´Â ¼Ó¼ºÀÇ null ÀÌ¿ÜÀÇ ID. ÀÌ ¼Ó¼º ¼¼Æ®°¡ ¼Ó¼º ID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ¹«½ÃÇÏ´Â °æ¿ì, attrID
´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ´Â ¹«½ÃµÈ´Ù
public String toString()
Object
³»ÀÇ toString
public boolean equals(Object obj)
Object
³»ÀÇ equals
obj
- null
°¡´É¼ºÀÌ ÀÖ´Â ºñ±³ ´ëÁ¶ °´Ã¼
hashCode()
public int hashCode()
Çؽà ÄÚµå´Â ÀÌ °´Ã¼ÀÇ ¼Ó¼ºÀÇ Çؽà Äڵ带 °¡»êÇÏ´Â °Í¿¡ ÀÇÇØ °è»êµË´Ï´Ù. ÀÌ BasicAttributes°¡ ¼Ó¼º ID ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê´Â °æ¿ì´Â Çؽà Äڵ忡 1 ÀÌ °¡»êµË´Ï´Ù. ¼ºê Ŭ·¡½º°¡ hashCode() ¸¦ ¿À¹ö¶óÀ̵å(override) ÇßÀ» °æ¿ì, ¼ºê Ŭ·¡½º´Â equals()µµ ¶È°°ÀÌ ¿À¹ö¶óÀ̵å(override) ÇØ, µ¿ÀÏÇÑ 2°³ÀÇ Attributes ÀνºÅϽº°¡ °°Àº Çؽà Äڵ带 °¡Áöµµ·Ï ÇÕ´Ï´Ù.
Object
³»ÀÇ hashCode
equals(java.lang.Object)
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.