|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.naming.directory.BasicAttributes
ÀÌ Å¬·¡½º´Â Attributes ÀÎÅÍÆäÀ̽ºÀÇ ±âº»ÀûÀÎ ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù.
BasicAttributes Àº ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º°ÀÖÀ½À¸·Î, ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º° ¾øÀ½ÀÇ ¾îµò°¡¿¡ µË´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ´Â BasicAttributes constructor ÀÌ ºÒ·Á °£ ½ÃÁ¡¿¡¼ °áÁ¤µË´Ï´Ù. ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚÀÇ ±¸º°À» ÇÏÁö ¾Ê´Â 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 |
getAll ()
¼Ó¼º ¼¼Æ®ÀÇ ¼Ó¼ºÀÇ ¿°Å¸¦ ²¨³À´Ï´Ù. |
NamingEnumeration |
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()
Attributes
ÀÇ ±â¼ú:
Attributes
³»ÀÇ clone
Object
³»ÀÇ clone
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 getAll()
Attributes
ÀÇ ±â¼ú:
Attributes
³»ÀÇ getAll
public NamingEnumeration 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 Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.