|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 7 (11.1.7) E22562-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.socialnetwork.model.osn.visitor.OsnTranslationVisitor
public class OsnTranslationVisitor
The visitor that will be used to extract the translatable OSN data from a ViewObjectStructure object.
Field Summary | |
---|---|
protected java.util.ArrayList<oracle.jbo.JboException> |
_errors
|
protected java.util.ArrayList<oracle.jbo.JboException> |
_warnings
|
static java.lang.String |
ALL_COUNTRY
|
static java.lang.String |
ALL_LANG
|
Constructor Summary | |
---|---|
OsnTranslationVisitor()
Default Constructor. |
Method Summary | |
---|---|
void |
addLocales(oracle.jbo.LocaleContext[] locales)
Provide a list of locales that will be used to retrieve the languages for. |
protected void |
addTranslation(oracle.jbo.LocaleContext locale,
java.lang.String name,
java.lang.String text)
Add a name-translated text combination to the Social Network Locale. |
protected java.lang.Object |
defaultValue(java.lang.Object value,
java.lang.Object defaultValue,
java.lang.String name,
java.lang.String defaultName,
java.lang.String objectName)
Checks to see if the value exists and if it doesn't then the default value will be used. |
java.lang.String |
getAppId()
Get the application id for the OSN structure registration of an object. |
java.lang.String |
getDescription()
Get the base language description for the OSN structure registration of an object. |
java.lang.String |
getDisplayType()
Get the base language name of the type for the OSN structure registration of an object. |
java.lang.String |
getDisplayTypePlural()
Get the base language plural name of the type for the OSN structure registration of an object. |
java.lang.String |
getExternalId()
Gets the constant value that will be used for identification of the OSN structure registration of an object. |
java.lang.String |
getOsnName()
Gets the constant value that will be used for naming of the OSN structure registration of an object. |
java.util.List<waggle.common.modules.social.v1.infos.socialdefinitions.XV1SocialDefinitionLocaleInfo> |
getTranslations()
Provide a list of locale information to be sent to OSN. |
java.lang.String |
getType()
Get the constant value of the type for the OSN structure registration of an object. |
java.lang.String |
getTypePlural()
Get the constant plural value of the type for the OSN structure registration of an object. |
java.util.ArrayList<oracle.jbo.JboException> |
getValidationErrors()
Provide the list of errors in validation that have occured whilst visiting the last object. |
java.lang.String |
getVisitorName()
Name of the visitor. |
void |
reset()
|
protected void |
validateExistance(java.lang.Object value,
java.lang.String name,
java.lang.String objectName,
boolean isError)
Validates that the value passed in exists and writes a message to the log and errors/warnings collection if value does not exist. |
protected void |
validateExternalId(java.lang.String externalId,
boolean isError)
Validates that the external id passed in meets the standard for OSN external identifiers and writes a message to the log and errors/warnings collection if value does not exist. |
void |
visit(ViewObjectNodeStructure node)
Visit the node and process its contents. |
protected void |
visitAttributeTranslations(SocialNetworkNodeAttribute attribute)
Extract the translation information from the attribute. |
protected void |
visitNodeTranslations(ViewObjectNodeStructure node)
Extract the translated information for the node without interrogating the attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALL_LANG
public static final java.lang.String ALL_COUNTRY
protected java.util.ArrayList<oracle.jbo.JboException> _errors
protected java.util.ArrayList<oracle.jbo.JboException> _warnings
Constructor Detail |
---|
public OsnTranslationVisitor()
Method Detail |
---|
public void reset()
public java.util.ArrayList<oracle.jbo.JboException> getValidationErrors()
public void addLocales(oracle.jbo.LocaleContext[] locales)
addLocales
in interface OsnTranslationAdaptor
locales
- the locales.public java.lang.String getAppId()
getAppId
in interface OsnBaseAdaptor
public java.lang.String getType()
getType
in interface OsnBaseAdaptor
public java.lang.String getTypePlural()
getTypePlural
in interface OsnBaseAdaptor
public java.lang.String getExternalId()
getExternalId
in interface OsnBaseAdaptor
public java.lang.String getOsnName()
getOsnName
in interface OsnBaseAdaptor
public java.lang.String getDisplayType()
getDisplayType
in interface OsnTranslationAdaptor
public java.lang.String getDisplayTypePlural()
getDisplayTypePlural
in interface OsnTranslationAdaptor
public java.lang.String getDescription()
getDescription
in interface OsnTranslationAdaptor
public java.lang.String getVisitorName()
getVisitorName
in interface ViewObjectStructureVisitor
public java.util.List<waggle.common.modules.social.v1.infos.socialdefinitions.XV1SocialDefinitionLocaleInfo> getTranslations()
getTranslations
in interface OsnTranslationAdaptor
protected void addTranslation(oracle.jbo.LocaleContext locale, java.lang.String name, java.lang.String text)
locale
- the locale to add the text to.name
- the name/key that the text will be retrieved by in OSN.text
- the translated text.protected void visitAttributeTranslations(SocialNetworkNodeAttribute attribute)
attribute
- a SocialNetworkNode attribute.protected void visitNodeTranslations(ViewObjectNodeStructure node)
node
- the node to visit.public void visit(ViewObjectNodeStructure node)
visit
in interface ViewObjectStructureVisitor
node
- the node to visit.protected void validateExistance(java.lang.Object value, java.lang.String name, java.lang.String objectName, boolean isError)
value
- the value to test.name
- the display name representing the value.objectName
- the name of the object which contains the value (for example: View Object name).isError
- write to error collection if true otherwise warnings collection.protected void validateExternalId(java.lang.String externalId, boolean isError)
externalId
- the value to test.isError
- write to error collection if true otherwise warnings collection.protected java.lang.Object defaultValue(java.lang.Object value, java.lang.Object defaultValue, java.lang.String name, java.lang.String defaultName, java.lang.String objectName)
value
- the value to test.name
- the display name representing the value.objectName
- the name of the object which contains the value (for example: View Object name).
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 7 (11.1.7) E22562-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |