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