Package com.ptc.core.meta.common.impl
Class LogicalIdentifierFactory
java.lang.Object
com.ptc.core.meta.common.impl.LogicalIdentifierFactory
- All Implemented Interfaces:
IdentifierFactory
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionFrom the identifier_external_form, we will construct an Identifier.Bulk mode of the get(String) method.get(String[] identifier_external_forms, Identifier identifier_context) Bulk mode of the get(String, TypeIdentifier) method.Bulk mode of the get(String, String) method.get(String identifier_external_form, Identifier identifier_context) Construct a DefinitionIdentifier based on the external form and the context(TypeIdentifier).Construct an Identifier based on the combined string from the external form and the context external form.newNamedInstanceIdentifier(String the_name, TypeInstanceIdentifier container)
Supported API: truenewPathInstanceIdentifier(String the_path, TypeInstanceIdentifier container)
Supported API: true
Supported API: truenewWCTypeIdentifier(String type_name)
Supported API: truenewWCTypeInstanceIdentifier(String type_name, int update_count, long object_id)
Supported API: truenewWCTypeInstanceIdentifier(String type_name, int update_count, long object_id, long branch_id)
Supported API: true
-
Method Details
-
get
From the identifier_external_form, we will construct an Identifier. If the external form represents a DefinitionIdentifier, a DefinitionIdentifier will be constructed. If the external form represents an ElementIdentifier, an ElementIdentifier will be constructed. If the external form only represents an InstanceIdentifier, an InstanceIdentifier will be constructed instead.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_form-- Returns:
- Identifier
- Throws:
IllegalFormatException
-
get
public Identifier get(String identifier_external_form, String identifier_context_external_form) throws IllegalFormatException Construct an Identifier based on the combined string from the external form and the context external form. The only valid external form input are "DefinitionIdentifier, DefinitionIdentifier" or "ElementIdentifier, ElementIdentifier". Other inputs will cause IllegalFormatException.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_form-identifier_context_external_form-- Returns:
- Identifier
- Throws:
IllegalFormatException
-
get
public Identifier get(String identifier_external_form, Identifier identifier_context) throws IllegalFormatException Construct a DefinitionIdentifier based on the external form and the context(TypeIdentifier). If the external form is not representing a DefinitionIdentifier, IllegalFormatException will be thrown.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_form-identifier_context-- Returns:
- Identifier
- Throws:
IllegalFormatException
-
get
Bulk mode of the get(String) method.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_forms-- Returns:
- Identifier[]
- Throws:
IllegalFormatException
-
get
public Identifier[] get(String[] identifier_external_forms, String identifier_context_external_form) throws IllegalFormatException Bulk mode of the get(String, String) method.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_forms-identifier_context_external_form-- Returns:
- Identifier[]
- Throws:
IllegalFormatException
-
get
public Identifier[] get(String[] identifier_external_forms, Identifier identifier_context) throws IllegalFormatException Bulk mode of the get(String, TypeIdentifier) method.
Supported API: true- Specified by:
getin interfaceIdentifierFactory- Parameters:
identifier_external_forms-identifier_context-- Returns:
- Identifier[]
- Throws:
IllegalFormatException
-
newWCTypeIdentifier
Supported API: true- Specified by:
newWCTypeIdentifierin interfaceIdentifierFactory- Parameters:
type_name-- Returns:
- TypeIdentifier
-
newWCTypeInstanceIdentifier
public TypeInstanceIdentifier newWCTypeInstanceIdentifier(String type_name, int update_count, long object_id)
Supported API: true- Specified by:
newWCTypeInstanceIdentifierin interfaceIdentifierFactory- Parameters:
type_name-update_count-object_id-- Returns:
- TypeInstanceIdentifier
-
newWCTypeInstanceIdentifier
public TypeInstanceIdentifier newWCTypeInstanceIdentifier(String type_name, int update_count, long object_id, long branch_id)
Supported API: true- Specified by:
newWCTypeInstanceIdentifierin interfaceIdentifierFactory- Parameters:
type_name-update_count-object_id-branch_id-- Returns:
- TypeInstanceIdentifier
-
newUninitializedInstanceIdentifier
Supported API: true- Specified by:
newUninitializedInstanceIdentifierin interfaceIdentifierFactory- Parameters:
container-- Returns:
- InstanceIdentifier
-
newNamedInstanceIdentifier
public InstanceIdentifier newNamedInstanceIdentifier(String the_name, TypeInstanceIdentifier container)
Supported API: true- Specified by:
newNamedInstanceIdentifierin interfaceIdentifierFactory- Parameters:
the_name-container-- Returns:
- InstanceIdentifier
-
newPathInstanceIdentifier
public InstanceIdentifier newPathInstanceIdentifier(String the_path, TypeInstanceIdentifier container)
Supported API: true- Specified by:
newPathInstanceIdentifierin interfaceIdentifierFactory- Parameters:
the_path-container-- Returns:
- InstanceIdentifier
-