List of usage examples for org.apache.commons.lang ObjectUtils toString
public static String toString(Object obj)
Gets the toString
of an Object
returning an empty string ("") if null
input.
ObjectUtils.toString(null) = "" ObjectUtils.toString("") = "" ObjectUtils.toString("bat") = "bat" ObjectUtils.toString(Boolean.TRUE) = "true"
From source file:org.andromda.cartridges.gui.metafacades.GuiAttributeLogicImpl.java
/** * @param ownerParameter/*from w w w . jav a 2s . com*/ * @return labelListName * @see GuiAttribute#getLabelListName(org.andromda.metafacades.uml.ParameterFacade) */ protected String handleGetLabelListName(final ParameterFacade ownerParameter) { return StringUtils.replace(ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.LABEL_LIST_PATTERN)), "{0}", this.getFormPropertyId(ownerParameter)); }
From source file:org.andromda.cartridges.gui.metafacades.GuiAttributeLogicImpl.java
/** * @param ownerParameter/*from w ww . j a v a 2 s . c o m*/ * @return valueListName * @see GuiAttribute#getValueListName(org.andromda.metafacades.uml.ParameterFacade) */ protected String handleGetValueListName(final ParameterFacade ownerParameter) { return StringUtils.replace(ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.VALUE_LIST_PATTERN)), "{0}", this.getFormPropertyId(ownerParameter)); }
From source file:org.andromda.cartridges.gui.metafacades.GuiAttributeLogicImpl.java
/** * Gets the current value of the specified input type (or an empty string * if one isn't specified)./*ww w . ja v a 2 s. c o m*/ * * @return the input type name. */ private String getInputType() { return ObjectUtils.toString(this.findTaggedValue(GuiProfile.TAGGEDVALUE_INPUT_TYPE)).trim(); }
From source file:org.andromda.cartridges.gui.metafacades.GuiAttributeLogicImpl.java
/** * @return findTaggedValue(GuiProfile.TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS) * @see GuiAttribute#getInputTableIdentifierColumns() */// w w w .j ava2s. c o m protected String handleGetInputTableIdentifierColumns() { return ObjectUtils.toString(this.findTaggedValue(GuiProfile.TAGGEDVALUE_INPUT_TABLE_IDENTIFIER_COLUMNS)) .trim(); }
From source file:org.andromda.cartridges.gui.metafacades.GuiControllerLogicImpl.java
/** * @return implementationName/*w w w. ja va 2 s . com*/ * @see org.andromda.cartridges.gui.metafacades.GuiController#getImplementationName() */ @Override protected String handleGetImplementationName() { final String pattern = ObjectUtils .toString(this.getConfiguredProperty(GuiGlobals.CONTROLLER_IMPLEMENTATION_PATTERN)); return pattern.replaceFirst("\\{0\\}", StringUtils.capitalize(this.getName())); }
From source file:org.andromda.cartridges.gui.metafacades.GuiControllerOperationLogicImpl.java
/** * @return formName//w ww .j a v a2 s . c o m * @see org.andromda.cartridges.gui.metafacades.GuiControllerOperation#getFormName() */ @Override protected String handleGetFormName() { final String pattern = ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.FORM_PATTERN)); return pattern.replaceFirst("\\{0\\}", StringUtils.capitalize(this.getName())); }
From source file:org.andromda.cartridges.gui.metafacades.GuiEnumerationLogicImpl.java
/** * @return converterName//from w w w . j a v a 2 s .c o m * @see org.andromda.cartridges.gui.metafacades.GuiEnumeration#getConverterName() */ @Override protected String handleGetConverterName() { return StringUtils.replace(ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.CONVERTER_PATTERN)), "{0}", this.getName()); }
From source file:org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEndLogicImpl.java
/** * @return backingListName// ww w .ja v a2 s . co m * @see org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEnd#getBackingListName() */ @Override protected String handleGetBackingListName() { final String backingListName = StringUtils.replace( ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.BACKING_LIST_PATTERN)), "{0}", this.getName()); return org.andromda.utils.StringUtilsHelper.lowerCamelCaseName(backingListName); }
From source file:org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEndLogicImpl.java
/** * @return valueListName/*www . j a v a 2 s . c o m*/ * @see org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEnd#getValueListName() */ @Override protected String handleGetValueListName() { return ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.VALUE_LIST_PATTERN)).replaceAll("\\{0\\}", this.getName()); }
From source file:org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEndLogicImpl.java
/** * @return labelListName//from www .ja va2 s . co m * @see org.andromda.cartridges.gui.metafacades.GuiManageableEntityAssociationEnd#getLabelListName() */ @Override protected String handleGetLabelListName() { return ObjectUtils.toString(this.getConfiguredProperty(GuiGlobals.LABEL_LIST_PATTERN)).replaceAll("\\{0\\}", this.getName()); }