ExtrinsicObject (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface ExtrinsicObject

All Superinterfaces:
ExtensibleObject, RegistryEntry, RegistryObject, Versionable

public interface ExtrinsicObject
extends RegistryEntry

Implements: 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
 
Method Summary
 String
 DataHandler
 boolean
 void
 void
 void
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryEntry
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
 
Methods inherited from interface javax.xml.registry.infomodel.Versionable
 

Method Detail

public String getMimeType() throws JAXRException
获取与此对象关联的 mime 类型。默认值为 NULL 字符串。

功能级别:1
return 与此对象关联的 mime 类型
ThrowsJAXRException: 如果 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 类型
ThrowsJAXRException: 如果 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
ThrowsJAXRException: 如果 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
ThrowsJAXRException: 如果 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 to true 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
ThrowsJAXRException: 如果 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
ThrowsJAXRException: 如果 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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!