JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing.text.html.parser
Ŭ·¡½º ContentModel

java.lang.Object 
  |
  +--javax.swing.text.html.parser.ContentModel
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Serializable

public final class ContentModel
extends Object
implements Serializable

ÄÁÅÙÃ÷ ¸ðµ¨ÀÇ Ç¥ÇöÀÔ´Ï´Ù. ÄÁÅÙÃ÷ ¸ðµ¨Àº ±âº»ÀûÀ¸·Î, Á¦ÇѺÎÀÇ BNF ½ÄÀÔ´Ï´Ù. À̰ÍÀº ÄÁÅÙÃ÷ ¸ðµ¨Àº °áÁ¤¼ºÀ» °¡ÁöÁö ¾ÊÀ¸¸é ¾È µÈ´Ù°í ÇÏ´Â ÀÌÀ¯·ÎºÎÅÍÀÇ Á¦ÇÑÀÔ´Ï´Ù. Áï, ÄÁÅÙÃ÷ ¸ðµ¨À» À¯ÇÑ »óÅ ÀÚµ¿ ÀåÄ¡·Î¼­ Ç¥ÇöÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.

ÀÚ¼¼ÇÑ °ÍÀº ¡¸SGML handbook¡¹556 ÆäÀÌÁöÀÇ ºÎ·Ï H (Annex H)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÇʵåÀÇ °³¿ä
 Object content
          ÄÁÅÙÃ÷ÀÔ´Ï´Ù.
 ContentModel next
          ', '½Ä, '|'½Ä, ȤÀº '&'½Ä¾È¿¡ ÀÖ´Â ´ÙÀ½ÀÇ ÄÁÅÙÃ÷ ¸ðµ¨ÀÔ´Ï´Ù.
 int type
          Å¸ÀÔÀÔ´Ï´Ù. '
 
»ý¼ºÀÚÀÇ °³¿ä
ContentModel ()
           
ContentModel (Element  content)
          ¿ä¼Ò¿¡ ´ëÇÑ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
ContentModel (int type, ContentModel  content)
          Æ¯Á¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
ContentModel (int type, Object  content, ContentModel  next)
          Æ¯Á¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 boolean empty ()
          ÄÁÅÙÃ÷ ¸ðµ¨ÀÌ ÇÏ´ÃÀÇ ÀÔ·Â ½ºÆ®¸²°ú ÀÏÄ¡ÇÏ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Element first ()
          ´ÙÀ½ÀÇ ¿ä¼Ò¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean first (Object  token)
          token °¡ ÀÔ·Â ½ºÆ®¸²ÀÇ ÃÖÃÊÀÇ ÅäÅ«ÀÌ µÇ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 void getElements (Vector  elemVec)
          ÀÌ contentModel ÀÇ ÀϺÎÀÎ ¿ä¼ÒÀÇ ¸®½ºÆ®¸¦ »ç¿ëÇØ, elemVec ¸¦ °»½ÅÇÕ´Ï´Ù.
 String toString ()
          Ä³¸¯ÅÍ ¶óÀÎÀ¸·Î º¯È¯ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

ÇʵåÀÇ »ó¼¼

type

public int type
ŸÀÔÀÔ´Ï´Ù. '*', '? ', '+', ', ', '|', '&'ÀÇ ¾î¶² °ÍÀΰ¡ÀÔ´Ï´Ù.


content

public Object  content
ÄÁÅÙÃ÷ÀÔ´Ï´Ù. Element ¶Ç´Â ContentModel ÀÔ´Ï´Ù.


next

public ContentModel  next
', '½Ä, '|'½Ä, ȤÀº '&'½Ä¾È¿¡ ÀÖ´Â ´ÙÀ½ÀÇ ÄÁÅÙÃ÷ ¸ðµ¨ÀÔ´Ï´Ù.

»ý¼ºÀÚÀÇ »ó¼¼

ContentModel

public ContentModel()

ContentModel

public ContentModel(Element  content)
¿ä¼Ò¿¡ ´ëÇÑ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.


ContentModel

public ContentModel(int type,
                    ContentModel  content)
ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.


ContentModel

public ContentModel(int type,
                    Object  content,
                    ContentModel  next)
ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.

¸Þ¼ÒµåÀÇ »ó¼¼

empty

public boolean empty()
ÄÁÅÙÃ÷ ¸ðµ¨ÀÌ ÇÏ´ÃÀÇ ÀÔ·Â ½ºÆ®¸²°ú ÀÏÄ¡ÇÏ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getElements

public void getElements(Vector  elemVec)
ÀÌ contentModel ÀÇ ÀϺÎÀÎ ¿ä¼ÒÀÇ ¸®½ºÆ®¸¦ »ç¿ëÇØ, elemVec ¸¦ °»½ÅÇÕ´Ï´Ù.


first

public boolean first(Object  token)
token °¡ ÀÔ·Â ½ºÆ®¸²ÀÇ ÃÖÃÊÀÇ ÅäÅ«ÀÌ µÇ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


first

public Element  first()
´ÙÀ½ÀÇ ¿ä¼Ò¸¦ µ¹·ÁÁÝ´Ï´Ù.


toString

public String  toString()
ij¸¯ÅÍ ¶óÀÎÀ¸·Î º¯È¯ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ ¿ÀºêÁ§Æ®ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

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.