|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface representing a public part of a development component.
| Inner Class Summary | |
static class |
PublicPart.Purpose
Helper class to define the purpose of public parts |
| Field Summary | |
static java.lang.String |
INDEX_DOCTYPE
The document type identifier in the form of an URN as needed by the indexing service |
static java.lang.String |
NAMESPACE
The XML namespace used by public parts |
static java.lang.String |
SCHEMA_LOCATION
The name of the XML schema defining the serialized form of this API |
| Method Summary | |
java.util.List |
emptyEntities()
Removes the entries from the list of entities, or creates a new empty list. |
java.util.List |
emptyGrants()
Removes the entries from the list of grants, or creates a new empty grant list. |
java.util.List |
emptyImportedEntities()
Removes the entries from the list of imported entities, or creates a new empty list. |
java.lang.String |
getCaption()
Returns a human readable name of the public part |
java.lang.String |
getDescription()
Returns the description of the public part |
java.util.List |
getEntities()
Returns the entities this public part declares. |
java.util.List |
getGrants()
Returns the grants this public part declares. |
java.util.List |
getImportedEntities()
Returns the entities this public part imports from inner components. |
java.lang.String |
getName()
Returns the name of the public part |
PublicPart.Purpose |
getPurpose()
Returns the purpose of the public part |
java.io.Reader |
getSchema()
Returns a stream containing the XML schema used by public parts description files. |
java.lang.String |
getSchemaVersion()
Returns the currently active schema version. |
void |
initialize(PPInputProvider provider)
Initializes this public part. |
boolean |
isDeprecated()
Checks whether this component is marked as deprecated |
boolean |
isSchemaAllowed()
Checks whether it would be possible to serialize the public part with the currently active schema version. |
boolean |
isSchemaAllowed(java.lang.String schemaVersion)
Checks whether it would be possible to serialize the public part with the given schema version |
void |
serialize(PPOutputProvider provider)
Serializes this public part. |
void |
serialize(PPOutputProvider provider,
java.lang.String formatVersion)
|
void |
serialize(XMLWriter writer)
Serializes the public part to the given XMLWriter. |
void |
serialize(XMLWriter writer,
java.lang.String schemaVersion)
|
void |
setCaption(java.lang.String caption)
Setss a human readable name of the public part |
void |
setDeprecated(boolean deprecated)
Determines whether this component is deprecated |
void |
setDescription(java.lang.String description)
Sets the description of the public part |
void |
setName(java.lang.String name)
Sets the name of the public part |
void |
setPurpose(PublicPart.Purpose purpose)
Sets the type of the public part |
void |
validate()
Verifies that the public part is valid (according to the DTD). |
| Field Detail |
public static final java.lang.String NAMESPACE
public static final java.lang.String INDEX_DOCTYPE
public static final java.lang.String SCHEMA_LOCATION
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public PublicPart.Purpose getPurpose()
public void setPurpose(PublicPart.Purpose purpose)
public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - if true, the component is marked
as deprecatedpublic java.util.List getGrants()
public java.util.List emptyGrants()
public java.util.List getEntities()
public java.util.List emptyEntities()
public java.util.List getImportedEntities()
public java.util.List emptyImportedEntities()
public java.io.Reader getSchema()
public java.lang.String getSchemaVersion()
ComponentFactory.getSchemaVersions().public boolean isSchemaAllowed()
ComponentFactory.SCHEMA_VERSION.public boolean isSchemaAllowed(java.lang.String schemaVersion)
schemaVersion - the version to check
public void validate()
throws ValidationException
ValidationException - if the object is not valid.
public void serialize(PPOutputProvider provider)
throws java.io.IOException,
ProviderException
provider - the provider that provide OutputStreams for serialization.java.io.IOException - if an i/o error occured.ProviderException - if the provider was not able to suppy a valid
output stream for serialization.
public void serialize(PPOutputProvider provider,
java.lang.String formatVersion)
throws java.io.IOException,
ProviderException
provider - formatVersion - java.io.IOException - ProviderException -
public void initialize(PPInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
provider - the provider that provide InputStreams for initialization.java.io.IOException - if an i/o error occured.XMLException - if an exception occured in the parserProviderException - if the provider was not able to suppy a valid
output stream for serialization.
public void serialize(XMLWriter writer)
throws ValidationException
writer - the XMLWriter to use for serialization.
public void serialize(XMLWriter writer,
java.lang.String schemaVersion)
throws ValidationException
writer - formatVersion - ValidationException -
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||