|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.AbstractCollection <E>
java.util.AbstractSet <E>
java.util.HashSet <JobStateReason >
javax.print.attribute.standard.JobStateReasons
public final class JobStateReasons
JobStateReasons 는, 작업의 현재 상태에 대한 추가 정보, 즉 작업 JobState
속성을 보다 알기 쉽게 하는 정보를, 값세트로서 열거하는 인쇄 속성 클래스입니다.
JobStateReason
자체는 인쇄 작업의 속성 세트에서는 직접 사용되지 않고, JobStateReasons 속성이 사용됩니다. JobStateReasons 속성에는, 인쇄 작업의 상태에 관련하는 JobStateReason
객체가 전혀 포함되지 않는 경우도 있어, 1 개(살) 이상 포함되는 경우도 있습니다. 프린터는 인쇄 작업 JobStateReason
객체에 대응하는 조건이 true 가 되었을 때에,JobStateReason
객체를 인쇄 작업의 JobStateReasons 속성에 추가해, false 가 되었을 때에, 이 객체를 삭제합니다. 인쇄 작업 전체 JobState
의 변경 (와)는 관계없는 것으로 이 처리를 합니다.
JobStateReasons 클래스는 java.util.HashSet
클래스로부터 구현을 상속합니다. 한 번 구축되어 버린다고 변경되지 않는 것이 많은 일반적으로의 인쇄 속성과는 달라, JobStateReasons 클래스는 변경 가능하게 설계되고 있습니다. JobStateReason
객체를 기존의 JobStateReasons 객체에 추가하거나 삭제하거나 할 수가 있습니다. 다만,java.util.HashSet
클래스와 같이, JobStateReasons 클래스도 multi-thread에 대해서 위험합니다. JobStateReasons 객체가 multi-thread로 사용되는 경우, 확실히 조작을 동기 시켜 주세요. 예를 들어 java.util.Collections
클래스로부터 취득된 동기화 셋트뷰를 사용해 동기 시킬 수가 있습니다.
IPP 호환성:개개 JobStateReason
객체의 toString()
메소드에 의해 반환되는 캐릭터 라인의 값은 IPP 키워드치를 나타냅니다. getName()
에 의해 반환되는 카테고리명은 IPP 속성명을 나타냅니다.
생성자 의 개요 | |
---|---|
JobStateReasons ()
빈 상태(empty)의 작업 상태 이유 속성을 새롭게 구축합니다. |
|
JobStateReasons (Collection <JobStateReason > collection)
지정된 컬렉션과 같은 JobStateReason 객체를 가지는 작업 상태 이유 속성을 새롭게 구축합니다. |
|
JobStateReasons (int initialCapacity)
빈 상태(empty)의 작업 상태 이유 속성을 새롭게 구축합니다. |
|
JobStateReasons (int initialCapacity,
float loadFactor)
빈 상태(empty)의 작업 상태 이유 속성을 새롭게 구축합니다. |
메소드의 개요 | |
---|---|
boolean |
add (JobStateReason o)
지정된 요소가 이 작업 상태 이유 속성에 미등록의 경우에 이것을 추가합니다. |
Class <? extends Attribute > |
getCategory ()
이 인쇄 속성치의 「카테고리」로서 사용되는 인쇄 속성 클래스를 돌려줍니다. |
String |
getName ()
속성치가 인스턴스가 되는 카테고리의 이름을 돌려줍니다. |
클래스 java.util. HashSet 로부터 상속된 메소드 |
---|
clear , clone , contains , isEmpty , iterator , remove , size |
클래스 java.util. AbstractSet 로부터 상속된 메소드 |
---|
equals , hashCode , removeAll |
클래스 java.util. AbstractCollection 로부터 상속된 메소드 |
---|
addAll , containsAll , retainAll , toArray , toArray , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
finalize , getClass , notify , notifyAll , wait , wait , wait |
인터페이스 java.util. Set 로부터 상속된 메소드 |
---|
addAll , containsAll , equals , hashCode , removeAll , retainAll , toArray , toArray |
생성자 의 상세 |
---|
public JobStateReasons()
public JobStateReasons(int initialCapacity)
initialCapacity
- 초기 용량
IllegalArgumentException
- 초기 용량이
제로보다 작은 경우public JobStateReasons(int initialCapacity, float loadFactor)
initialCapacity
- 초기 용량loadFactor
- 부하 계수
IllegalArgumentException
- 초기 용량이
제로보다 작은 경우public JobStateReasons(Collection <JobStateReason > collection)
JobStateReason
객체를 가지는 작업 상태 이유 속성을 새롭게 구축합니다. 기본이 되는 해시 세트의 초기 용량과 부하 계수는 슈퍼 클래스의 생성자 HashSet(Collection)
로 지정됩니다.
collection
- 카피원의 컬렉션
NullPointerException
- 미확인의 예외. collection
가 null 의 경우,
또는 collection
에 null 의 요소가 포함되는 경우, throw 된다
ClassCastException
- 미확인의 예외.
collection
에 JobStateReason
클래스의
인스턴스가 아닌 요소가 포함되는 경우, throw 된다메소드의 상세 |
---|
public boolean add(JobStateReason o)
JobStateReason
클래스의 인스턴스가 아니면 안됩니다. 이 작업 상태 이유 속성으로 지정된 요소가 등록제의 경우, 이 작업 상태 이유 속성을 변경하지 않고 false 를 돌려줍니다.
Collection <JobStateReason >
내의 add
Set <JobStateReason >
내의 add
HashSet <JobStateReason >
내의 add
o
- 이 작업 상태 이유 속성에 추가하는 요소
NullPointerException
- 지정된 요소가 null 의 경우 (미체크 예외)
ClassCastException
- 미확인의 예외. 지정된 요소가
JobStateReason
클래스의 인스턴스가 아닌 경우에 throw 되는public final Class <? extends Attribute > getCategory()
JobStateReasons 클래스의 경우, 카테고리는 JobStateReasons 클래스 자신입니다.
Attribute
내의 getCategory
java.lang.Class
클래스의 인스턴스public final String getName()
JobStateReasons 클래스의 경우, 카테고리명은 job-state-reasons
가 됩니다.
Attribute
내의 getName
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.