001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    import com.liferay.portal.model.ModelWrapper;
021    
022    import com.liferay.portlet.exportimport.lar.StagedModelType;
023    
024    import java.util.Date;
025    import java.util.HashMap;
026    import java.util.Map;
027    
028    /**
029     * <p>
030     * This class is a wrapper for {@link DLFileEntryType}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see DLFileEntryType
035     * @generated
036     */
037    @ProviderType
038    public class DLFileEntryTypeWrapper implements DLFileEntryType,
039            ModelWrapper<DLFileEntryType> {
040            public DLFileEntryTypeWrapper(DLFileEntryType dlFileEntryType) {
041                    _dlFileEntryType = dlFileEntryType;
042            }
043    
044            @Override
045            public Class<?> getModelClass() {
046                    return DLFileEntryType.class;
047            }
048    
049            @Override
050            public String getModelClassName() {
051                    return DLFileEntryType.class.getName();
052            }
053    
054            @Override
055            public Map<String, Object> getModelAttributes() {
056                    Map<String, Object> attributes = new HashMap<String, Object>();
057    
058                    attributes.put("uuid", getUuid());
059                    attributes.put("fileEntryTypeId", getFileEntryTypeId());
060                    attributes.put("groupId", getGroupId());
061                    attributes.put("companyId", getCompanyId());
062                    attributes.put("userId", getUserId());
063                    attributes.put("userName", getUserName());
064                    attributes.put("createDate", getCreateDate());
065                    attributes.put("modifiedDate", getModifiedDate());
066                    attributes.put("fileEntryTypeKey", getFileEntryTypeKey());
067                    attributes.put("name", getName());
068                    attributes.put("description", getDescription());
069                    attributes.put("lastPublishDate", getLastPublishDate());
070    
071                    return attributes;
072            }
073    
074            @Override
075            public void setModelAttributes(Map<String, Object> attributes) {
076                    String uuid = (String)attributes.get("uuid");
077    
078                    if (uuid != null) {
079                            setUuid(uuid);
080                    }
081    
082                    Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
083    
084                    if (fileEntryTypeId != null) {
085                            setFileEntryTypeId(fileEntryTypeId);
086                    }
087    
088                    Long groupId = (Long)attributes.get("groupId");
089    
090                    if (groupId != null) {
091                            setGroupId(groupId);
092                    }
093    
094                    Long companyId = (Long)attributes.get("companyId");
095    
096                    if (companyId != null) {
097                            setCompanyId(companyId);
098                    }
099    
100                    Long userId = (Long)attributes.get("userId");
101    
102                    if (userId != null) {
103                            setUserId(userId);
104                    }
105    
106                    String userName = (String)attributes.get("userName");
107    
108                    if (userName != null) {
109                            setUserName(userName);
110                    }
111    
112                    Date createDate = (Date)attributes.get("createDate");
113    
114                    if (createDate != null) {
115                            setCreateDate(createDate);
116                    }
117    
118                    Date modifiedDate = (Date)attributes.get("modifiedDate");
119    
120                    if (modifiedDate != null) {
121                            setModifiedDate(modifiedDate);
122                    }
123    
124                    String fileEntryTypeKey = (String)attributes.get("fileEntryTypeKey");
125    
126                    if (fileEntryTypeKey != null) {
127                            setFileEntryTypeKey(fileEntryTypeKey);
128                    }
129    
130                    String name = (String)attributes.get("name");
131    
132                    if (name != null) {
133                            setName(name);
134                    }
135    
136                    String description = (String)attributes.get("description");
137    
138                    if (description != null) {
139                            setDescription(description);
140                    }
141    
142                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
143    
144                    if (lastPublishDate != null) {
145                            setLastPublishDate(lastPublishDate);
146                    }
147            }
148    
149            @Override
150            public java.lang.Object clone() {
151                    return new DLFileEntryTypeWrapper((DLFileEntryType)_dlFileEntryType.clone());
152            }
153    
154            @Override
155            public int compareTo(
156                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
157                    return _dlFileEntryType.compareTo(dlFileEntryType);
158            }
159    
160            @Override
161            public java.lang.String[] getAvailableLanguageIds() {
162                    return _dlFileEntryType.getAvailableLanguageIds();
163            }
164    
165            /**
166            * Returns the company ID of this document library file entry type.
167            *
168            * @return the company ID of this document library file entry type
169            */
170            @Override
171            public long getCompanyId() {
172                    return _dlFileEntryType.getCompanyId();
173            }
174    
175            /**
176            * Returns the create date of this document library file entry type.
177            *
178            * @return the create date of this document library file entry type
179            */
180            @Override
181            public Date getCreateDate() {
182                    return _dlFileEntryType.getCreateDate();
183            }
184    
185            @Override
186            public java.util.List<com.liferay.portlet.dynamicdatamapping.DDMStructure> getDDMStructures() {
187                    return _dlFileEntryType.getDDMStructures();
188            }
189    
190            @Override
191            public java.lang.String getDefaultLanguageId() {
192                    return _dlFileEntryType.getDefaultLanguageId();
193            }
194    
195            /**
196            * Returns the description of this document library file entry type.
197            *
198            * @return the description of this document library file entry type
199            */
200            @Override
201            public java.lang.String getDescription() {
202                    return _dlFileEntryType.getDescription();
203            }
204    
205            /**
206            * Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
207            *
208            * @param languageId the ID of the language
209            * @return the localized description of this document library file entry type
210            */
211            @Override
212            public java.lang.String getDescription(java.lang.String languageId) {
213                    return _dlFileEntryType.getDescription(languageId);
214            }
215    
216            /**
217            * Returns the localized description of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
218            *
219            * @param languageId the ID of the language
220            * @param useDefault whether to use the default language if no localization exists for the requested language
221            * @return the localized description of this document library file entry type
222            */
223            @Override
224            public java.lang.String getDescription(java.lang.String languageId,
225                    boolean useDefault) {
226                    return _dlFileEntryType.getDescription(languageId, useDefault);
227            }
228    
229            /**
230            * Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
231            *
232            * @param locale the locale of the language
233            * @return the localized description of this document library file entry type
234            */
235            @Override
236            public java.lang.String getDescription(java.util.Locale locale) {
237                    return _dlFileEntryType.getDescription(locale);
238            }
239    
240            /**
241            * Returns the localized description of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
242            *
243            * @param locale the local of the language
244            * @param useDefault whether to use the default language if no localization exists for the requested language
245            * @return the localized description of this document library file entry type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
246            */
247            @Override
248            public java.lang.String getDescription(java.util.Locale locale,
249                    boolean useDefault) {
250                    return _dlFileEntryType.getDescription(locale, useDefault);
251            }
252    
253            @Override
254            public java.lang.String getDescriptionCurrentLanguageId() {
255                    return _dlFileEntryType.getDescriptionCurrentLanguageId();
256            }
257    
258            @Override
259            public java.lang.String getDescriptionCurrentValue() {
260                    return _dlFileEntryType.getDescriptionCurrentValue();
261            }
262    
263            /**
264            * Returns a map of the locales and localized descriptions of this document library file entry type.
265            *
266            * @return the locales and localized descriptions of this document library file entry type
267            */
268            @Override
269            public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
270                    return _dlFileEntryType.getDescriptionMap();
271            }
272    
273            @Override
274            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
275                    return _dlFileEntryType.getExpandoBridge();
276            }
277    
278            /**
279            * Returns the file entry type ID of this document library file entry type.
280            *
281            * @return the file entry type ID of this document library file entry type
282            */
283            @Override
284            public long getFileEntryTypeId() {
285                    return _dlFileEntryType.getFileEntryTypeId();
286            }
287    
288            /**
289            * Returns the file entry type key of this document library file entry type.
290            *
291            * @return the file entry type key of this document library file entry type
292            */
293            @Override
294            public java.lang.String getFileEntryTypeKey() {
295                    return _dlFileEntryType.getFileEntryTypeKey();
296            }
297    
298            /**
299            * Returns the group ID of this document library file entry type.
300            *
301            * @return the group ID of this document library file entry type
302            */
303            @Override
304            public long getGroupId() {
305                    return _dlFileEntryType.getGroupId();
306            }
307    
308            /**
309            * Returns the last publish date of this document library file entry type.
310            *
311            * @return the last publish date of this document library file entry type
312            */
313            @Override
314            public Date getLastPublishDate() {
315                    return _dlFileEntryType.getLastPublishDate();
316            }
317    
318            /**
319            * Returns the modified date of this document library file entry type.
320            *
321            * @return the modified date of this document library file entry type
322            */
323            @Override
324            public Date getModifiedDate() {
325                    return _dlFileEntryType.getModifiedDate();
326            }
327    
328            /**
329            * Returns the name of this document library file entry type.
330            *
331            * @return the name of this document library file entry type
332            */
333            @Override
334            public java.lang.String getName() {
335                    return _dlFileEntryType.getName();
336            }
337    
338            /**
339            * Returns the localized name of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
340            *
341            * @param languageId the ID of the language
342            * @return the localized name of this document library file entry type
343            */
344            @Override
345            public java.lang.String getName(java.lang.String languageId) {
346                    return _dlFileEntryType.getName(languageId);
347            }
348    
349            /**
350            * Returns the localized name of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
351            *
352            * @param languageId the ID of the language
353            * @param useDefault whether to use the default language if no localization exists for the requested language
354            * @return the localized name of this document library file entry type
355            */
356            @Override
357            public java.lang.String getName(java.lang.String languageId,
358                    boolean useDefault) {
359                    return _dlFileEntryType.getName(languageId, useDefault);
360            }
361    
362            /**
363            * Returns the localized name of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
364            *
365            * @param locale the locale of the language
366            * @return the localized name of this document library file entry type
367            */
368            @Override
369            public java.lang.String getName(java.util.Locale locale) {
370                    return _dlFileEntryType.getName(locale);
371            }
372    
373            /**
374            * Returns the localized name of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
375            *
376            * @param locale the local of the language
377            * @param useDefault whether to use the default language if no localization exists for the requested language
378            * @return the localized name of this document library file entry type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
379            */
380            @Override
381            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
382                    return _dlFileEntryType.getName(locale, useDefault);
383            }
384    
385            @Override
386            public java.lang.String getNameCurrentLanguageId() {
387                    return _dlFileEntryType.getNameCurrentLanguageId();
388            }
389    
390            @Override
391            public java.lang.String getNameCurrentValue() {
392                    return _dlFileEntryType.getNameCurrentValue();
393            }
394    
395            /**
396            * Returns a map of the locales and localized names of this document library file entry type.
397            *
398            * @return the locales and localized names of this document library file entry type
399            */
400            @Override
401            public Map<java.util.Locale, java.lang.String> getNameMap() {
402                    return _dlFileEntryType.getNameMap();
403            }
404    
405            /**
406            * Returns the primary key of this document library file entry type.
407            *
408            * @return the primary key of this document library file entry type
409            */
410            @Override
411            public long getPrimaryKey() {
412                    return _dlFileEntryType.getPrimaryKey();
413            }
414    
415            @Override
416            public java.io.Serializable getPrimaryKeyObj() {
417                    return _dlFileEntryType.getPrimaryKeyObj();
418            }
419    
420            @Override
421            public java.lang.String getUnambiguousName(
422                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes,
423                    long groupId, java.util.Locale locale)
424                    throws com.liferay.portal.kernel.exception.PortalException {
425                    return _dlFileEntryType.getUnambiguousName(dlFileEntryTypes, groupId,
426                            locale);
427            }
428    
429            /**
430            * Returns the user ID of this document library file entry type.
431            *
432            * @return the user ID of this document library file entry type
433            */
434            @Override
435            public long getUserId() {
436                    return _dlFileEntryType.getUserId();
437            }
438    
439            /**
440            * Returns the user name of this document library file entry type.
441            *
442            * @return the user name of this document library file entry type
443            */
444            @Override
445            public java.lang.String getUserName() {
446                    return _dlFileEntryType.getUserName();
447            }
448    
449            /**
450            * Returns the user uuid of this document library file entry type.
451            *
452            * @return the user uuid of this document library file entry type
453            */
454            @Override
455            public java.lang.String getUserUuid() {
456                    return _dlFileEntryType.getUserUuid();
457            }
458    
459            /**
460            * Returns the uuid of this document library file entry type.
461            *
462            * @return the uuid of this document library file entry type
463            */
464            @Override
465            public java.lang.String getUuid() {
466                    return _dlFileEntryType.getUuid();
467            }
468    
469            @Override
470            public int hashCode() {
471                    return _dlFileEntryType.hashCode();
472            }
473    
474            @Override
475            public boolean isCachedModel() {
476                    return _dlFileEntryType.isCachedModel();
477            }
478    
479            @Override
480            public boolean isEscapedModel() {
481                    return _dlFileEntryType.isEscapedModel();
482            }
483    
484            @Override
485            public boolean isExportable() {
486                    return _dlFileEntryType.isExportable();
487            }
488    
489            @Override
490            public boolean isNew() {
491                    return _dlFileEntryType.isNew();
492            }
493    
494            @Override
495            public void persist() {
496                    _dlFileEntryType.persist();
497            }
498    
499            @Override
500            public void prepareLocalizedFieldsForImport()
501                    throws com.liferay.portal.LocaleException {
502                    _dlFileEntryType.prepareLocalizedFieldsForImport();
503            }
504    
505            @Override
506            public void prepareLocalizedFieldsForImport(
507                    java.util.Locale defaultImportLocale)
508                    throws com.liferay.portal.LocaleException {
509                    _dlFileEntryType.prepareLocalizedFieldsForImport(defaultImportLocale);
510            }
511    
512            @Override
513            public void setCachedModel(boolean cachedModel) {
514                    _dlFileEntryType.setCachedModel(cachedModel);
515            }
516    
517            /**
518            * Sets the company ID of this document library file entry type.
519            *
520            * @param companyId the company ID of this document library file entry type
521            */
522            @Override
523            public void setCompanyId(long companyId) {
524                    _dlFileEntryType.setCompanyId(companyId);
525            }
526    
527            /**
528            * Sets the create date of this document library file entry type.
529            *
530            * @param createDate the create date of this document library file entry type
531            */
532            @Override
533            public void setCreateDate(Date createDate) {
534                    _dlFileEntryType.setCreateDate(createDate);
535            }
536    
537            /**
538            * Sets the description of this document library file entry type.
539            *
540            * @param description the description of this document library file entry type
541            */
542            @Override
543            public void setDescription(java.lang.String description) {
544                    _dlFileEntryType.setDescription(description);
545            }
546    
547            /**
548            * Sets the localized description of this document library file entry type in the language.
549            *
550            * @param description the localized description of this document library file entry type
551            * @param locale the locale of the language
552            */
553            @Override
554            public void setDescription(java.lang.String description,
555                    java.util.Locale locale) {
556                    _dlFileEntryType.setDescription(description, locale);
557            }
558    
559            /**
560            * Sets the localized description of this document library file entry type in the language, and sets the default locale.
561            *
562            * @param description the localized description of this document library file entry type
563            * @param locale the locale of the language
564            * @param defaultLocale the default locale
565            */
566            @Override
567            public void setDescription(java.lang.String description,
568                    java.util.Locale locale, java.util.Locale defaultLocale) {
569                    _dlFileEntryType.setDescription(description, locale, defaultLocale);
570            }
571    
572            @Override
573            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
574                    _dlFileEntryType.setDescriptionCurrentLanguageId(languageId);
575            }
576    
577            /**
578            * Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions.
579            *
580            * @param descriptionMap the locales and localized descriptions of this document library file entry type
581            */
582            @Override
583            public void setDescriptionMap(
584                    Map<java.util.Locale, java.lang.String> descriptionMap) {
585                    _dlFileEntryType.setDescriptionMap(descriptionMap);
586            }
587    
588            /**
589            * Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions, and sets the default locale.
590            *
591            * @param descriptionMap the locales and localized descriptions of this document library file entry type
592            * @param defaultLocale the default locale
593            */
594            @Override
595            public void setDescriptionMap(
596                    Map<java.util.Locale, java.lang.String> descriptionMap,
597                    java.util.Locale defaultLocale) {
598                    _dlFileEntryType.setDescriptionMap(descriptionMap, defaultLocale);
599            }
600    
601            @Override
602            public void setExpandoBridgeAttributes(
603                    com.liferay.portal.model.BaseModel<?> baseModel) {
604                    _dlFileEntryType.setExpandoBridgeAttributes(baseModel);
605            }
606    
607            @Override
608            public void setExpandoBridgeAttributes(
609                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
610                    _dlFileEntryType.setExpandoBridgeAttributes(expandoBridge);
611            }
612    
613            @Override
614            public void setExpandoBridgeAttributes(
615                    com.liferay.portal.service.ServiceContext serviceContext) {
616                    _dlFileEntryType.setExpandoBridgeAttributes(serviceContext);
617            }
618    
619            /**
620            * Sets the file entry type ID of this document library file entry type.
621            *
622            * @param fileEntryTypeId the file entry type ID of this document library file entry type
623            */
624            @Override
625            public void setFileEntryTypeId(long fileEntryTypeId) {
626                    _dlFileEntryType.setFileEntryTypeId(fileEntryTypeId);
627            }
628    
629            /**
630            * Sets the file entry type key of this document library file entry type.
631            *
632            * @param fileEntryTypeKey the file entry type key of this document library file entry type
633            */
634            @Override
635            public void setFileEntryTypeKey(java.lang.String fileEntryTypeKey) {
636                    _dlFileEntryType.setFileEntryTypeKey(fileEntryTypeKey);
637            }
638    
639            /**
640            * Sets the group ID of this document library file entry type.
641            *
642            * @param groupId the group ID of this document library file entry type
643            */
644            @Override
645            public void setGroupId(long groupId) {
646                    _dlFileEntryType.setGroupId(groupId);
647            }
648    
649            /**
650            * Sets the last publish date of this document library file entry type.
651            *
652            * @param lastPublishDate the last publish date of this document library file entry type
653            */
654            @Override
655            public void setLastPublishDate(Date lastPublishDate) {
656                    _dlFileEntryType.setLastPublishDate(lastPublishDate);
657            }
658    
659            /**
660            * Sets the modified date of this document library file entry type.
661            *
662            * @param modifiedDate the modified date of this document library file entry type
663            */
664            @Override
665            public void setModifiedDate(Date modifiedDate) {
666                    _dlFileEntryType.setModifiedDate(modifiedDate);
667            }
668    
669            /**
670            * Sets the name of this document library file entry type.
671            *
672            * @param name the name of this document library file entry type
673            */
674            @Override
675            public void setName(java.lang.String name) {
676                    _dlFileEntryType.setName(name);
677            }
678    
679            /**
680            * Sets the localized name of this document library file entry type in the language.
681            *
682            * @param name the localized name of this document library file entry type
683            * @param locale the locale of the language
684            */
685            @Override
686            public void setName(java.lang.String name, java.util.Locale locale) {
687                    _dlFileEntryType.setName(name, locale);
688            }
689    
690            /**
691            * Sets the localized name of this document library file entry type in the language, and sets the default locale.
692            *
693            * @param name the localized name of this document library file entry type
694            * @param locale the locale of the language
695            * @param defaultLocale the default locale
696            */
697            @Override
698            public void setName(java.lang.String name, java.util.Locale locale,
699                    java.util.Locale defaultLocale) {
700                    _dlFileEntryType.setName(name, locale, defaultLocale);
701            }
702    
703            @Override
704            public void setNameCurrentLanguageId(java.lang.String languageId) {
705                    _dlFileEntryType.setNameCurrentLanguageId(languageId);
706            }
707    
708            /**
709            * Sets the localized names of this document library file entry type from the map of locales and localized names.
710            *
711            * @param nameMap the locales and localized names of this document library file entry type
712            */
713            @Override
714            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
715                    _dlFileEntryType.setNameMap(nameMap);
716            }
717    
718            /**
719            * Sets the localized names of this document library file entry type from the map of locales and localized names, and sets the default locale.
720            *
721            * @param nameMap the locales and localized names of this document library file entry type
722            * @param defaultLocale the default locale
723            */
724            @Override
725            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
726                    java.util.Locale defaultLocale) {
727                    _dlFileEntryType.setNameMap(nameMap, defaultLocale);
728            }
729    
730            @Override
731            public void setNew(boolean n) {
732                    _dlFileEntryType.setNew(n);
733            }
734    
735            /**
736            * Sets the primary key of this document library file entry type.
737            *
738            * @param primaryKey the primary key of this document library file entry type
739            */
740            @Override
741            public void setPrimaryKey(long primaryKey) {
742                    _dlFileEntryType.setPrimaryKey(primaryKey);
743            }
744    
745            @Override
746            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
747                    _dlFileEntryType.setPrimaryKeyObj(primaryKeyObj);
748            }
749    
750            /**
751            * Sets the user ID of this document library file entry type.
752            *
753            * @param userId the user ID of this document library file entry type
754            */
755            @Override
756            public void setUserId(long userId) {
757                    _dlFileEntryType.setUserId(userId);
758            }
759    
760            /**
761            * Sets the user name of this document library file entry type.
762            *
763            * @param userName the user name of this document library file entry type
764            */
765            @Override
766            public void setUserName(java.lang.String userName) {
767                    _dlFileEntryType.setUserName(userName);
768            }
769    
770            /**
771            * Sets the user uuid of this document library file entry type.
772            *
773            * @param userUuid the user uuid of this document library file entry type
774            */
775            @Override
776            public void setUserUuid(java.lang.String userUuid) {
777                    _dlFileEntryType.setUserUuid(userUuid);
778            }
779    
780            /**
781            * Sets the uuid of this document library file entry type.
782            *
783            * @param uuid the uuid of this document library file entry type
784            */
785            @Override
786            public void setUuid(java.lang.String uuid) {
787                    _dlFileEntryType.setUuid(uuid);
788            }
789    
790            @Override
791            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileEntryType> toCacheModel() {
792                    return _dlFileEntryType.toCacheModel();
793            }
794    
795            @Override
796            public com.liferay.portlet.documentlibrary.model.DLFileEntryType toEscapedModel() {
797                    return new DLFileEntryTypeWrapper(_dlFileEntryType.toEscapedModel());
798            }
799    
800            @Override
801            public java.lang.String toString() {
802                    return _dlFileEntryType.toString();
803            }
804    
805            @Override
806            public com.liferay.portlet.documentlibrary.model.DLFileEntryType toUnescapedModel() {
807                    return new DLFileEntryTypeWrapper(_dlFileEntryType.toUnescapedModel());
808            }
809    
810            @Override
811            public java.lang.String toXmlString() {
812                    return _dlFileEntryType.toXmlString();
813            }
814    
815            @Override
816            public boolean equals(Object obj) {
817                    if (this == obj) {
818                            return true;
819                    }
820    
821                    if (!(obj instanceof DLFileEntryTypeWrapper)) {
822                            return false;
823                    }
824    
825                    DLFileEntryTypeWrapper dlFileEntryTypeWrapper = (DLFileEntryTypeWrapper)obj;
826    
827                    if (Validator.equals(_dlFileEntryType,
828                                            dlFileEntryTypeWrapper._dlFileEntryType)) {
829                            return true;
830                    }
831    
832                    return false;
833            }
834    
835            @Override
836            public StagedModelType getStagedModelType() {
837                    return _dlFileEntryType.getStagedModelType();
838            }
839    
840            @Override
841            public DLFileEntryType getWrappedModel() {
842                    return _dlFileEntryType;
843            }
844    
845            @Override
846            public boolean isEntityCacheEnabled() {
847                    return _dlFileEntryType.isEntityCacheEnabled();
848            }
849    
850            @Override
851            public boolean isFinderCacheEnabled() {
852                    return _dlFileEntryType.isFinderCacheEnabled();
853            }
854    
855            @Override
856            public void resetOriginalValues() {
857                    _dlFileEntryType.resetOriginalValues();
858            }
859    
860            private final DLFileEntryType _dlFileEntryType;
861    }