|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.xml.validation.ValidatorHandler
public abstract class ValidatorHandler
SAX ½ºÆ®¸²¿¡ À¯È¿ÇÑ ½ºÆ®¸®¹Ö ¹ß¸® µ¥ÀÌÅÍ.
ValidatorHandler
°´Ã¼´Â thread ¼¼ÀÌÇÁ°¡ ¾Æ´Ï°í, ÀçÀÔ ºÒ°¡´ÉÇÑ °´Ã¼ÀÔ´Ï´Ù. Áï, ¾îÇø®ÄÉÀ̼ÇÃø¿¡¼ Ç×»ó º¹¼öÀÇ thread·ÎºÎÅÍ 1°³
ValidatorHandler
°´Ã¼°¡ »ç¿ëµÇÁö ¾Ê°Ô È®ÀÎÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
ValidatorHandler
´Â
SAX À̺¥Æ®°¡ °ü·ÃµÈ
Schema
¿¡ ±â¼úµÈ ÀÏ·ÃÀÇ Á¦¾à¿¡ µû¸£°í ÀÖ´ÂÁö¸¦ Ã¼Å©ÇØ, ¶ÇÇÑ
SAX À̺¥Æ®¸¦ º¯°æÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î
µðÆúÆ®ÀÇ °ªÀÇ Ãß°¡µîÀ» ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ValidatorHandler
´Â ContentHandler
·ÎºÎÅÍ È®ÀåµÇ°í ÀÖ½À´Ï´Ù¸¸, ¾Æ·¡¿Í °°ÀÌ ±âº»ÀÌ µÇ´Â ContentHandler
¸¦
¼¼·Ã ½Ã۰í ÀÖ½À´Ï´Ù.
uri
, localName
¹× qname
¿¡
SAX ·Î ±×°ÍµéÀÌ null ÀÎ °ÍÀÌ Çã°¡µÇ°í ÀÖ´Â °æ¿ì¿¡¼µµ null ÀÌ¿ÜÀÇ String¸¦ ¹ÞÀ» Çʿ䰡 ÀÖ´Ù. °°ÀÌ »ç¿ëÀÚ
ÁöÁ¤ ContentHandler
´Â 3 °³ ¸ðµç ÆÄ¶ó¹ÌÅÍ¿¡ null ÀÌ¿ÜÀÇ String¸¦ ¹Þ´Â´ÙValidatorHandler
ContentHandler.startPrefixMapping(String, String)
¹× ContentHandler.endPrefixMapping(String)
°¡ ¿Ã¹Ù¸£°Ô ºÒ·Á°¡
°í ÀÖ´ÂÁö¸¦ È®ÀÎÇÒ Çʿ䰡 ÀÖ´Ù. °°ÀÌ »ç¿ëÀÚ
ÁöÁ¤ ContentHandler
Àº startPrefixMapping/endPrefixMapping À̺¥Æ®¸¦ ¹Þ´Â´Ù. ValidatorHandler
°¡ Ãß°¡ÀÇ À̸§ °ø°£ ¹ÙÀεùÀ» ¾ò´ÂÀÎ °æ¿ì, »ç¿ëÀÚ
ÁöÁ¤ ContentHandler
Àº Ãß°¡µÈ startPrefixMapping/endPrefixMapping À̺¥Æ®¸¦ ¹Þ´Â´ÙContentHandler.startElement(String, String, String, Attributes)
¸Þ¼µå Attributes
´Â xmlns* ¼Ó¼ºÀ» Æ÷ÇÔÇÑ °æ¿ì¿Í Æ÷ÇÔÇÏÁö ¾Ê´Â °æ¿ì°¡ ÀÖ´Ù
startDocument ¸Þ¼µå°¡ ºÒ·Á °¥ ¶§¸¶´Ù ValidatorHandler
´Â ÀÚµ¿ÀûÀ¸·Î ¸®¼Â µË´Ï´Ù.
ÀÌ »ç¾ç¿¡¼´Â ValidatorHandler
¸ðµç ±¸ÇöÀ¸·Î ÀνÄÇÒ Çʿ䰡 ÀÖ´Â ´ÙÀ½ÀÇ ±â´ÉÀ» Á¤ÀÇÇϰí ÀÖ½À´Ï´Ù.
http://xml.org/sax/features/namespace-prefixes
ÀÌ ±â´ÉÀº ValidatorHandler
°¡ ¿øÀÇ SAX À̺¥Æ® ½ºÆ®¸²¿¡ Á¸ÀçÇÏÁö ¾Ê´Â À̸§ °ø°£ ¹ÙÀεùÀ» ¾ò´Â ¹æ¹ýÀ» Á¦¾îÇÕ´Ï´Ù. ÀÌ ±â´ÉÀÌ true ·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì´Â »ç¿ëÀÚ
ContentHandler
·Î ContentHandler.startElement(String, String, String, Attributes)
Äݹé Attributes
°´Ã¼ÀÇ ´ëÀÀÇÏ´Â xmlns*
¼Ó¼ºÀ» È®ÀÎÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â »ç¿ëÀÚ
ÁöÁ¤ ContentHandler
¿¡°Ô °Ç³×Áö´Â Attributes
¿¡xmlns*
¼Ó¼ºÀÌ Ãß°¡µÇÁö ¾Ê½À´Ï´Ù.
ÀÌ º¯È¯¿¡ °ü°è¾øÀÌ, À̸§ °ø°£ ¹ÙÀεùÀº Ç×»ó »ç¿ëÀÚ
ÁöÁ¤ ContentHandler
ContentHandler.startPrefixMapping(String, String)
¹× ContentHandler.endPrefixMapping(String)
¸¦
°³ÀÔ½ÃÄÑ ¾îÇø®ÄÉÀ̼ǿ¡ ÅëÁöµË´Ï´Ù.
ÀÌ ±â´ÉÀº ValidatorHandler
·Î SAX À̺¥Æ®¸¦ ¹Þ´Â ¹æ¹ý¿¡´Â ¿µÇâÀ» ÁÖÁö ¾Ê½À´Ï´Ù. SAX À̺¥Æ®ÀÇ È®Àå ¹æ¹ýÀ» º¯°æÇÒ »ÓÀÔ´Ï´Ù.
ÀÌ ±â´ÉÀº µðÆúÆ®·Î false
·Î
¼³Á¤µË´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
protected |
ValidatorHandler ()
»ó¼Ó Ŭ·¡½ºÀÇ »ý¼ºÀÚ ÀÔ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
abstract ContentHandler |
getContentHandler ()
È®ÀåµÈ °ËÁõ °á°ú¸¦ ¹Þ´Â ContentHandler ¸¦
ÃëµæÇÕ´Ï´Ù. |
abstract ErrorHandler |
getErrorHandler ()
ÀÌ ValidatorHandler ·Î ¼³Á¤µÈ ÇöÀç ErrorHandler ¸¦
ÃëµæÇÕ´Ï´Ù. |
boolean |
getFeature (String name)
±â´É Ç÷¡±×ÀÇ °ªÀ» °Ë»öÇÕ´Ï´Ù. |
Object |
getProperty (String name)
ÇÁ·ÎÆÛƼġ¸¦ °Ë»öÇÕ´Ï´Ù. |
abstract LSResourceResolver |
getResourceResolver ()
ÀÌ ValidatorHandler ·Î ¼³Á¤µÈ ÇöÀç LSResourceResolver ¸¦
ÃëµæÇÕ´Ï´Ù. |
abstract TypeInfoProvider |
getTypeInfoProvider ()
ÀÌ ValidatorHandler TypeInfoProvider ±¸ÇöÀ» ÃëµæÇÕ´Ï´Ù. |
abstract void |
setContentHandler (ContentHandler receiver)
È®ÀåµÈ °ËÁõ °á°ú¸¦ ¹Þ´Â ContentHandler ¸¦
¼³Á¤ÇÕ´Ï´Ù. |
abstract void |
setErrorHandler (ErrorHandler errorHandler)
°ËÁõÀ¸·Î ¹ß»ýÇÑ ¿¡·¯¸¦ ¹Þµµ·Ï ErrorHandler ¸¦
¼³Á¤ÇÕ´Ï´Ù. |
void |
setFeature (String name,
boolean value)
±â´É Ç÷¡±×ÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setProperty (String name,
Object object)
ÇÁ·ÎÆÛƼġ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
abstract void |
setResourceResolver (LSResourceResolver resourceResolver)
°ËÁõ½ÃÀÇ ÀÚ¿ø ÇØ°áÀ» Ä¿½ºÅ͸¶ÀÌÁî Çϵµ·Ï LSResourceResolver ¸¦
¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÀÎÅÍÆäÀ̽º org.xml.sax. ContentHandler ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
characters,
endDocument,
endElement,
endPrefixMapping,
ignorableWhitespace,
processingInstruction,
setDocumentLocator,
skippedEntity,
startDocument,
startElement,
startPrefixMapping |
»ý¼ºÀÚ »ó¼¼ |
---|
protected ValidatorHandler()
ÀÌ »ý¼ºÀÚ´Â ¾Æ¹«°Íµµ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù.
»ó¼Ó Ŭ·¡½º¿¡¼´Â null ErrorHandler
¹× null LSResourceResolver
ValidatorHandler
°´Ã¼¸¦ ÀÛ¼ºÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
¸Þ¼µåÀÇ »ó¼¼ |
---|
public abstract void setContentHandler(ContentHandler receiver)
ContentHandler
¸¦
¼³Á¤ÇÕ´Ï´Ù.
ContentHandler
¸¦
ÁöÁ¤ÇßÀ» °æ¿ì, ValidatorHandler
´Â ÇÊÅͷμ ±â´ÉÇØ, ±âº»ÀûÀ¸·Î ¼ö½Å À̺¥Æ®°¡ ÁöÁ¤µÈ ContentHandler
¿¡ Ä«ÇÇÇÕ´Ï´Ù.
ÀÌ ½ÇÇàÀ¸·Î ValidatorHandler
´Â
¿¹¸¦ µé¾î µðÆúÆ®ÀÇ ¼Ó¼ºÀ» Ãß°¡ÇØ, À̺¥Æ®¸¦ º¯°æÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ValidatorHandler
´Â ¾î´À Á¤µµ À̺¥Æ®¸¦ ¹öÆÛ ÇÒ ¼ö ÀÖ½À´Ï´Ù
¸¸, ÆÄ¼·Î ValidatorHandler
¸¦
»ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÏ·Á¸é,
¾Æ·¡ÀÇ ¿ä°ÇÀÌ Ã¤¿öÁö°í ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù.
ValidatorHandler
·Î ContentHandler.startElement(String, String, String, Attributes)
,
ContentHandler.endElement(String, String, String)
,
ContentHandler.startDocument()
,
¶Ç´Â ContentHandler.endDocument()
¸¦
È£ÃâÇÏ´Â °æ¿ì¿¡
ÄݹéÀÌ µ¹¾Æ¿À±â Àü¿¡
»ç¿ëÀÚ
ÁöÁ¤ ContentHandler
·Î °°Àº À̺¥Æ®¿¡ ´ëÇØ¼
°°Àº ¸Þ¼µå¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ´ÙValidatorHandler
´Â ÀԷ¿¡ Á¸ÀçÇϰí ÀÖÁö ¾Ê´Â »õ·Î¿î ¿ä¼Ò¸¦ ÃëµæÇÒ ¼ö ¾ø´ÙValidatorHandler
´Â ÀԷ¿¡ Á¸ÀçÇϰí ÀÖÁö ¾Ê´Â ¼Ó¼ºÀ» »èÁ¦ÇÒ ¼ö ¾ø´Ù
ÁöÁ¤µÈ ContentHandler
ÄÝ¹é ¸Þ¼µå°¡ ¿¹¿Ü¸¦ Throw ÇßÀ» °æ¿ì, ValidatorHandler
·ÎºÎÅÍ °°Àº ¿¹¿Ü °´Ã¼¸¦ Throw ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ErrorHandler
¿¡´Â ±×·¯ÇÑ ¿¹¿Ü¸¦ ÅëÁöÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä.
ÀÌ ¸Þ¼µå´Â °ËÁõÀÇ µµÁß¿¡µµ È£ÃâÇÒ ¼ö ÀÖ½À´Ï´Ù .
receiver
- ContentHandler
¶Ç´Â null Ä¡public abstract ContentHandler getContentHandler()
ContentHandler
¸¦
ÃëµæÇÕ´Ï´Ù.
getContentHandler()
¸Þ¼µå¿¡ ÀÇÇØ ¸¶Áö¸·¿¡ ¼³Á¤µÈ °´Ã¼, ¶Ç´Â ÀÌ ValidatorHandler
°¡ ÀÛ¼ºµÇ°í ³ª¼, ±× ¸Þ¼µå°¡ ºÒ·Á°¡
Áö ¾ÊÀº °æ¿ì´Â nullÀ»
µ¹·ÁÁÖ´ÂsetContentHandler(ContentHandler)
public abstract void setErrorHandler(ErrorHandler errorHandler)
ErrorHandler
¸¦
¼³Á¤ÇÕ´Ï´Ù.
¿¡ ·¯ Çڵ鷯¸¦ »ç¿ëÇØ, °ËÁõ½ÃÀÇ ¿¡·¯ ó¸® ÇÁ·Î¼¼½º¸¦ Ä¿½ºÅ͸¶ÀÌÁî ÇÒ ¼ö ÀÖ½À´Ï´Ù. ErrorHandler
¸¦
¼³Á¤Çϸé, °ËÁõÀ¸·Î ¹ß°ßµÈ ¿¡·¯´Â ¿ì¼± ErrorHandler
¿¡ º¸³»Áý´Ï´Ù.
¿¡ ·¯ Çڵ鷯´Â Çڵ鷯·ÎºÎÅÍ SAXException
¸¦
Throw ÇØ, °ËÁõÀ» Áï½Ã Áß´ÜÇÒ ¼ö ÀÖ½À´Ï´Ù
. ¶Ç´Â ¿¡·¯¸¦ ȸ鿡 Ãâ·ÂÇϰųªErrorHandler
·ÎºÎÅÍ Á¤»óÀûÀ¸·Î µ¹¾Æ¿Í °ËÁõÀ» ¼ÓÇà½ÃŰ°Å³ª ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ErrorHandler
·ÎºÎÅÍ Throwable
°¡ Throw µÇ¾úÀ» °æ¿ì, °°Àº Throwable
°´Ã¼°¡ Call StackÀÇ ·çÆ®¿¡ ´ëÇØ¼ ¹ß»ý µË´Ï´Ù.
ValidatorHandler
´Â ErrorHandler
¿¡ ÃÖÃÊ·Î º¸°íÇϱâ Àü¿¡ SAXException
¸¦
Throw ÇÒ ¼ö ¾ø½À´Ï´Ù.
ErrorHandler
°¡ nullÀÎ °æ¿ì, ±¸ÇöÀº ´ÙÀ½ ErrorHandler
°¡ ¼³Á¤µÇ¾î ÀÖ´Â °Í°ú °°°Ô µ¿ÀÛÇÕ´Ï´Ù.
class DraconianErrorHandler implementsErrorHandler
{ public void fatalError(SAXParseException
e ) throwsSAXException
{ throw e; } public void error(SAXParseException
e ) throwsSAXException
{ throw e; } public void warning(SAXParseException
e ) throwsSAXException
{ // noop } }
»õ·Î¿î ValidatorHandler
°´Ã¼°¡ ÀÛ¼ºµÇ¸é, ÃÖÃÊ·Î ÀÌ Çʵå´Â null ·Î ¼³Á¤µË´Ï´Ù.
errorHandler
- ¼³Á¤ÇÏ´Â »õ·Î¿î ¿¡·¯ Çڵ鷯. ÀÌ ÆÄ¶ó¹ÌÅÍ´Â nullµµ °¡´Épublic abstract ErrorHandler getErrorHandler()
ValidatorHandler
·Î ¼³Á¤µÈ ÇöÀç ErrorHandler
¸¦
ÃëµæÇÕ´Ï´Ù.
setErrorHandler(ErrorHandler)
¸Þ¼µå¿¡ ÀÇÇØ ¸¶Áö¸·¿¡ ¼³Á¤µÈ °´Ã¼, ¶Ç´Â ÀÌ ValidatorHandler
°¡ ÀÛ¼ºµÇ°í ³ª¼, ±× ¸Þ¼µå°¡ ºÒ·Á°¡
Áö ¾ÊÀº °æ¿ì´Â nullÀ»
µ¹·ÁÁÖ´ÂsetErrorHandler(ErrorHandler)
public abstract void setResourceResolver(LSResourceResolver resourceResolver)
LSResourceResolver
¸¦
¼³Á¤ÇÕ´Ï´Ù.
ValidatorHandler
´Â °ËÁõ½Ã¿¡ ¿ÜºÎ ÀÚ¿øÀ» °Ë»öÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì¿¡ LSResourceResolver
¸¦
»ç¿ëÇÕ´Ï´Ù¸¸, ¾ö¹ÐÇÏ°Ô ¡¸¿ÜºÎ ÀÚ¿øÀÇ °Ë»ö¡¹À» ±¸¼ºÇÏ´Â °ÍÀº schema ¾ð¾î¿¡ ÀÇÇØ ´Ù¸¨´Ï´Ù.
LSResourceResolver
°¡ nullÀÎ °æ¿ì, ±¸ÇöÀº ´ÙÀ½ LSResourceResolver
°¡ ¼³Á¤µÇ¾î ÀÖ´Â °Í°ú °°°Ô µ¿ÀÛÇÕ´Ï´Ù.
class DumbLSResourceResolver implementsLSResourceResolver
{ publicLSInput
resolveResource( String publicId, String systemId, String baseURI) { return null; // always return null } }
LSResourceResolver
°¡ RuntimeException
(¶Ç´Â ±× »ó¼Ó Ŭ·¡½ºÀÇ ÀνºÅϽº)¸¦ Throw Çϸé, ValidatorHandler
´Â ±¸¹® ºÐ¼®À» ÁßÁöÇØ, validate
¸Þ¼µåÀÇ È£ÃâÃøÀº °°Àº RuntimeException
¸¦
¹Þ½À´Ï´Ù.
»õ·Î¿î ValidatorHandler
°´Ã¼°¡ ÀÛ¼ºµÇ¸é, ÃÖÃÊ·Î ÀÌ Çʵå´Â null ·Î ¼³Á¤µË´Ï´Ù.
resourceResolver
- ¼³Á¤ÇÏ´Â »õ·Î¿î ÀÚ¿ø ¸®Àý¹ö. ÀÌ ÆÄ¶ó¹ÌÅÍ´Â nullµµ °¡´Épublic abstract LSResourceResolver getResourceResolver()
ValidatorHandler
·Î ¼³Á¤µÈ ÇöÀç LSResourceResolver
¸¦
ÃëµæÇÕ´Ï´Ù.
setResourceResolver(LSResourceResolver)
¸Þ¼µå¿¡ ÀÇÇØ ¸¶Áö¸·¿¡ ¼³Á¤µÈ °´Ã¼, ¶Ç´Â ÀÌ ValidatorHandler
°¡ ÀÛ¼ºµÇ°í ³ª¼, ±× ¸Þ¼µå°¡ ºÒ·Á°¡
Áö ¾ÊÀº °æ¿ì´Â nullÀ»
µ¹·ÁÁÖ´ÂsetErrorHandler(ErrorHandler)
public abstract TypeInfoProvider getTypeInfoProvider()
ValidatorHandler
TypeInfoProvider
±¸ÇöÀ» ÃëµæÇÕ´Ï´Ù.
ÃëµæÇÑ TypeInfoProvider
´Â ±¸¹® ºÐ¼®½Ã¿¡ Á¶È¸ÇØ, ¹ß¸® µ¥ÀÌÅÍ¿¡ ÀÇÇØ ÆÇ´ÜµÈ ÇüÅ Á¤º¸¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù.
schema ¾ð¾î¿¡ µû¶ó¼´Â ÇüÅÂÀÇ °³³äÀ» Á¤ÀÇÇϰí ÀÖÁö ¾Ê´Â °Íµµ ÀÖ¾î, ±×·¯ÇÑ ¾ð¾îÀÇ °æ¿ì, ÀÌ ¸Þ¼µå°¡ Áö¿ø µÇÁö ¾Ê´Â °Íµµ ÀÖ½À´Ï´Ù. ±×·¯³ª, ÀÌ »ç¾ç¿¡ ÁذÅÇϱâ À§ÇØ, W3C XML Schema 1.0 ±¸Çö¿¡¼´Â ÀÌ Ã³¸®¸¦ Áö¿ø ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
TypeInfo
°³³äÀ» Áö¿ø
Çϰí ÀÖÁö ¾Ê´Â °æ¿ì. Áö¿ø
Çϰí ÀÖ´Â °æ¿ì´Â null ÀÌ¿ÜÀÇ À¯È¿ÇÑ TypeInfoProvider
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
±â´É¸íÀº ¿ÏÀü ¼ö½Ä URI ÀÔ´Ï´Ù. ValidatorHandler
´Â ±â´É¸íÀ» ÀνÄÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ÀϽÃÀûÀ¸·Î ±× °ªÀ» µ¹·ÁÁÙ ¼ö ¾ø½À´Ï´Ù. ±â´ÉÀÇ °ª¿¡ µû¶ó¼´Â °ËÁõÀÇ ½ÇÇàÀü, ½ÇÇàÁß, ½ÇÇà ÈĵîÀÇ Æ¯Á¤ÀÇ ÄÁÅØ½ºÆ®
À¸·Î ¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
µ¶ÀÚÀûÀÎ URI¿¡ ±Ù°ÅÇØ ÀÛ¼ºµÈ À̸§À» »ç¿ëÇØ, ±¸ÇöÀÚ°¡ µ¶ÀÚÀûÀÎ ±â´ÉÀ» ÀÛ¼ºÇÒ ¼öµµ ÀÖ½À´Ï´Ù (Ãßõ).
name
- ±â´É¸í. null ÀÌ¿ÜÀÇ ¿ÏÀü ¼ö½Ä URI ·Î ³ªÅ¸³»Áø´Ù
SAXNotRecognizedException
- ±â´ÉÀÇ °ªÀ» ÇÒ´çÇØ ¶Ç´Â ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì
SAXNotSupportedException
- ValidatorHandler
°¡ ±â´É¸íÀ» ÀνÄÇÏ´Â °Í¸¸À¸·Î Çö½ÃÁ¡¿¡¼´Â ±× °ªÀ» ÆÇ´ÜÇÒ ¼ö ¾ø´Â °æ¿ì
NullPointerException
- name ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìsetFeature(String, boolean)
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
±â´ÉÀ» »ç¿ëÇØ, ValidatorHandler
°¡ schema¸¦ ±¸¹® ºÐ¼® ÇÏ´Â ¹æ¹ýÀ» Á¦¾îÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ValidatorHandler
´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
±â´É¸íÀº ¿ÏÀü ¼ö½Ä URI ÀÔ´Ï´Ù. ValidatorHandler
´Â ±â´ÉÀÇ °ªÀ» Ç¥½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ÇöÀçÀÇ °ªÀ» º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù. ±â´ÉÀÇ °ª¿¡ µû¶ó¼´Â °ËÁõÀÇ ½ÇÇàÀü, ½ÇÇàÁß, ½ÇÇà ÈĵîÀÇ Æ¯Á¤ÀÇ ÄÁÅØ½ºÆ®¿¡ ¼¸¸ ºÒº¯ ¶Ç´Â °¡º¯ÀÎ °æ¿ì°¡ ÀÖ½À´Ï´Ù.
name
- ±â´É¸í. null ÀÌ¿ÜÀÇ ¿ÏÀü ¼ö½Ä URI ·Î ³ªÅ¸³»Áö´Âvalue
- ±â´ÉÀÇ ¿ä±¸µÈ °ª (true ¶Ç´Â false)
SAXNotRecognizedException
- ±â´ÉÀÇ °ªÀ» ÇÒ´çÇØ ¶Ç´Â ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì
SAXNotSupportedException
- ValidatorHandler
°¡ ±â´É¸íÀ» ÀνÄÇÏ´Â °Í¸¸À¸·Î ¿ä±¸µÈ °ªÀ» ¼³Á¤ÇÒ ¼ö ¾ø´Â °æ¿ì
NullPointerException
- name ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìgetFeature(String)
public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException
ÇÁ·ÎÆÛƼ¸íÀº ¿ÏÀü ¼ö½Ä URI ÀÔ´Ï´Ù. ValidatorHandler
´Â ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ÇöÀçÀÇ °ªÀ» º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù. ÇÁ·ÎÆÛƼÀÇ °ª¿¡ µû¶ó¼´Â °ËÁõÀÇ ½ÇÇàÀü, ½ÇÇàÁß, ½ÇÇà ÈĵîÀÇ Æ¯Á¤ÀÇ ÄÁÅØ½ºÆ®¿¡ ¼¸¸ ºÒº¯ ¶Ç´Â °¡º¯ÀÎ °æ¿ì°¡ ÀÖ½À´Ï´Ù.
ValidatorHandler
´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ¸íÀÇ ¼³Á¤À» ÀνÄÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
name
- ÇÁ·ÎÆÛƼ¸í. null ÀÌ¿ÜÀÇ ¿ÏÀü ¼ö½Ä URI ·Î ³ªÅ¸³»Áö´Âobject
- ¿ä±¸µÈ ÇÁ·ÎÆÛƼġ
SAXNotRecognizedException
- ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÇÒ´çÇØ ¶Ç´Â ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì
SAXNotSupportedException
- ValidatorHandler
°¡ ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÏ´Â °Í¸¸À¸·Î ¿ä±¸µÈ °ªÀ» ¼³Á¤ÇÒ ¼ö ¾ø´Â °æ¿ì
NullPointerException
- name ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
ÇÁ·ÎÆÛƼ¸íÀº ¿ÏÀü ¼ö½Ä URI ÀÔ´Ï´Ù. ValidatorHandler
´Â ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ÀϽÃÀûÀ¸·Î ±× °ªÀ» µ¹·ÁÁÙ ¼ö ¾ø½À´Ï´Ù. ÇÁ·ÎÆÛƼÀÇ °ª¿¡ µû¶ó¼´Â °ËÁõÀÇ ½ÇÇàÀü, ½ÇÇàÁß, ½ÇÇà ÈĵîÀÇ Æ¯Á¤ÀÇ ÄÁÅØ½ºÆ®
À¸·Î ¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
ValidatorHandler
´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
µ¶ÀÚÀûÀÎ URI¿¡ ±Ù°ÅÇØ ÀÛ¼ºµÈ À̸§À» »ç¿ëÇØ, ±¸ÇöÀÚ°¡ µ¶ÀÚÀûÀÎ ÇÁ·ÎÆÛƼ¸¦ ÀÛ¼ºÇÒ ¼öµµ ÀÖ½À´Ï´Ù (Ãßõ).
name
- ÇÁ·ÎÆÛƼ¸í. null ÀÌ¿ÜÀÇ ¿ÏÀü ¼ö½Ä URI ·Î ³ªÅ¸³»Áø´Ù
SAXNotRecognizedException
- ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÇÒ´çÇØ ¶Ç´Â ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì
SAXNotSupportedException
- XMLReader°¡ ÇÁ·ÎÆÛƼ¸íÀ» ÀνÄÇÏ´Â °Í¸¸À¸·Î Çö½ÃÁ¡¿¡¼´Â ±× °ªÀ» ÆÇ´ÜÇÒ ¼ö ¾ø´Â °æ¿ì
NullPointerException
- name ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìsetProperty(String, 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 µµ ÂüÁ¶ÇϽʽÿÀ.