|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.html.parser.DTD
SGML DTD ÀÇ Ç¥ÇöÀÔ´Ï´Ù. DTD ´Â ¹®¼ÀÇ ±¸¹®À» ±â¼úÇÑ °ÍÀ̾î, HTML ¹®¼ÀÇ ÇØ¼®¿¡ »ç¿ëµË´Ï´Ù. ÀÌ ³»ºÎ¿¡´Â ¿ä¼Ò¿Í ±× ¼Ó¼ºÀÇ ¸®½ºÆ®, ¹× DTD ·Î Á¤ÀÇµÈ ¿£Æ¼Æ¼ÀÇ ¸®½ºÆ®°¡ ÀúÀåµË´Ï´Ù.
Element
,
AttributeList
,
ContentModel
,
Parser
ÇʵåÀÇ °³¿ä | |
Element |
applet
|
Element |
base
|
Element |
body
|
Hashtable |
elementHash
|
Vector |
elements
|
Hashtable |
entityHash
|
static int |
FILE_VERSION
|
Element |
head
|
Element |
html
|
Element |
isindex
|
Element |
meta
|
String |
name
|
Element |
p
|
Element |
param
|
Element |
pcdata
|
Element |
title
|
ÀÎÅÍÆäÀ̽º javax.swing.text.html.parser. DTDConstants ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
ANY , CDATA , CONREF , CURRENT , DEFAULT , EMPTY , ENDTAG , ENTITIES , ENTITY , FIXED , GENERAL , ID , IDREF , IDREFS , IMPLIED , MD , MODEL , MS , NAME , NAMES , NMTOKEN , NMTOKENS , NOTATION , NUMBER , NUMBERS , NUTOKEN , NUTOKENS , PARAMETER , PI , PUBLIC , RCDATA , REQUIRED , SDATA , STARTTAG , SYSTEM |
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
DTD (String name)
ÁöÁ¤µÈ À̸§À» °¡Áö´Â »õ·Î¿î DTD ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected AttributeList |
defAttributeList (String name,
int type,
int modifier,
String value,
String values,
AttributeList atts)
AttributeList ¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
protected ContentModel |
defContentModel (int type,
Object obj,
ContentModel next)
»õ·Î¿î ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
protected Element |
defElement (String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
String [] exclusions,
String [] inclusions,
AttributeList atts)
Element ¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
Entity |
defEntity (String name,
int type,
int ch)
ij¸¯ÅÍ Entity ¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
protected Entity |
defEntity (String name,
int type,
String str)
Entity ¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
void |
defineAttributes (String name,
AttributeList atts)
ÁöÁ¤ÇÑ AttributeList ¿¡ ÀÏÄ¡ÇÏ´Â Element ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Element |
defineElement (String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
BitSet exclusions,
BitSet inclusions,
AttributeList atts)
ÁöÁ¤ÇÑ ÆÄ¶ó¹ÌÅÍ¿¡ ÀÏÄ¡ÇÏ´Â Element ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Entity |
defineEntity (String name,
int type,
char[] data)
¿£Æ¼Æ¼¸¦ Á¤ÀÇÇÕ´Ï´Ù. |
static DTD |
getDTD (String name)
ÁöÁ¤ÇÑ name ¸¦ °¡Áö´Â DTD ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Element |
getElement (int index)
¿ä¼Ò¸¦ À妽º·Î µ¹·ÁÁÝ´Ï´Ù. |
Element |
getElement (String name)
¿ä¼Ò¸¦ À̸§À¸·Î µ¹·ÁÁÝ´Ï´Ù. |
Entity |
getEntity (int ch)
ij¸¯ÅÍ ¿£Æ¼Æ¼¸¦ ÃëµæÇÕ´Ï´Ù. |
Entity |
getEntity (String name)
¿£Æ¼Æ¼¸¦ À̸§À¸·Î ÃëµæÇÕ´Ï´Ù. |
String |
getName ()
DTD ÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
static void |
putDTDHash (String name,
DTD dtd)
|
void |
read (DataInputStream in)
¾îÄ«À̺ê(archive) µÈ Çü½ÄÀ¸·ÎºÎÅÍ DTD ¸¦ ÀçÀÛ¼ºÇÕ´Ï´Ù. |
String |
toString ()
ÀÌ DTD ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
public String name
public Vector elements
public Hashtable elementHash
public Hashtable entityHash
public final Element pcdata
public final Element html
public final Element meta
public final Element base
public final Element isindex
public final Element head
public final Element body
public final Element applet
public final Element param
public final Element p
public final Element title
public static int FILE_VERSION
»ý¼ºÀÚÀÇ »ó¼¼ |
protected DTD(String name)
name
- À̸§ (»õ·Î¿î DTD ÀÇ String
)¸Þ¼ÒµåÀÇ »ó¼¼ |
public String getName()
public Entity getEntity(String name)
name
String
¿¡ ´ëÀÀÇÏ´Â Entity
public Entity getEntity(int ch)
ch
ij¸¯ÅÍ¿¡ ´ëÀÀÇÏ´Â Entity
public Element getElement(String name)
name
- ¿ä±¸µÈ String
name
¿¡ ´ëÀÀÇÏ´Â Element
. »õ·Ó°Ô ÀÛ¼ºµÇ´Â Àϵµ ÀÖ´Ùpublic Element getElement(int index)
index
- ¿ä±¸µÈ À妽º
index
¿¡ ´ëÀÀÇÏ´Â Element
public Entity defineEntity(String name, int type, char[] data)
name
,type
, ¹× data
·Î ÁöÁ¤µÇ´Â Entity
°¡ Á¸ÀçÇÏ´Â °æ¿ì´Â ±× ¿£Æ¼Æ¼°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â »õ·Î¿î Entity
°¡ ÀÛ¼ºµÇ¾î µ¹·ÁÁÖ¾îÁý´Ï´Ù.
name
- Entity
ÀÇ À̸§ (String
)type
- Entity
ÀÇ Å¸ÀÔdata
- Entity
ÀÇ µ¥ÀÌÅÍ
Entity
. ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â »õ·Î¿î Entity
public Element defineElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, BitSet exclusions, BitSet inclusions, AttributeList atts)
Element
¸¦ µ¹·ÁÁÝ´Ï´Ù. Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â »õ·Î¿î Element
°¡ ÀÛ¼ºµÇ¾î µ¹·ÁÁÖ¾îÁý´Ï´Ù.
name
- Element
ÀÇ À̸§type
- Element
ÀÇ Å¸ÀÔomitStart
- °³½Ã¸¦ »ý·« ÇÏ´Â °æ¿ì´Â true
omitEnd
- Á¾·á¸¦ »ý·« ÇÏ´Â °æ¿ì´Â true
content
- ContentModel
atts
- Element
¸¦ ÁöÁ¤ÇÏ´Â AttributeList
Element
public void defineAttributes(String name, AttributeList atts)
AttributeList
¿¡ ÀÏÄ¡ÇÏ´Â Element
¸¦ µ¹·ÁÁÝ´Ï´Ù. Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â »õ·Î¿î Element
°¡ ÀÛ¼ºµÇ¾î µ¹·ÁÁÖ¾îÁý´Ï´Ù.
name
- Element
ÀÇ À̸§atts
- Element
¸¦ ÁöÁ¤ÇÏ´Â AttributeList
Element
public Entity defEntity(String name, int type, int ch)
Entity
¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù.
name
- ¿£Æ¼Æ¼ÀÇ À̸§
Entity
protected Entity defEntity(String name, int type, String str)
Entity
¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù.
name
- ¿£Æ¼Æ¼ÀÇ À̸§
Entity
protected Element defElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String [] exclusions, String [] inclusions, AttributeList atts)
Element
¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù.
Element
protected AttributeList defAttributeList(String name, int type, int modifier, String value, String values, AttributeList atts)
AttributeList
¸¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù.
name
- ¼Ó¼º ¸®½ºÆ®ÀÇ À̸§
AttributeList
protected ContentModel defContentModel(int type, Object obj, ContentModel next)
type
- »õ·Î¿î ÄÁÅÙÃ÷ ¸ðµ¨ÀÇ Å¸ÀÔ
ContentModel
public String toString()
Object
³»ÀÇ toString
public static void putDTDHash(String name, DTD dtd)
public static DTD getDTD(String name) throws IOException
name
¸¦ °¡Áö´Â DTD ¸¦ µ¹·ÁÁÝ´Ï´Ù. ±× À̸§ÀÇ DTD °¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â ÀÛ¼ºÇØ µ¹·ÁÁÝ´Ï´Ù. À̸§¿¡ Æ÷ÇԵǴ ´ë¹®ÀÚ´Â ¼Ò¹®ÀÚ¿¡ º¯È¯µË´Ï´Ù.
name
¿¡ ´ëÀÀÇÏ´Â DTD
IOException
public void read(DataInputStream in) throws IOException
in
- read¿øÀÇ DataInputStream
IOException
|
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.