|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface ExtrinsicObject
- All Superinterfaces:
- ExtensibleObject, RegistryEntry, RegistryObject, Versionable
public interface ExtrinsicObject
- extends RegistryEntry
ExtrinsicObject 提供描述所提交内容的元数据,这些内容的类型对于注册表而言实质上是未知的,因此必须使用附加属性(例如,mime 类型)描述它们。
通过 ExtrinsicObject 描述内容的示例包括 Collaboration Protocol Profiles (CPP)、业务流程描述和模式。
ExtrinsicObjects provide metadata that describes submitted content whose type is not intrinsically known to the registry and therefore must be described by means of additional attributes (e.g., mime type).
Examples of content described by ExtrinsicObject include Collaboration Protocol Profiles (CPP), business process descriptions, and schemas.
- Author:
- Farrukh S. Najmi
Field Summary |
---|
Fields inherited from interface javax.xml.registry.infomodel.RegistryEntry |
---|
STABILITY_DYNAMIC, STABILITY_DYNAMIC_COMPATIBLE, STABILITY_STATIC, STATUS_APPROVED, STATUS_DEPRECATED, STATUS_SUBMITTED, STATUS_WITHDRAWN |
Method Summary | |
---|---|
String |
getMimeType()
Gets the mime type associated with this object. |
DataHandler |
getRepositoryItem()
Gets the repository item for this object. |
boolean |
isOpaque()
Determines whether the ExtrinsicObject is opaque (not readable) by the registry operator. |
void |
setMimeType(String mimeType)
Sets the mime type associated with this object. |
void |
setOpaque(boolean isOpaque)
Sets whether the ExtrinsicObject is opaque (not readable) by the registry. |
void |
setRepositoryItem(DataHandler repositoryItem)
Sets the repository item for this object. |
Methods inherited from interface javax.xml.registry.infomodel.RegistryEntry |
---|
getExpiration, getStability, getStatus, setExpiration, setStability |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Methods inherited from interface javax.xml.registry.infomodel.Versionable |
---|
getMajorVersion, getMinorVersion, getUserVersion, setMajorVersion, setMinorVersion, setUserVersion |
Method Detail |
---|
public String
getMimeType() throws JAXRException
获取与此对象关联的 mime 类型。默认值为 NULL 字符串。
- 功能级别:1
return | 与此对象关联的 mime 类型 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getMimeType
String getMimeType() throws JAXRException
- Gets the mime type associated with this object.
Default is a NULL String.
- Capability Level: 1
- Returns:
- the mime type associated with this object
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setMimeType(String mimeType) throws JAXRException
设置与此对象关联的 mime 类型。
- 功能级别:1
mimeType | 与此对象关联的 mime 类型 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setMimeType
void setMimeType(String mimeType) throws JAXRException
- Sets the mime type associated with this object.
- Capability Level: 1
- Parameters:
mimeType
- the mime type associated with this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public boolean
isOpaque() throws JAXRException
确定 ExtrinsicObject 对于注册表操作符是否是不透明的(不可读的)。
在某些情况下,Submitting Organization 可以提交加密内容,甚至注册表无法读取的内容。此属性使注册表能够了解是否处于这种情况。
- 功能级别:1
return |
如果可以通过注册表操作符读取 ExtrinsicObject,则返回 true ;否则返回 false |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
isOpaque
boolean isOpaque() throws JAXRException
- Determines whether the ExtrinsicObject is opaque (not readable) by the registry operator.
In some situations, a Submitting Organization may submit content that is encrypted and not even readable by the registry. This attribute allows the registry to know whether this is the case.
- Capability Level: 1
- Returns:
true
if the ExtrinsicObject is readable by the registry operator;false
otherwise- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setOpaque(boolean isOpaque) throws JAXRException
设置 ExtrinsicObject 对于注册表操作符是否是不透明的(不可读的)。
- 功能级别:1
isOpaque |
如果可以通过注册表操作符读取 ExtrinsicObject,则该参数是设置为 true 的 boolean 值;否则为 false |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setOpaque
void setOpaque(boolean isOpaque) throws JAXRException
- Sets whether the ExtrinsicObject is opaque (not readable) by the registry.
- Capability Level: 1
- Parameters:
isOpaque
- boolean value set totrue
if the ExtrinsicObject is readable by the registry operator;false
otherwise- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public DataHandler
getRepositoryItem() throws JAXRException
获取此对象的注册表条目。不得返回 null。
- 功能级别:1
return | 注册表条目的 DataHandler |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getRepositoryItem
DataHandler getRepositoryItem() throws JAXRException
- Gets the repository item for this object.
Must not return null.
- Capability Level: 1
- Returns:
- the DataHandler for the repository item
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setRepositoryItem(DataHandler repositoryItem) throws JAXRException
设置此对象的注册表条目。
- 功能级别:1
repositoryItem | 注册表条目的 DataHandler。不得为 null |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setRepositoryItem
void setRepositoryItem(DataHandler repositoryItem) throws JAXRException
- Sets the repository item for this object.
- Capability Level: 1
- Parameters:
repositoryItem
- the DataHandler for the repository item. Must not be null- Throws:
JAXRException
- If the JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!