Ableverse™
Platform 6.0

av.meta
Class MetaComposition

java.lang.Object
  extended by av.meta.MetaComposition

public class MetaComposition
extends Object

This class is the foundation to programmaticly authoring meta resources under a repository.

Author:
Compl

Nested Class Summary
 class MetaComposition.MetaCompositor
          This class is the MUTABLE version of root Metas.
 
Constructor Summary
MetaComposition(String fileExt, MetaLoader loader)
          Cosntruct a composition with a meta loader.
 
Method Summary
 MetaComposition.MetaCompositor getCompositor(String name, Locale l)
          Get a compositor for a meta bundle with specified name and locale.
 Collection<MetaComposition.MetaCompositor> getCompositors()
          Get all compositors ever constructed and returned, this is a good memory of what has been edited.
 void reload()
          This clears the compositor cache, which causes reconstructions of compositors upon subsequent getting on compositors.
 void storeAllXMLs(File dir)
          Store all edited compositors as XML files to a directory of local file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaComposition

public MetaComposition(String fileExt,
                       MetaLoader loader)
Cosntruct a composition with a meta loader. The meta loader will serve default meta values to be edited with this composition.

Parameters:
loader - a meta loader for default values
Method Detail

getCompositor

public MetaComposition.MetaCompositor getCompositor(String name,
                                                    Locale l)
Get a compositor for a meta bundle with specified name and locale. The compositor then could be used to edit meta values of that bundle.

Parameters:
name - name of the meta bundle to modify
l - locale of the meta bundle to modify
Returns:
a compositor for the specified meta bundle

reload

public void reload()
This clears the compositor cache, which causes reconstructions of compositors upon subsequent getting on compositors.


getCompositors

public Collection<MetaComposition.MetaCompositor> getCompositors()
Get all compositors ever constructed and returned, this is a good memory of what has been edited.

Returns:
all compositors

storeAllXMLs

public void storeAllXMLs(File dir)
                  throws FileNotFoundException
Store all edited compositors as XML files to a directory of local file system.

Parameters:
dir - under which to store meta bundle files
Throws:
FileNotFoundException - if dir doesn't exist

Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.