|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectorg.xml.sax.helpers.AttributesImpl
org.xml.sax.ext.Attributes2Impl
public class Attributes2Impl
È®Àå ÇïÆÛ´Â Attributes Á¤º¸¸¦ Ãß°¡ÇØ Attributes2
ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÕ´Ï´Ù.
ÀÌ ¸ðµâÀº ¿ø½Ã ÄÚµå, ¹®¼ ¸ðµÎ °ø°³ µµ¸ÞÀο¡ ³õ¿©Á® ÀÖ½À´Ï´Ù. µû¶ó¼, ³»¿ë¿¡ °üÇѺ¸ÁõÀº ÀÏÀý Á¦°øµÇÁö ¾Ê½À´Ï´Ù.
À̰ÍÀº SAX2 ÄÚ¾î µð½ºÆ®¸®ºä¼ÇÀÎ ¸¸Å Æ÷ÇԵǴ °ÍÀÌ ¾Æ´Õ´Ï´Ù.
°¢ ¼Ó¼ºÀÇ ¡¸specified¡¹Ç÷¡±×´Â copy constructor·Î false ·Î ¼³Á¤µÉ±î setSpecified(int, boolean)
¸¦
»ç¿ëÇØ false ·Î ¼³Á¤µÇÁö ¾Ê´Â ÇÑ Ç×»ó true ÀÔ´Ï´Ù. °°ÀÌ °¢ ¼Ó¼ºÀÇ ¡¸declared¡¹Ç÷¡±×´Â µðÆúÆ®¿¡
ÇÑ ¼Ó¼º ( ¡¸specified¡¹´Â false), CDATA ÀÌ¿ÜÀÇ ¼Ó¼º, ¶Ç´Â setDeclared(int, boolean)
¸¦
»ç¿ëÇØ true ·Î ¼³Á¤µÇ¾úÀ» °æ¿ì¸¦ Á¦¿ÜÇØ Ç×»ó false°¡ µË´Ï´Ù. ¼öµ¿¿¡ ÀÇÇØ ¼Ó¼ºÀÇ ÇüŸ¦ º¯°æÇÏ´Â °æ¿ì´Â ±× ¡¸specified¡¹Ç÷¡±×¸¦ ÀÏÄ¡½Ã۵µ·Ï
º¯°æÇÒ Çʿ䰡 ¹ß»ýÇÏ´Â Àϵµ ÀÖ½À´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
Attributes2Impl ()
»õ·Î¿î ºñ¾îÀÖ´Â Attributes2Impl °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
Attributes2Impl (Attributes atts)
±âÁ¸ÀÇ Attributes °´Ã¼ ¶Ç´Â Attributes2 °´Ã¼¸¦ Ä«ÇÇÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addAttribute (String uri,
String localName,
String qName,
String type,
String value)
¸®½ºÆ®ÀÇ ¸¶Áö¸·¿¡ ¼Ó¼ºÀ» Ãß°¡ÇØ, specified¡¡Ç÷¡±×¸¦ true ·Î ¼³Á¤ÇÕ´Ï´Ù. |
boolean |
isDeclared (int index)
¼Ó¼ºÀÇ declared Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isDeclared (String qName)
¼Ó¼ºÀÇ declared Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isDeclared (String uri,
String localName)
¼Ó¼ºÀÇ declared Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isSpecified (int index)
¼Ó¼ºÀÇ specified Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isSpecified (String qName)
¼Ó¼ºÀÇ specified Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isSpecified (String uri,
String localName)
¼Ó¼ºÀÇ specified Ç÷¡±×ÀÇ ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
void |
removeAttribute (int index)
¸®½ºÆ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù. |
void |
setAttributes (Attributes atts)
Attributes °´Ã¼ Àüü¸¦ Ä«ÇÇÇÕ´Ï´Ù. |
void |
setDeclared (int index,
boolean value)
ƯÁ¤ÀÇ ¼Ó¼ºÀÇ declared Ç÷¡±×¿¡ °ªÀ» ÇÒ´çÇÕ´Ï´Ù. |
void |
setSpecified (int index,
boolean value)
ƯÁ¤ÀÇ ¼Ó¼ºÀÇ specified Ç÷¡±×¿¡ °ªÀ» ÇÒ´çÇÕ´Ï´Ù. |
Ŭ·¡½º org.xml.sax.helpers. AttributesImpl ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clear,
getIndex,
getIndex,
getLength,
getLocalName,
getQName,
getType,
getType,
getType,
getURI,
getValue,
getValue,
getValue,
setAttribute,
setLocalName,
setQName,
setType,
setURI,
setValue |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÀÎÅÍÆäÀ̽º org.xml.sax. Attributes ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getIndex,
getIndex,
getLength,
getLocalName,
getQName,
getType,
getType,
getType,
getURI,
getValue,
getValue,
getValue |
»ý¼ºÀÚ »ó¼¼ |
---|
public Attributes2Impl()
public Attributes2Impl(Attributes atts)
ÀÌ »ý¼ºÀڴ ƯÈ÷ startElement
À̺¥Æ®³»¿¡¼ µµ¿òÀÌ µË´Ï´Ù.
atts
- ±âÁ¸ÀÇ Attributes °´Ã¼¸Þ¼µåÀÇ »ó¼¼ |
---|
public boolean isDeclared(int index)
Attributes2
³»ÀÇ isDeclared
index
- ¼Ó¼º À妽º (Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ȴÙ)
public boolean isDeclared(String uri, String localName)
Attributes2
³»ÀÇ isDeclared
uri
- À̸§ °ø°£ URI. À̸§ÀÌ À̸§ °ø°£ URI¸¦ °¡ÁöÁö ¾Ê´Â °æ¿ì´Â °ø¹®ÀÚ¿localName
- ¼Ó¼ºÀÇ ·ÎÄøí
public boolean isDeclared(String qName)
Attributes2
³»ÀÇ isDeclared
qName
- XML
Á¢µÎ»ç ÷ºÎÀÇ ¼ö½Ä¸í
public boolean isSpecified(int index)
Attributes2
³»ÀÇ isSpecified
index
- ¼Ó¼º À妽º (Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ȴÙ)
ArrayIndexOutOfBoundsException
- ÁöÁ¤µÈ À妽º°¡ ¼Ó¼ºÀ» ½Äº°ÇÏÁö ¾Ê´Â °æ¿ìpublic boolean isSpecified(String uri, String localName)
Attributes2
³»ÀÇ isSpecified
uri
- À̸§ °ø°£ URI. À̸§ÀÌ À̸§ °ø°£ URI¸¦ °¡ÁöÁö ¾Ê´Â °æ¿ì´Â °ø¹®ÀÚ¿localName
- ¼Ó¼ºÀÇ ·ÎÄøí
IllegalArgumentException
- ÁöÁ¤µÈ À̸§ÀÌ ¼Ó¼ºÀ» ½Äº°ÇÏÁö ¾Ê´Â °æ¿ìpublic boolean isSpecified(String qName)
Attributes2
³»ÀÇ isSpecified
qName
- XML
Á¢µÎ»ç ÷ºÎÀÇ ¼ö½Ä¸í
IllegalArgumentException
- ÁöÁ¤µÈ À̸§ÀÌ ¼Ó¼ºÀ» ½Äº°ÇÏÁö ¾Ê´Â °æ¿ìpublic void setAttributes(Attributes atts)
AttributesImpl
³»ÀÇ setAttributes
atts
- Ä«ÇÇÇÏ´Â ¼Ó¼ºAttributesImpl.setAttributes(org.xml.sax.Attributes)
public void addAttribute(String uri, String localName, String qName, String type, String value)
setSpecified(int, boolean)
¸¦
»ç¿ëÇÕ´Ï´Ù.
¡¸type¡¹¼Ó¼ºÀÌ CDATA°¡ ¾Æ´Ñ ÇÑ, ÀÌ ¼Ó¼ºÀº DTD¿¡ ¼±¾ðµÇ°í ÀÖ´Â °ÍÀ¸·Î¼ ¸¶Å© µË´Ï´Ù. Ç÷¡±×ÀÇ °ªÀ» CDATA ¼Ó¼º¿¡ ´ëÇØ¼ true ·Î ¼³Á¤ÇÏ·Á¸é setDeclared(int, boolean)
¸¦
»ç¿ëÇÕ´Ï´Ù.
AttributesImpl
³»ÀÇ addAttribute
uri
- À̸§ °ø°£ URI. »ç¿ë °¡´ÉÇÑ À̸§ °ø°£ URI°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì³ª, À̸§ °ø°£ 󸮰¡ ½ÇÇàµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â °ø¹®ÀÚ¿localName
- ·ÎÄøí. À̸§ °ø°£ 󸮸¦ ÇÏÁö ¾ÊÀº °æ¿ì´Â °ø¹®ÀÚ¿qName
- ÀüÅ©±â½ÄÀÚ¸¦ °¡Áö´Â ¼ö½Ä¸í. ¼ö½Ä¸íÀ» »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì´Â °ø¹®ÀÚ¿type
- ¼Ó¼ºÇüÀ» ³ªÅ¸³»´Â ij¸¯ÅÍ ¶óÀÎvalue
- ¼Ó¼º°ªAttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void removeAttribute(int index)
AttributesImpl
񃬣:
AttributesImpl
³»ÀÇ removeAttribute
index
- ¼Ó¼º À妽º (Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ȴÙ)public void setDeclared(int index, boolean value)
index
- ¼Ó¼º À妽º (Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ȴÙ)value
- ¸ñÀûÀÇ Ç÷¡±×Ä¡
ArrayIndexOutOfBoundsException
- ÁöÁ¤µÈ À妽º°¡ ¼Ó¼ºÀ» ½Äº°ÇÏÁö ¾Ê´Â °æ¿ìAttributesImpl.setType(int, java.lang.String)
public void setSpecified(int index, boolean value)
index
- ¼Ó¼º À妽º (Á¦·Î·ÎºÎÅÍ ½ÃÀ۵ȴÙ)value
- ¸ñÀûÀÇ Ç÷¡±×Ä¡
ArrayIndexOutOfBoundsException
- ÁöÁ¤µÈ À妽º°¡ ¼Ó¼ºÀ» ½Äº°ÇÏÁö ¾Ê´Â °æ¿ì
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.