JavaTM 2 Platform
Standard Ed. 5.0

javax.print.attribute
Ŭ·¡½º TextSyntax

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.print.attribute.TextSyntax
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable, Cloneable
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
DocumentName, JobMessageFromOperator, JobName, JobOriginatingUserName, OutputDeviceAssigned, PrinterInfo, PrinterLocation, PrinterMakeAndModel, PrinterMessageFromOperator, PrinterName, RequestingUserName

public abstract class TextSyntax
extends Object
implements Serializable, Cloneable

TextSyntax Ŭ·¡½º´Â °ªÀÌ Ä³¸¯ÅÍ ¶óÀÎÀÎ ¸ðµç ¼Ó¼ºÀÇ ÀϹÝÀûÀÎ ±¸ÇöÀ» Á¦°øÇÏ´Â Ãß»ó base classÀÔ´Ï´Ù. ÅؽºÆ® ¼Ó¼º¿¡´Â ÀÚ¿¬ ¾ð¾î¸¦ ³ªÅ¸³»´Â ·ÎÄÉÀÏÀÌ Æ÷ÇԵ˴ϴÙ. ÀÌ °á°ú, ÅؽºÆ® ¼Ó¼ºÀº Ç×»ó Áö¿ª¿¡ ´ëÀÀÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» ³ªÅ¸³À´Ï´Ù. ÅؽºÆ® ¼Ó¼ºÀÇ °ªÀº ÀÏ´Ü ±¸ÃàµÈ´Ù°í º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù.

°ü·Ã Ç׸ñ:
Á÷·ÄÈ­ µÈ Çü½Ä

»ý¼ºÀÚ °³¿ä
protected TextSyntax (String  value, Locale  locale)
          ÁöÁ¤µÈ ij¸¯ÅÍ ¶óÀÎ ¹× ·ÎÄÉÀÏÀ» »ç¿ëÇØ TextAttribute¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 boolean equals (Object  object)
          ÀÌ ÅؽºÆ® ¼Ó¼ºÀÌ °´Ã¼¿¡°Ô °Ç³×Áø ¼Ó¼º°ú µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Locale getLocale ()
          ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀÇ ÀÚ¿¬ ¾ð¾î (·ÎÄÉÀÏ)¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getValue ()
          ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
 int hashCode ()
          ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ Çؽà Äڵ带 ¸®ÅÏÇÕ´Ï´Ù.
 String toString ()
          ÀÌ ÅؽºÆ® ¼Ó¼ºÀ» ½Äº°ÇÏ´Â String¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

TextSyntax

protected TextSyntax(String  value,
                     Locale  locale)
ÁöÁ¤µÈ ij¸¯ÅÍ ¶óÀÎ ¹× ·ÎÄÉÀÏÀ» »ç¿ëÇØ TextAttribute¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
value - ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎ
locale - ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀÇ ÀÚ¿¬ ¾ð¾î. nullÀº Locale.getDefault()¿¡ ÀÇÇØ ¸®ÅÏµÈ µðÆúÆ®ÀÇ ·ÎÄÉÀÏÀ»ÀǹÌÇÏ´Â °ÍÀ̶ó°í Çؼ®µÈ´Ù
¿¹¿Ü:
NullPointerException - ¹ÌÈ®ÀÎÀÇ ¿¹¿Ü. value°¡ nullÀÎ °æ¿ì, Throw µÈ´Ù
¸Þ¼­µåÀÇ »ó¼¼

getValue

public String  getValue()
ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎ

getLocale

public Locale  getLocale()
ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀÇ ÀÚ¿¬ ¾ð¾î (·ÎÄÉÀÏ)¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
·ÎÄÉÀÏ

hashCode

public int hashCode()
ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ Çؽà Äڵ带 ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ hashCode
¹Ýȯ°ª:
ÀÌ °´Ã¼ÀÇ Çؽà Äڵ尪
°ü·Ã Ç׸ñ:
Object.equals(java.lang.Object), Hashtable

equals

public boolean equals(Object  object)
ÀÌ ÅؽºÆ® ¼Ó¼ºÀÌ °´Ã¼¿¡°Ô °Ç³×Áø ¼Ó¼º°ú µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ¸®ÅÏÇÕ´Ï´Ù. µ¿µîÇϱ⠶§¹®¿¡´Â ´ÙÀ½ÀÇ Á¶°ÇÀÇ ¸ðµç °ÍÀÌ true°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
  1. object°¡ nullÀº ¾Æ´Ï´Ù
  2. object°¡ TextSyntax Ŭ·¡½ºÀÇ ÀνºÅϽºÀÌ´Ù
  3. ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ±âº»À¸·Î µÇ´Â ij¸¯ÅÍ ¶óÀΰú object ±âº»À¸·Î µÇ´Â ij¸¯ÅÍ ¶óÀÎÀÌ °°´Ù
  4. ÀÌ ÅؽºÆ® ¼Ó¼ºÀÇ ·ÎÄÉÀÏ°ú object ·ÎÄÉÀÏÀÌ °°´Ù

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ equals
ÆĶó¹ÌÅÍ:
object - ºñ±³ ´ë»óÀÇ °´Ã¼
¹Ýȯ°ª:
object°¡ ÀÌ ÅؽºÆ® ¼Ó¼º°ú µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
°ü·Ã Ç׸ñ:
Object.hashCode(), Hashtable

toString

public String  toString()
ÀÌ ÅؽºÆ® ¼Ó¼ºÀ» ½Äº°ÇÏ´Â String¸¦ ¸®ÅÏÇÕ´Ï´Ù. String´Â ¼Ó¼ºÀÇ ±âº»À¸·Î µÇ´Â ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀÔ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ °´Ã¼¸¦ ½Äº°ÇÏ´Â String

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.