Silme:Tutorial:Concepts: Difference between revisions

no edit summary
(Created page with 'Silme is built around several abstract concepts that allow the library to support any possible localization format, from DTD, GetText or XLIFF, to MySQL and SQLite, from JAR and ...')
 
No edit summary
Line 57: Line 57:
=== L10nPackage ===
=== L10nPackage ===


L10nPackage is a representation of list of L10nObjects/Object/EntityLists and potentially other L10nPackages. In the file system world, the nearest similar thing is a directory. Directory can store DTD files, JPEG files, and other directories. Another similar structure is MySQL database which stores tables (EntityLists in our case).
L10nPackage is a representation of list of L10nObjects/Blob/EntityLists and potentially other L10nPackages. In the file system world, the nearest similar thing is a directory. Directory can store DTD files, JPEG files, and other directories. Another similar structure is MySQL database which stores tables (EntityLists in our case).


=== Summary ===
=== Summary ===
Line 65: Line 65:
== Diff module ==
== Diff module ==


Each and every of the objects - Entity, EntityList, L10nObject, Object, L10nPackage has it's mirror class in the Diff land. So in result we have EntityDiff, EntityListDiff, L10nObjectDiff, BlobDiff, L10nPackageDiff.
Each and every of the objects - Entity, EntityList, L10nObject, Blob, L10nPackage has it's mirror class in the Diff land. So in result we have EntityDiff, EntityListDiff, L10nObjectDiff, BlobDiff, L10nPackageDiff.
Diff module allows you to store a difference between two objects of the same type and apply it later. It's like a '''diff''' tool in Linux, beside that it is aware of the syntax of the files/structures and stores the diff in appropriate way. For example if a diff between two EntityLists is a value of one entity, it'll store it as EntityDiff with ID of that entity and (oldvalue,newvalue) tuple.
Diff module allows you to store a difference between two objects of the same type and apply it later. It's like a '''diff''' tool in Linux, beside that it is aware of the syntax of the files/structures and stores the diff in appropriate way. For example if a diff between two EntityLists is a value of one entity, it'll store it as EntityDiff with ID of that entity and (oldvalue,newvalue) tuple.


Confirmed users
1,016

edits