SAP ABAP Class CL_XLFT_TTX_SNIPPET_TO_ELEM (Insert the source or target of a snippet to an XML element)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DOC-TTL (Application Component) Translation Tools
     SLXE_XLFT (Package) XLIFF 1.2 Translation
Properties
Class CL_XLFT_TTX_SNIPPET_TO_ELEM  
Short Description Insert the source or target of a snippet to an XML element    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SLXE_XLFT   XLIFF 1.2 Translation 
Created 20120822   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_XLFT_TTX_SNIPPET_TO_ELEM has no forward declaration.
Interfaces
Class CL_XLFT_TTX_SNIPPET_TO_ELEM has no interface implemented.
Friends
Class CL_XLFT_TTX_SNIPPET_TO_ELEM has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_MAGIC_NUMBER Constant Private Type reference (TYPE) I 40986 20120822
2 GC_MODE_SOURCE Constant Public Type reference (TYPE) I 1 20120822
3 GC_MODE_TARGET Constant Public Type reference (TYPE) I 2 20120822
4 GC_XLIFF_URI Constant Private Type reference (TYPE) STRING `urn:oasis:names:tc:xliff:document:1.2` 20120822
5 MO_DOCUMENT Instance attribute Private Object reference (TYPE REF TO) IF_IXML_DOCUMENT IF_IXML_DOCUMENT 20120822
6 MO_PARENT Instance attribute Private Object reference (TYPE REF TO) IF_IXML_ELEMENT IF_IXML_ELEMENT 20120822
7 MT_PREFIX2URI Instance attribute Private Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
8 MT_URI2PREFIX Instance attribute Private Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822
9 MV_MODE Instance attribute Private Type reference (TYPE) I 20120822
10 MV_SLANG Instance attribute Private Type reference (TYPE) LXEISOLANG Translation Language 20120822
11 MV_SNIPPET Instance attribute Private Type reference (TYPE) XLFT_BLOB BLOB 20120822
12 MV_TLANG Instance attribute Private Type reference (TYPE) LXEISOLANG Translation Language 20120822
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Private Constructor CONSTRUCTOR 20120822
2 CREATE_ELEMENT Instance method Private Method 20120822
3 DETERMINE_PREFIXES Instance method Private Method 20120822
4 GENERATE_PREFIX Instance method Private Method 20120822
5 INSERT Static method Public Method Insert source or target of a TTX snippet to an XML element 20120822
6 INSERT_INTERNAL Instance method Private Method 20120822
Events
Class CL_XLFT_TTX_SNIPPET_TO_ELEM has no event.
Types
Class CL_XLFT_TTX_SNIPPET_TO_ELEM has no local type.
Method Signatures

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DOCUMENT Call by reference Object reference (TYPE REF TO) IF_IXML_DOCUMENT IF_IXML_DOCUMENT 20120822
2 Importing MODE Call by reference Type reference (TYPE) I 20120822
3 Importing PARENT Call by reference Object reference (TYPE REF TO) IF_IXML_ELEMENT IF_IXML_ELEMENT 20120822
4 Importing PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
5 Importing SNIPPET Call by reference Type reference (TYPE) XLFT_BLOB BLOB 20120822
6 Importing SOURCE_LANG Call by reference Type reference (TYPE) LXEISOLANG Translation Language 20120822
7 Importing TARGET_LANG Call by reference Type reference (TYPE) LXEISOLANG Translation Language 20120822
8 Importing URI2PREFIX Call by reference Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822

Method CONSTRUCTOR on class CL_XLFT_TTX_SNIPPET_TO_ELEM has no exception.

Method CREATE_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTRIBUTES Call by reference Type reference (TYPE) TXLFT_XLIFF_ATTRIBUTE Table of XLIFF element attributes 20120822
2 Returning ELEM Value transfer Object reference (TYPE REF TO) IF_IXML_ELEMENT IF_IXML_ELEMENT 20120822
3 Importing ELEM_NAME Call by reference Type reference (TYPE) STRING 20120822
4 Importing ELEM_URI Call by reference Type reference (TYPE) STRING 20120822
5 Importing LOCAL_NSDECLS Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
6 Importing URI2PREFIX Call by reference Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822

Method CREATE_ELEMENT on class CL_XLFT_TTX_SNIPPET_TO_ELEM has no exception.

Method DETERMINE_PREFIXES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTRIBUTES Call by reference Type reference (TYPE) TXLFT_XLIFF_ATTRIBUTE Table of XLIFF element attributes 20120822
2 Importing ELEM_PREFIX Call by reference Type reference (TYPE) STRING 20120822
3 Importing ELEM_URI Call by reference Type reference (TYPE) STRING 20120822
4 Exporting LOCAL_PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
5 Importing NSDECLS Call by reference Type reference (TYPE) TXLFT_XLIFF_NSDECL Table of XLIFF namespace declarations 20120822
6 Importing PARENT_PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
7 Importing PARENT_URI2PREFIX Call by reference Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822
8 Exporting PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
9 Exporting URI2PREFIX Call by reference Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822

Method DETERMINE_PREFIXES on class CL_XLFT_TTX_SNIPPET_TO_ELEM has no exception.

Method GENERATE_PREFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning PREFIX Value transfer Type reference (TYPE) STRING 20120822
2 Importing PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
3 Importing URI Call by reference Type reference (TYPE) STRING 20120822

Method GENERATE_PREFIX on class CL_XLFT_TTX_SNIPPET_TO_ELEM has no exception.

Method INSERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DOCUMENT Call by reference Object reference (TYPE REF TO) IF_IXML_DOCUMENT XML Document 20120822
2 Importing MODE Call by reference Type reference (TYPE) I Insert source or target 20120822
3 Importing PARENT Call by reference Object reference (TYPE REF TO) IF_IXML_ELEMENT Target XML Document 20120822
4 Importing PARENT_PREFIX2URI Call by reference Type reference (TYPE) TXLFT_PREFIX2URI Table of prefix to namespace URI mappings 20120822
5 Importing PARENT_URI2PREFIX Call by reference Type reference (TYPE) TXLFT_URI2PREFIX Table of namespace URI to prefix mappings 20120822
6 Importing SNIPPET Call by reference Type reference (TYPE) XLFT_BLOB TTX Snippet 20120822
7 Importing SOURCE_LANG Call by reference Type reference (TYPE) LXEISOLANG Source Language 20120822
8 Importing TARGET_LANG Call by reference Type reference (TYPE) LXEISOLANG Target Language 20120822
# Exception Resumable Description Created on
1 CX_XLFT Base class for XLIFF Translation exceptions 20120822

Method INSERT_INTERNAL Signature

Method INSERT_INTERNAL on class CL_XLFT_TTX_SNIPPET_TO_ELEM has no parameter.
# Exception Resumable Description Created on
1 CX_XLFT Base class for XLIFF Translation exceptions 20120822
History
Last changed by/on SAP  20130531 
SAP Release Created in 740