Class DefaultX4OLanguage
java.lang.Object
org.x4o.xml.lang.DefaultX4OLanguage
- All Implemented Interfaces:
X4OLanguage, X4OLanguageLocal
DefaultX4OLanguage holds all information about the x4o xml language.
- Version:
- 1.0 30 apr 2013
- Author:
- Willem Cazander
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultX4OLanguage(X4OLanguageConfiguration languageConfiguration, X4OPhaseManager phaseManager, String languageName, String languageVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLanguageModule(X4OLanguageModule elementLanguageModule) Adds an X4OLanguageModule to this language.protected X4OLanguageSessionbuildElementLanguage(X4OLanguageSession languageSession) createElementInstance(X4OLanguageSession context, Class<?> objectClass) Search language for object and create element for it.Creates and fills the initial element language used to store the language.findElementBindingHandlers(Object parent) Gets all ElementBindingHandlers which are possible for parent.findElementBindingHandlers(Object parent, Object child) Gets all ElementBindingHandlers for parent and child combination.findElementInterfaces(Object elementObject) Returns list of ElementInterfaces for an element.findElementNamespace(String namespaceUri) Returns the namespace context for an namespace uri.Returns the language name of this x4o xml language.Returns the phase manager which runs the phases
-
Constructor Details
-
DefaultX4OLanguage
public DefaultX4OLanguage(X4OLanguageConfiguration languageConfiguration, X4OPhaseManager phaseManager, String languageName, String languageVersion)
-
-
Method Details
-
getLanguageName
Description copied from interface:X4OLanguageReturns the language name of this x4o xml language.- Specified by:
getLanguageNamein interfaceX4OLanguage- Returns:
- Returns the language name.
- See Also:
-
getLanguageVersion
- Specified by:
getLanguageVersionin interfaceX4OLanguage- Returns:
- Returns the language version of this language instance.
- See Also:
-
getPhaseManager
Description copied from interface:X4OLanguageReturns the phase manager which runs the phases- Specified by:
getPhaseManagerin interfaceX4OLanguage- Returns:
- Returns the phase manager.
- See Also:
-
getLanguageConfiguration
- Specified by:
getLanguageConfigurationin interfaceX4OLanguage- Returns:
- the languageConfiguration
-
addLanguageModule
Description copied from interface:X4OLanguageLocalAdds an X4OLanguageModule to this language.- Specified by:
addLanguageModulein interfaceX4OLanguageLocal- Parameters:
elementLanguageModule- The element language module to add.- See Also:
-
getLanguageModules
- Specified by:
getLanguageModulesin interfaceX4OLanguage- Returns:
- Returns a collection of element language modules in this defined and loaded language.
- See Also:
-
createLanguageSession
Description copied from interface:X4OLanguageCreates and fills the initial element language used to store the language.- Specified by:
createLanguageSessionin interfaceX4OLanguage- Returns:
- The newly created X4OLanguageSession.
- See Also:
-
buildElementLanguage
-
createElementInstance
Description copied from interface:X4OLanguageSearch language for object and create element for it.- Specified by:
createElementInstancein interfaceX4OLanguage- Parameters:
context- The X4O language context to create for.objectClass- The object to search for.- Returns:
- Returns an new Element instance for the object.
- See Also:
-
findElementBindingHandlers
Description copied from interface:X4OLanguageGets all ElementBindingHandlers which are possible for parent.- Specified by:
findElementBindingHandlersin interfaceX4OLanguage- Parameters:
parent- The parent element object or class to search for.- Returns:
- Returns an List with all ElementBindingHandler for the search.
- See Also:
-
findElementBindingHandlers
Description copied from interface:X4OLanguageGets all ElementBindingHandlers for parent and child combination.- Specified by:
findElementBindingHandlersin interfaceX4OLanguage- Parameters:
parent- The parent element object or class to search for.child- The parent element object or class to search for.- Returns:
- Returns an List with all ElementBindingHandler for the search pair.
- See Also:
-
findElementInterfaces
Description copied from interface:X4OLanguageReturns list of ElementInterfaces for an element.- Specified by:
findElementInterfacesin interfaceX4OLanguage- Parameters:
elementObject- The element object or class to search for.- Returns:
- The list of elementInterfaces.
- See Also:
-
findElementNamespace
Description copied from interface:X4OLanguageReturns the namespace context for an namespace uri.- Specified by:
findElementNamespacein interfaceX4OLanguage- Parameters:
namespaceUri- the namespace uri.- Returns:
- The ElementNamespace.
- See Also:
-