|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.jar.Attributes
public class Attributes
Attributes Ŭ·¡½º´Â Manifest ¼Ó¼º¸íÀ» °ü·ÃµÈ ij¸¯ÅÍ ¶óÀÎÄ¡¿¡ ¸ÅÇÎ ÇÕ´Ï´Ù. À¯È¿ÇÑ ¼Ó¼º¸í¿¡¼´Â ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ°¡ ±¸º°µÇÁö ¾Ê½À´Ï´Ù. ¶Ç,[0-9a-zA-Z_-] ¼¼Æ®³»ÀÇ ASCII ¹®ÀÚ¿¡ Á¦ÇѵǾî 70 ¹®ÀÚ¸¦ ³ÑÀ» ¼ö ¾ø½À´Ï´Ù. ¼Ó¼º°ª¿¡´Â ÀÓÀÇÀÇ ¹®ÀÚ¸¦ Æ÷ÇÔÇÒ ¼ö°¡ ÀÖ¾î Ãâ·Â ½ºÆ®¸²¿¡ÀÇ write¿¡ UTF8¿¡ encode µË´Ï´Ù. À¯È¿ÇÑ ¼Ó¼º¸í ¹× °ªÀÇÀÚ¼¼ÇÑ ³»¿ëÀº ¡¸JAR ÆÄÀÏÀÇ »ç¾ç¡¹À» ÂüÁ¶ÇϽʽÿÀ.
Manifest
Áßø(Nested) Ŭ·¡½º °³¿ä | |
---|---|
static class |
Attributes.Name
Attributes.Name Ŭ·¡½º´Â ÀÌ Map¿¡ Æ÷ÇԵǴ ¼Ó¼º¸íÀ» ³ªÅ¸³À´Ï´Ù. |
ÀÎÅÍÆäÀ̽º java.util. Map ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
Map.Entry <K,
V > |
ÇÊµå °³¿ä | |
---|---|
protected Map <Object,
Object > |
map
¼Ó¼º¸í°ú ¼Ó¼ºÀÇ °ªÀÇ ¸ÅÇÎÀÔ´Ï´Ù. |
»ý¼ºÀÚ °³¿ä | |
---|---|
Attributes ()
µðÆúÆ®ÀÇ »çÀÌÁî·Î »õ·Î¿î ºñ¾îÀÖ´Â Attributes °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Attributes (Attributes attr)
ÁöÁ¤µÈ Attributes °´Ã¼¿Í °°Àº ¼Ó¼º¸í°ú ¼Ó¼ºÀÇ °ªÀÇ ¸ÅÇÎÀ¸·Î »õ·Î¿î Attributes °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Attributes (int size)
ÁöÁ¤µÈ Ãʱ⠻çÀÌÁî·Î »õ·Î¿î ºñ¾îÀÖ´Â Attributes °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
clear ()
ÀÌ Map ·ÎºÎÅÍ ¸ðµç ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù. |
Object |
clone ()
´ÙÀ½°ú °°ÀÌ ±¸ÇöµÈ, Attributes º¹»çº»À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
containsKey (Object name)
ÁöÁ¤µÈ ¼Ó¼º¸í (Ű)ÀÌ ÀÌ Map¿¡ Æ÷ÇԵǴ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
containsValue (Object value)
ÀÌ MapÀÌ 1°³ ÀÌ»óÀÇ ¼Ó¼º¸í (Ű)ÀÌ ÁöÁ¤µÈ °ª¿¡ ¸Ê Çϰí ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Set <Map.Entry <Object,
Object >> |
entrySet ()
ÀÌ Map¿¡ Æ÷ÇԵǰí ÀÖ´Â ¼Ó¼º¸í°ú ¼Ó¼ºÀÇ °ª°úÀÇ ¸ÅÇÎÀÇ Collection ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
equals (Object o)
ÁöÁ¤µÈ Attributes °´Ã¼¿Í ÀÌ MapÀÌ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÕ´Ï´Ù. |
Object |
get (Object name)
ÁöÁ¤µÈ ¼Ó¼º¸íÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
String |
getValue (Attributes.Name name)
ÁöÁ¤µÈ Attributes.Name °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
String |
getValue (String name)
ij¸¯ÅÍ ¶óÀÎÀ¸·Î ÁöÁ¤µÈ ¼Ó¼º¸íÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
hashCode ()
ÀÌ Map ÇØ½Ã Äڵ尪À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isEmpty ()
ÀÌ Map¿¡ ¼Ó¼ºÀÌ Æ÷ÇԵǾî ÀÖÁö ¾ÊÀº °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Set <Object > |
keySet ()
ÀÌ Map¿¡ Æ÷ÇԵǰí ÀÖ´Â ¼Ó¼º¸í (Ű)ÀÇ Set ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Object |
put (Object name,
Object value)
ÁöÁ¤µÈ °ª°ú ÁöÁ¤µÈ ¼Ó¼º¸í (Ű)À» ÀÌ ¸Ê¿¡ °ü·ÃÁþ½À´Ï´Ù. |
void |
putAll (Map <?,?> attr)
ÁöÁ¤µÈ Attributes ·ÎºÎÅÍ, ¼Ó¼º¸í°ú ¼Ó¼ºÀÇ °ª°úÀÇ ¸ÅÇÎÀ» ¸ðµÎ ÀÌ Map¿¡ Ä«ÇÇÇÕ´Ï´Ù. |
String |
putValue (String name,
String value)
ÁöÁ¤µÈ °ªÀ» String ·Î¼ ÁöÁ¤µÈ ¼Ó¼º¸í¿¡ °ü·ÃÁþ½À´Ï´Ù. |
Object |
remove (Object name)
ÁöÁ¤µÈ À̸§ (Ű)À» °¡Áö´Â ¼Ó¼ºÀ» ÀÌ Map ·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
int |
size ()
ÀÌ Map¿¡ ÀÖ´Â ¼Ó¼ºÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Collection <Object > |
values ()
ÀÌ Map¿¡ Æ÷ÇԵǰí ÀÖ´Â ¼Ó¼ºÀÇ °ªÀÇ Collection ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected Map <Object, Object > map
»ý¼ºÀÚ »ó¼¼ |
---|
public Attributes()
public Attributes(int size)
size
- ¼Ó¼ºÀÇ Ãʱ⠹øÈ£public Attributes(Attributes attr)
attr
- ÁöÁ¤µÈ Attributes¸Þ¼µåÀÇ »ó¼¼ |
---|
public Object get(Object name)
Map <Object,
Object >
³»ÀÇ get
name
- ¼Ó¼º¸í
Map.containsKey(Object)
public String getValue(String name)
ÀÌ ¸Þ¼µå´Â ´ÙÀ½°ú °°ÀÌ Á¤Àǵ˴ϴÙ.
return (String) get(new Attributes.Name((String) name));
name
- ¼Ó¼º¸íÀÇ Ä³¸¯ÅÍ ¶óÀÎ
IllegalArgumentException
- ¼Ó¼º¸íÀÌ ¹«È¿ÀÎ °æ¿ìpublic String getValue(Attributes.Name name)
ÀÌ ¸Þ¼µå´Â ´ÙÀ½°ú °°ÀÌ Á¤Àǵ˴ϴÙ.
return (String) get(name);
name
- Attributes.Name °´Ã¼
public Object put(Object name, Object value)
Map <Object,
Object >
³»ÀÇ put
name
- ¼Ó¼º¸ívalue
- ¼Ó¼º°ª
ClassCastException
- À̸§ÀÌ Attributes.Name°¡ ¾Æ´Ñ °æ¿ì, ȤÀº °ªÀÌ String°¡ ¾Æ´Ñ °æ¿ìpublic String putValue(String name, String value)
ÀÌ ¸Þ¼µå´Â ´ÙÀ½°ú °°ÀÌ Á¤Àǵ˴ϴÙ.
return (String) put(new Attributes.Name(name), value);
name
- ¼Ó¼º¸íÀÇ Ä³¸¯ÅÍ ¶óÀÎvalue
- ¼Ó¼º°ª
IllegalArgumentException
- ¼Ó¼º¸íÀÌ ¹«È¿ÀÎ °æ¿ìpublic Object remove(Object name)
Map <Object,
Object >
³»ÀÇ remove
name
- ¼Ó¼º¸í
public boolean containsValue(Object value)
Map <Object,
Object >
³»ÀÇ containsValue
value
- ¼Ó¼º°ª
public boolean containsKey(Object name)
Map <Object,
Object >
³»ÀÇ containsKey
name
- ¼Ó¼º¸í
public void putAll(Map <?,?> attr)
Map <Object,
Object >
³»ÀÇ putAll
attr
- ÀÌ ¸Ê¿¡ Æ÷ÇԵǴ Attributes
ClassCastException
- ¼Ó¼ºÀÌ Attributes°¡ ¾Æ´Ñ °æ¿ìpublic void clear()
Map <Object,
Object >
³»ÀÇ clear
public int size()
Map <Object,
Object >
³»ÀÇ size
public boolean isEmpty()
Map <Object,
Object >
³»ÀÇ isEmpty
public Set <Object > keySet()
Map <Object,
Object >
³»ÀÇ keySet
public Collection <Object > values()
Map <Object,
Object >
³»ÀÇ values
public Set <Map.Entry <Object, Object >> entrySet()
Map <Object,
Object >
³»ÀÇ entrySet
public boolean equals(Object o)
Map <Object,
Object >
³»ÀÇ equals
Object
³»ÀÇ equals
o
- ºñ±³ ´ë»óÀÇ Object
Object.hashCode()
,
Hashtable
public int hashCode()
Map <Object,
Object >
³»ÀÇ hashCode
Object
³»ÀÇ hashCode
Object.equals(java.lang.Object)
,
Hashtable
public Object clone()
public Object clone() { return new Attributes(this); }¼Ó¼º¸í ¹× °ªÀº ±×°Íµé ÀÚ½ÅÀÌ ºÒº¯À̹ǷΠ¸®ÅÏµÈ Attributes´Â ¿øÀÇ Attributes¿¡ ¿µÇâÀ» ¹ÌÄ¡Áö ¾Ê°í ¾ÈÀüÇÏ°Ô º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.
Object
³»ÀÇ clone
Cloneable
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.