/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * Return whether the underlying type is nillable if this is an array type. * @return true if it is an array and nillable */ public boolean getUnderlTypeNillable() { // refType could refer to array with underlying nillable // type - set the underlTypeNillable to true if this is // the case. if (!underlTypeNillable && !getDimensions().equals("") && refType != null) { underlTypeNillable = refType.getUnderlTypeNillable(); } return underlTypeNillable; }
/** * Returns the appropriate extends text * * @return "" or " extends <class> " */ protected String getExtendsText() { // See if this class extends another class String extendsText = ""; if ((extendType != null) && !isUnion() && (!type.isSimpleType() || !extendType.isBaseType()) && (extendType.getDimensions().length() == 0)) { extendsText = " extends " + extendType.getName() + " "; } return extendsText; }
/** * Returns a "wrapper" type for the given TypeEntry. * * @param type * @return the name of a java wrapper class for the type, or the type's * name if it's not a primitive. */ public static String getWrapperType(TypeEntry type) { String dims = type.getDimensions(); if (!dims.equals("")) { TypeEntry te = type.getRefType(); if (te != null && !te.getDimensions().equals("")) { return getWrapperType(te) + dims; } if (te instanceof BaseType || te instanceof DefinedElement && te.getRefType() instanceof BaseType) { return getWrapperType(te) + dims; } } return getWrapperType(type.getName()); }
/** * Returns a "wrapper" type for the given TypeEntry. * * @param type * @return the name of a java wrapper class for the type, or the type's * name if it's not a primitive. */ public static String getWrapperType(TypeEntry type) { String dims = type.getDimensions(); if (!dims.equals("")) { TypeEntry te = type.getRefType(); if (te != null && !te.getDimensions().equals("")) { return getWrapperType(te) + dims; } if (te instanceof BaseType || te instanceof DefinedElement && te.getRefType() instanceof BaseType) { return getWrapperType(te) + dims; } } return getWrapperType(type.getName()); }
/** * Returns the appropriate extends text * * @return "" or " extends <class> " */ protected String getExtendsText() { // See if this class extends another class String extendsText = ""; if ((extendType != null) && !isUnion() && (!type.isSimpleType() || !extendType.isBaseType()) && (extendType.getDimensions().length() == 0)) { extendsText = " extends " + extendType.getName() + " "; } return extendsText; }
/** * Returns a "wrapper" type for the given TypeEntry. * * @param type * @return the name of a java wrapper class for the type, or the type's * name if it's not a primitive. */ public static String getWrapperType(TypeEntry type) { String dims = type.getDimensions(); if (!dims.equals("")) { TypeEntry te = type.getRefType(); if (te != null && !te.getDimensions().equals("")) { return getWrapperType(te) + dims; } if (te instanceof BaseType || te instanceof DefinedElement && te.getRefType() instanceof BaseType) { return getWrapperType(te) + dims; } } return getWrapperType(type.getName()); }
/** * Returns the appropriate extends text * * @return "" or " extends <class> " */ protected String getExtendsText() { // See if this class extends another class String extendsText = ""; if ((extendType != null) && !isUnion() && (!type.isSimpleType() || !extendType.isBaseType()) && (extendType.getDimensions().length() == 0)) { extendsText = " extends " + extendType.getName() + " "; } return extendsText; }
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
op.getName(), content.getType())); String dims = typeEntry.getDimensions();
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
if ((param.isOmittable() && param.getType().getDimensions().equals("")) || (param.getType() instanceof CollectionType && ((CollectionType) param.getType()).isWrapped())
TypeEntry partType = getType(part.getTypeName()); if (partType.getDimensions().length() > 0) { dims = partType.getDimensions(); partType = partType.getRefType();
if ((parm.isOmittable() && parm.getType().getDimensions().equals("")) || (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped())
if ((parm.isOmittable() && parm.getType().getDimensions().equals("")) || (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped())
if ((parm.isOmittable() && parm.getType().getDimensions().equals("")) || (parm.getType() instanceof CollectionType && ((CollectionType) parm.getType()).isWrapped())