|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.tc.complib.ComponentFactory
Factory for creating components, public parts, packages and dependencies, and for marshalling/unmarshalling of components and public parts.
| Field Summary | |
static java.lang.String |
SCHEMA_VERSION
The schema version number of this API |
static java.lang.String |
SCHEMA_VERSION_1_0_0
ID vor schema version 1_0_0. |
static java.lang.String |
SCHEMA_VERSION_1_0_1
ID vor schema version 1_0_1. |
static java.lang.String |
SCHEMA_VERSION_1_0_2
ID vor schema version 1_0_2. Schema changes 1.0.1->1.0.2: <development-component> : added <any> tag at end of sequence to allow compatible enhancements, added <anyAttribute> <development-component> : added <deprecated> flag <dependency> : added <any> tag at end of sequence to allow compatible enhancements, added <anyAttribute> <public-part> : added <any> tag at end of sequence to allow compatible enhancements, added <anyAttribute> <public-part> : added <deprecated> flag <entity> : added <any> tag at end of sequence to allow compatible enhancements, added <anyAttribute> <entity-ref> : added <any> tag at end of sequence to allow compatible enhancements, added <anyAttribute> <entity-ref> : added <package> and <entity-sub-type> tags |
| Constructor Summary | |
ComponentFactory()
|
|
| Method Summary | |
static Dependency |
createDependency()
Creates a new empty dependency. |
static Dependency |
createDependency(DCReference ref,
DevelopmentComponent parent)
Creates a new dependency instance that points to the given component and adds the dependency to the given DC. |
static Dependency |
createDependency(PPReference ref,
DevelopmentComponent parent)
Creates a new dependency instance that points to the given public part and adds the dependency to the given DC. |
static DevelopmentComponent |
createDevelopmentComponent()
Creates a new empty development component instance. |
static DevelopmentComponent |
createDevelopmentComponent(java.lang.String name,
java.lang.String vendor,
ComponentType componentType)
Creates a new development component with given name, vendor id and component type. |
static Entity |
createEntity()
Creates a new empty entity instance. |
static Entity |
createEntity(java.lang.String entityName,
java.lang.String entityType,
PublicPart publicPart)
Creates a new entity instance with given name and adds that entity to the given public part. |
static ImportedEntity |
createImportedEntity()
Creates a new empty imported entity instance. |
static ImportedEntity |
createImportedEntity(java.lang.String entityName,
java.lang.String entityType,
PublicPart publicPart)
Creates a new imported entity instance with given name and adds that entity to the given public part. |
static Property |
createProperty()
Creates a new empty property instance. |
static Property |
createProperty(java.lang.String propertyName,
DevelopmentComponent parent)
Creates a new property instance with the given name and adds that property to the given development component. |
static Property |
createProperty(java.lang.String propertyName,
java.lang.String namespacePrefix,
java.lang.String namespaceURI,
DevelopmentComponent parent)
Creates a new property instance with given name, namespace prefix and URI and adds that property to the given development component |
static PublicPart |
createPublicPart()
Creates a new empty public part instance. |
static PublicPart |
createPublicPart(java.lang.String publicPartName,
DevelopmentComponent parent)
Creates a new public part instance with given name and adds that public part to the given development component |
static SoftwareComponent |
createSoftwareComponent()
Creates a new empty software component instance. |
static SoftwareComponent |
createSoftwareComponent(java.lang.String name,
java.lang.String vendor)
Creates a new software component with given name, vendor id and component type. |
static java.lang.String[] |
getSchemaVersions()
Returns the (sorted) list of schema versions supported by this API. |
static DevelopmentComponent |
initialize(DCInputProvider provider)
Initializes the referenced development component. |
static DevelopmentComponent |
initialize(DCInputProvider provider,
boolean withPPs)
Initializes the referenced development component and optionall its public parts. |
static PublicPart |
initialize(PPInputProvider provider)
|
static SoftwareComponent |
initialize(SCInputProvider provider)
Initializes the referenced software component. |
static boolean |
isSchemaAllowed(java.lang.String schemaVersion)
Checks whether this library is capable of writing the given schema version |
static void |
serialize(DevelopmentComponent component,
DCOutputProvider provider)
Serializes the given development component. |
static void |
serialize(PublicPart publicPart,
PPOutputProvider provider)
|
static void |
serialize(SoftwareComponent component,
SCOutputProvider provider)
Serializes the given software component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SCHEMA_VERSION_1_0_0
public static final java.lang.String SCHEMA_VERSION_1_0_1
public static final java.lang.String SCHEMA_VERSION_1_0_2
public static final java.lang.String SCHEMA_VERSION
| Constructor Detail |
public ComponentFactory()
| Method Detail |
public static java.lang.String[] getSchemaVersions()
public static boolean isSchemaAllowed(java.lang.String schemaVersion)
schemaVersion - the schema version to checkpublic static DevelopmentComponent createDevelopmentComponent()
public static DevelopmentComponent createDevelopmentComponent(java.lang.String name,
java.lang.String vendor,
ComponentType componentType)
public static Property createProperty()
public static Property createProperty(java.lang.String propertyName,
DevelopmentComponent parent)
propertyName - the name of the propertyparent - the DC to which this property should be assigned.
public static Property createProperty(java.lang.String propertyName,
java.lang.String namespacePrefix,
java.lang.String namespaceURI,
DevelopmentComponent parent)
propertyName - the name of the propertynamespacePrefix - the namespace prefix to use when serializing this propertynamespaceURI - determines the namespace to which the property belongs, usually
in the form of an URL (e.g. "http://sap.com/properties")parent - the DC to which this property should be assigned.public static PublicPart createPublicPart()
public static PublicPart createPublicPart(java.lang.String publicPartName,
DevelopmentComponent parent)
publicPartName - the DC local name of the public partparent - the DC to which this public part should be assigned.public static Entity createEntity()
public static Entity createEntity(java.lang.String entityName,
java.lang.String entityType,
PublicPart publicPart)
name - the entity namepublicPart - the public part to which this entity should be assigned.public static ImportedEntity createImportedEntity()
public static ImportedEntity createImportedEntity(java.lang.String entityName,
java.lang.String entityType,
PublicPart publicPart)
name - the entity namepublicPart - the public part to which this entity should be assigned.public static Dependency createDependency()
public static Dependency createDependency(DCReference ref,
DevelopmentComponent parent)
parent - the DC to which this dependency should be assigned.
public static Dependency createDependency(PPReference ref,
DevelopmentComponent parent)
parent - the DC to which this dependency should be assigned.public static SoftwareComponent createSoftwareComponent()
public static SoftwareComponent createSoftwareComponent(java.lang.String name,
java.lang.String vendor)
public static void serialize(DevelopmentComponent component,
DCOutputProvider provider)
throws java.io.IOException,
ProviderException
component - the component to serialize.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 static void serialize(PublicPart publicPart,
PPOutputProvider provider)
throws java.io.IOException,
ProviderException
public static void serialize(SoftwareComponent component,
SCOutputProvider provider)
throws java.io.IOException,
ProviderException
component - the component to serialize.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 static DevelopmentComponent initialize(DCInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
component - reference to a component to unmarshal
public static DevelopmentComponent initialize(DCInputProvider provider,
boolean withPPs)
throws java.io.IOException,
XMLException,
ProviderException
component - reference to a component to unmarshal
public static PublicPart initialize(PPInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
public static SoftwareComponent initialize(SCInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException
component - reference to a component to unmarshalprovider - 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.
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||