|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface representing development components.
| 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 development components. |
static java.lang.String |
SCHEMA_LOCATION
The name of the XML schema defining the serialized form of this API |
| Method Summary | |
Property |
addProperty(java.lang.String name,
java.lang.String namespaceURI)
Adds a property to the list of properties. |
Property |
addProperty(java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
Adds a property to the list of properties. |
java.util.List |
emptyDependencies()
Removes the entries from the list of dependencies, or creates a new empty dependency list. |
java.util.List |
emptyEnclosedComponents()
Removes the entries from the list of enclosed components, or creates a new empty enclosure list. |
java.util.List |
emptyGrants()
Removes the entries from the list of grants, or creates a new empty grant list. |
java.util.List |
emptyPackageFolders()
Removes the entries from the list of package folders, or creates a new empty package folder list. |
java.util.List |
emptyProperties()
Removes the entries from the list of properties, or creates a new empty property list. |
java.util.Map |
emptyPublicParts()
Removes the entries from the list of public parts, or creates a new empty public part list. |
java.util.List |
emptySourceFolders()
Removes the entries from the list of source folders, or creates a new empty source folder list. |
PPReference |
getBuildPlugin()
Returns the build plugin for this development component. |
ComponentType |
getComponentType()
Returns the component type of this development component. |
java.util.List |
getDependencies()
Returns the dependencies this development component declares. |
java.util.List |
getEnclosedComponents()
Returns the inner components of this component. |
DCReference |
getEnclosingComponent()
Returns the enclosing component of this component. |
java.util.List |
getGrants()
Returns the grants this development components declares. |
java.util.List |
getPackageFolders()
Returns the package folders this development component declares. |
java.util.List |
getProperties()
Returns the properties of this development component. |
Property |
getProperty(java.lang.String name)
Returns the property matching the given name. |
Property |
getProperty(java.lang.String name,
java.lang.String namespaceURI)
Returns the property matching the given name and namespace. |
java.util.Map |
getPublicParts()
Returns the public parts this development component declares. |
java.io.Reader |
getSchema()
Returns a stream containing the XML schema used by development component description files. |
java.lang.String |
getSchemaVersion()
Returns the currently active schema version. |
java.util.List |
getSourceFolders()
Returns the source folders this development component declares. |
void |
initialize(DCInputProvider provider)
Initializes this component. |
void |
initialize(DCInputProvider provider,
boolean withPPs)
Initializes this component and optionally its public parts. |
void |
initializePublicPart(java.lang.String publicPartName,
DCInputProvider provider)
Initializes the given public part and adds it to the component. |
void |
initializePublicParts(DCInputProvider provider)
Initializes all available part and adds them to the component. |
boolean |
isDeprecated()
Checks whether this component is marked as deprecated |
boolean |
isExternal()
Checks whether this development component is built outside of the component development infrastructure, for example a third-party library (JAVA JDK, operating system API). |
boolean |
isInternal()
Checks whether products of this development component are delivered as separate entities. |
boolean |
isParentDependencyPrerequisiteForChildren()
Indicates whether the parent must have a dependency to some DC in order to allow the children to use the same DC. |
boolean |
isSchemaAllowed()
Checks whether it would be possible to serialize the component with the currently active schema version. |
boolean |
isSchemaAllowed(java.lang.String schemaVersion)
Checks whether it would be possible to serialize the component with the given schema version |
void |
serialize(DCOutputProvider provider)
Serializes this component. |
void |
serialize(DCOutputProvider provider,
java.lang.String schemaVersion)
|
void |
serializePublicPart(java.lang.String publicPartName,
DCOutputProvider provider)
Serializes the given public part of this component. |
void |
serializePublicPart(java.lang.String publicPartName,
DCOutputProvider provider,
java.lang.String schemaVersion)
|
void |
serializePublicParts(DCOutputProvider provider)
Serializes the public parts of this component. |
void |
serializePublicParts(DCOutputProvider provider,
java.lang.String schemaVersion)
|
void |
setBuildPlugin(PPReference buildPlugin)
Declares the build plugin for this development component. |
void |
setComponentType(ComponentType componentType)
Declares the component type of this development component. |
void |
setDeprecated(boolean deprecated)
Determines whether this component is deprecated |
void |
setEnclosingComponent(DCReference enclosingComponent)
Declares the enclosing component of this component. |
void |
setExternal(boolean external)
Declares whether this development component is built outside of the component development infrastructure, for example a third-party library (JAVA JDK, operating system API). |
void |
setInternal(boolean internal)
Declares whether products of this development component are delivered as separate entities. |
| Methods inherited from interface com.sap.tc.complib.Component |
getCaption, getDescription, getName, getVendor, serialize, setCaption, setDescription, setName, setVendor, validate |
| 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 boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - if true, the component is marked
as deprecatedpublic ComponentType getComponentType()
public void setComponentType(ComponentType componentType)
componentType - a component type.public java.util.List getProperties()
public java.util.List emptyProperties()
public Property getProperty(java.lang.String name)
name - the name of the property
public Property getProperty(java.lang.String name,
java.lang.String namespaceURI)
name - the name of the propertynamespaceURI - the namespace the property belongs to
identified by a URI
public Property addProperty(java.lang.String name,
java.lang.String namespaceURI)
name - the name of the propertynamespaceURI - an URI or URL identifying the namespace to which the
property belongs to.
public Property addProperty(java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
name - the name of the propertynamespaceURI - an URI or URL identifying the namespace to which the
property belongs to.value - the simple value of the property.public PPReference getBuildPlugin()
public void setBuildPlugin(PPReference buildPlugin)
buildType - a build type.public boolean isExternal()
public void setExternal(boolean external)
external - if true the component is external.public boolean isInternal()
public void setInternal(boolean internal)
public DCReference getEnclosingComponent()
public void setEnclosingComponent(DCReference enclosingComponent)
enclosingComponent - reference to the enclosing component.public java.util.List getEnclosedComponents()
public java.util.List emptyEnclosedComponents()
public java.util.List getGrants()
public java.util.List emptyGrants()
public java.util.Map getPublicParts()
PublicPartpublic java.util.Map emptyPublicParts()
public java.util.List getDependencies()
public java.util.List emptyDependencies()
public java.util.List getSourceFolders()
public java.util.List emptySourceFolders()
public java.util.List getPackageFolders()
public java.util.List emptyPackageFolders()
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 serialize(DCOutputProvider 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(DCOutputProvider provider,
java.lang.String schemaVersion)
throws java.io.IOException,
ProviderException
provider - formatVersion - java.io.IOException - ProviderException -
public void serializePublicPart(java.lang.String publicPartName,
DCOutputProvider 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 serializePublicPart(java.lang.String publicPartName,
DCOutputProvider provider,
java.lang.String schemaVersion)
throws java.io.IOException,
ProviderException
publicPartName - provider - formatVersion - java.io.IOException - ProviderException -
public void serializePublicParts(DCOutputProvider 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 serializePublicParts(DCOutputProvider provider,
java.lang.String schemaVersion)
throws java.io.IOException,
ProviderException
provider - formatVersion - java.io.IOException - ProviderException -
public void initialize(DCInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
provider - the provider that provides 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 initialize(DCInputProvider provider,
boolean withPPs)
throws java.io.IOException,
XMLException,
ProviderException
provider - the provider that provides 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 initializePublicPart(java.lang.String publicPartName,
DCInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
provider - the provider that provides 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 initializePublicParts(DCInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
provider - the provider that provides 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 boolean isParentDependencyPrerequisiteForChildren()
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||