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