001    /**
002     * Copyright (c) 2000-2013 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.portal.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    
020    import java.util.Date;
021    import java.util.HashMap;
022    import java.util.Map;
023    
024    /**
025     * <p>
026     * This class is a wrapper for {@link Layout}.
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see Layout
031     * @generated
032     */
033    public class LayoutWrapper implements Layout, ModelWrapper<Layout> {
034            public LayoutWrapper(Layout layout) {
035                    _layout = layout;
036            }
037    
038            @Override
039            public Class<?> getModelClass() {
040                    return Layout.class;
041            }
042    
043            @Override
044            public String getModelClassName() {
045                    return Layout.class.getName();
046            }
047    
048            @Override
049            public Map<String, Object> getModelAttributes() {
050                    Map<String, Object> attributes = new HashMap<String, Object>();
051    
052                    attributes.put("uuid", getUuid());
053                    attributes.put("plid", getPlid());
054                    attributes.put("groupId", getGroupId());
055                    attributes.put("companyId", getCompanyId());
056                    attributes.put("userId", getUserId());
057                    attributes.put("userName", getUserName());
058                    attributes.put("createDate", getCreateDate());
059                    attributes.put("modifiedDate", getModifiedDate());
060                    attributes.put("privateLayout", getPrivateLayout());
061                    attributes.put("layoutId", getLayoutId());
062                    attributes.put("parentLayoutId", getParentLayoutId());
063                    attributes.put("name", getName());
064                    attributes.put("title", getTitle());
065                    attributes.put("description", getDescription());
066                    attributes.put("keywords", getKeywords());
067                    attributes.put("robots", getRobots());
068                    attributes.put("type", getType());
069                    attributes.put("typeSettings", getTypeSettings());
070                    attributes.put("hidden", getHidden());
071                    attributes.put("friendlyURL", getFriendlyURL());
072                    attributes.put("iconImage", getIconImage());
073                    attributes.put("iconImageId", getIconImageId());
074                    attributes.put("themeId", getThemeId());
075                    attributes.put("colorSchemeId", getColorSchemeId());
076                    attributes.put("wapThemeId", getWapThemeId());
077                    attributes.put("wapColorSchemeId", getWapColorSchemeId());
078                    attributes.put("css", getCss());
079                    attributes.put("priority", getPriority());
080                    attributes.put("layoutPrototypeUuid", getLayoutPrototypeUuid());
081                    attributes.put("layoutPrototypeLinkEnabled",
082                            getLayoutPrototypeLinkEnabled());
083                    attributes.put("sourcePrototypeLayoutUuid",
084                            getSourcePrototypeLayoutUuid());
085    
086                    return attributes;
087            }
088    
089            @Override
090            public void setModelAttributes(Map<String, Object> attributes) {
091                    String uuid = (String)attributes.get("uuid");
092    
093                    if (uuid != null) {
094                            setUuid(uuid);
095                    }
096    
097                    Long plid = (Long)attributes.get("plid");
098    
099                    if (plid != null) {
100                            setPlid(plid);
101                    }
102    
103                    Long groupId = (Long)attributes.get("groupId");
104    
105                    if (groupId != null) {
106                            setGroupId(groupId);
107                    }
108    
109                    Long companyId = (Long)attributes.get("companyId");
110    
111                    if (companyId != null) {
112                            setCompanyId(companyId);
113                    }
114    
115                    Long userId = (Long)attributes.get("userId");
116    
117                    if (userId != null) {
118                            setUserId(userId);
119                    }
120    
121                    String userName = (String)attributes.get("userName");
122    
123                    if (userName != null) {
124                            setUserName(userName);
125                    }
126    
127                    Date createDate = (Date)attributes.get("createDate");
128    
129                    if (createDate != null) {
130                            setCreateDate(createDate);
131                    }
132    
133                    Date modifiedDate = (Date)attributes.get("modifiedDate");
134    
135                    if (modifiedDate != null) {
136                            setModifiedDate(modifiedDate);
137                    }
138    
139                    Boolean privateLayout = (Boolean)attributes.get("privateLayout");
140    
141                    if (privateLayout != null) {
142                            setPrivateLayout(privateLayout);
143                    }
144    
145                    Long layoutId = (Long)attributes.get("layoutId");
146    
147                    if (layoutId != null) {
148                            setLayoutId(layoutId);
149                    }
150    
151                    Long parentLayoutId = (Long)attributes.get("parentLayoutId");
152    
153                    if (parentLayoutId != null) {
154                            setParentLayoutId(parentLayoutId);
155                    }
156    
157                    String name = (String)attributes.get("name");
158    
159                    if (name != null) {
160                            setName(name);
161                    }
162    
163                    String title = (String)attributes.get("title");
164    
165                    if (title != null) {
166                            setTitle(title);
167                    }
168    
169                    String description = (String)attributes.get("description");
170    
171                    if (description != null) {
172                            setDescription(description);
173                    }
174    
175                    String keywords = (String)attributes.get("keywords");
176    
177                    if (keywords != null) {
178                            setKeywords(keywords);
179                    }
180    
181                    String robots = (String)attributes.get("robots");
182    
183                    if (robots != null) {
184                            setRobots(robots);
185                    }
186    
187                    String type = (String)attributes.get("type");
188    
189                    if (type != null) {
190                            setType(type);
191                    }
192    
193                    String typeSettings = (String)attributes.get("typeSettings");
194    
195                    if (typeSettings != null) {
196                            setTypeSettings(typeSettings);
197                    }
198    
199                    Boolean hidden = (Boolean)attributes.get("hidden");
200    
201                    if (hidden != null) {
202                            setHidden(hidden);
203                    }
204    
205                    String friendlyURL = (String)attributes.get("friendlyURL");
206    
207                    if (friendlyURL != null) {
208                            setFriendlyURL(friendlyURL);
209                    }
210    
211                    Boolean iconImage = (Boolean)attributes.get("iconImage");
212    
213                    if (iconImage != null) {
214                            setIconImage(iconImage);
215                    }
216    
217                    Long iconImageId = (Long)attributes.get("iconImageId");
218    
219                    if (iconImageId != null) {
220                            setIconImageId(iconImageId);
221                    }
222    
223                    String themeId = (String)attributes.get("themeId");
224    
225                    if (themeId != null) {
226                            setThemeId(themeId);
227                    }
228    
229                    String colorSchemeId = (String)attributes.get("colorSchemeId");
230    
231                    if (colorSchemeId != null) {
232                            setColorSchemeId(colorSchemeId);
233                    }
234    
235                    String wapThemeId = (String)attributes.get("wapThemeId");
236    
237                    if (wapThemeId != null) {
238                            setWapThemeId(wapThemeId);
239                    }
240    
241                    String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
242    
243                    if (wapColorSchemeId != null) {
244                            setWapColorSchemeId(wapColorSchemeId);
245                    }
246    
247                    String css = (String)attributes.get("css");
248    
249                    if (css != null) {
250                            setCss(css);
251                    }
252    
253                    Integer priority = (Integer)attributes.get("priority");
254    
255                    if (priority != null) {
256                            setPriority(priority);
257                    }
258    
259                    String layoutPrototypeUuid = (String)attributes.get(
260                                    "layoutPrototypeUuid");
261    
262                    if (layoutPrototypeUuid != null) {
263                            setLayoutPrototypeUuid(layoutPrototypeUuid);
264                    }
265    
266                    Boolean layoutPrototypeLinkEnabled = (Boolean)attributes.get(
267                                    "layoutPrototypeLinkEnabled");
268    
269                    if (layoutPrototypeLinkEnabled != null) {
270                            setLayoutPrototypeLinkEnabled(layoutPrototypeLinkEnabled);
271                    }
272    
273                    String sourcePrototypeLayoutUuid = (String)attributes.get(
274                                    "sourcePrototypeLayoutUuid");
275    
276                    if (sourcePrototypeLayoutUuid != null) {
277                            setSourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid);
278                    }
279            }
280    
281            /**
282            * Returns the primary key of this layout.
283            *
284            * @return the primary key of this layout
285            */
286            @Override
287            public long getPrimaryKey() {
288                    return _layout.getPrimaryKey();
289            }
290    
291            /**
292            * Sets the primary key of this layout.
293            *
294            * @param primaryKey the primary key of this layout
295            */
296            @Override
297            public void setPrimaryKey(long primaryKey) {
298                    _layout.setPrimaryKey(primaryKey);
299            }
300    
301            /**
302            * Returns the uuid of this layout.
303            *
304            * @return the uuid of this layout
305            */
306            @Override
307            public java.lang.String getUuid() {
308                    return _layout.getUuid();
309            }
310    
311            /**
312            * Sets the uuid of this layout.
313            *
314            * @param uuid the uuid of this layout
315            */
316            @Override
317            public void setUuid(java.lang.String uuid) {
318                    _layout.setUuid(uuid);
319            }
320    
321            /**
322            * Returns the plid of this layout.
323            *
324            * @return the plid of this layout
325            */
326            @Override
327            public long getPlid() {
328                    return _layout.getPlid();
329            }
330    
331            /**
332            * Sets the plid of this layout.
333            *
334            * @param plid the plid of this layout
335            */
336            @Override
337            public void setPlid(long plid) {
338                    _layout.setPlid(plid);
339            }
340    
341            /**
342            * Returns the group ID of this layout.
343            *
344            * @return the group ID of this layout
345            */
346            @Override
347            public long getGroupId() {
348                    return _layout.getGroupId();
349            }
350    
351            /**
352            * Sets the group ID of this layout.
353            *
354            * @param groupId the group ID of this layout
355            */
356            @Override
357            public void setGroupId(long groupId) {
358                    _layout.setGroupId(groupId);
359            }
360    
361            /**
362            * Returns the company ID of this layout.
363            *
364            * @return the company ID of this layout
365            */
366            @Override
367            public long getCompanyId() {
368                    return _layout.getCompanyId();
369            }
370    
371            /**
372            * Sets the company ID of this layout.
373            *
374            * @param companyId the company ID of this layout
375            */
376            @Override
377            public void setCompanyId(long companyId) {
378                    _layout.setCompanyId(companyId);
379            }
380    
381            /**
382            * Returns the user ID of this layout.
383            *
384            * @return the user ID of this layout
385            */
386            @Override
387            public long getUserId() {
388                    return _layout.getUserId();
389            }
390    
391            /**
392            * Sets the user ID of this layout.
393            *
394            * @param userId the user ID of this layout
395            */
396            @Override
397            public void setUserId(long userId) {
398                    _layout.setUserId(userId);
399            }
400    
401            /**
402            * Returns the user uuid of this layout.
403            *
404            * @return the user uuid of this layout
405            * @throws SystemException if a system exception occurred
406            */
407            @Override
408            public java.lang.String getUserUuid()
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _layout.getUserUuid();
411            }
412    
413            /**
414            * Sets the user uuid of this layout.
415            *
416            * @param userUuid the user uuid of this layout
417            */
418            @Override
419            public void setUserUuid(java.lang.String userUuid) {
420                    _layout.setUserUuid(userUuid);
421            }
422    
423            /**
424            * Returns the user name of this layout.
425            *
426            * @return the user name of this layout
427            */
428            @Override
429            public java.lang.String getUserName() {
430                    return _layout.getUserName();
431            }
432    
433            /**
434            * Sets the user name of this layout.
435            *
436            * @param userName the user name of this layout
437            */
438            @Override
439            public void setUserName(java.lang.String userName) {
440                    _layout.setUserName(userName);
441            }
442    
443            /**
444            * Returns the create date of this layout.
445            *
446            * @return the create date of this layout
447            */
448            @Override
449            public java.util.Date getCreateDate() {
450                    return _layout.getCreateDate();
451            }
452    
453            /**
454            * Sets the create date of this layout.
455            *
456            * @param createDate the create date of this layout
457            */
458            @Override
459            public void setCreateDate(java.util.Date createDate) {
460                    _layout.setCreateDate(createDate);
461            }
462    
463            /**
464            * Returns the modified date of this layout.
465            *
466            * @return the modified date of this layout
467            */
468            @Override
469            public java.util.Date getModifiedDate() {
470                    return _layout.getModifiedDate();
471            }
472    
473            /**
474            * Sets the modified date of this layout.
475            *
476            * @param modifiedDate the modified date of this layout
477            */
478            @Override
479            public void setModifiedDate(java.util.Date modifiedDate) {
480                    _layout.setModifiedDate(modifiedDate);
481            }
482    
483            /**
484            * Returns the private layout of this layout.
485            *
486            * @return the private layout of this layout
487            */
488            @Override
489            public boolean getPrivateLayout() {
490                    return _layout.getPrivateLayout();
491            }
492    
493            /**
494            * Returns <code>true</code> if this layout is private layout.
495            *
496            * @return <code>true</code> if this layout is private layout; <code>false</code> otherwise
497            */
498            @Override
499            public boolean isPrivateLayout() {
500                    return _layout.isPrivateLayout();
501            }
502    
503            /**
504            * Sets whether this layout is private layout.
505            *
506            * @param privateLayout the private layout of this layout
507            */
508            @Override
509            public void setPrivateLayout(boolean privateLayout) {
510                    _layout.setPrivateLayout(privateLayout);
511            }
512    
513            /**
514            * Returns the layout ID of this layout.
515            *
516            * @return the layout ID of this layout
517            */
518            @Override
519            public long getLayoutId() {
520                    return _layout.getLayoutId();
521            }
522    
523            /**
524            * Sets the layout ID of this layout.
525            *
526            * @param layoutId the layout ID of this layout
527            */
528            @Override
529            public void setLayoutId(long layoutId) {
530                    _layout.setLayoutId(layoutId);
531            }
532    
533            /**
534            * Returns the parent layout ID of this layout.
535            *
536            * @return the parent layout ID of this layout
537            */
538            @Override
539            public long getParentLayoutId() {
540                    return _layout.getParentLayoutId();
541            }
542    
543            /**
544            * Sets the parent layout ID of this layout.
545            *
546            * @param parentLayoutId the parent layout ID of this layout
547            */
548            @Override
549            public void setParentLayoutId(long parentLayoutId) {
550                    _layout.setParentLayoutId(parentLayoutId);
551            }
552    
553            /**
554            * Returns the name of this layout.
555            *
556            * @return the name of this layout
557            */
558            @Override
559            public java.lang.String getName() {
560                    return _layout.getName();
561            }
562    
563            /**
564            * Returns the localized name of this layout in the language. Uses the default language if no localization exists for the requested language.
565            *
566            * @param locale the locale of the language
567            * @return the localized name of this layout
568            */
569            @Override
570            public java.lang.String getName(java.util.Locale locale) {
571                    return _layout.getName(locale);
572            }
573    
574            /**
575            * Returns the localized name of this layout in the language, optionally using the default language if no localization exists for the requested language.
576            *
577            * @param locale the local of the language
578            * @param useDefault whether to use the default language if no localization exists for the requested language
579            * @return the localized name of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
580            */
581            @Override
582            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
583                    return _layout.getName(locale, useDefault);
584            }
585    
586            /**
587            * Returns the localized name of this layout in the language. Uses the default language if no localization exists for the requested language.
588            *
589            * @param languageId the ID of the language
590            * @return the localized name of this layout
591            */
592            @Override
593            public java.lang.String getName(java.lang.String languageId) {
594                    return _layout.getName(languageId);
595            }
596    
597            /**
598            * Returns the localized name of this layout in the language, optionally using the default language if no localization exists for the requested language.
599            *
600            * @param languageId the ID of the language
601            * @param useDefault whether to use the default language if no localization exists for the requested language
602            * @return the localized name of this layout
603            */
604            @Override
605            public java.lang.String getName(java.lang.String languageId,
606                    boolean useDefault) {
607                    return _layout.getName(languageId, useDefault);
608            }
609    
610            @Override
611            public java.lang.String getNameCurrentLanguageId() {
612                    return _layout.getNameCurrentLanguageId();
613            }
614    
615            @Override
616            public java.lang.String getNameCurrentValue() {
617                    return _layout.getNameCurrentValue();
618            }
619    
620            /**
621            * Returns a map of the locales and localized names of this layout.
622            *
623            * @return the locales and localized names of this layout
624            */
625            @Override
626            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
627                    return _layout.getNameMap();
628            }
629    
630            /**
631            * Sets the name of this layout.
632            *
633            * @param name the name of this layout
634            */
635            @Override
636            public void setName(java.lang.String name) {
637                    _layout.setName(name);
638            }
639    
640            /**
641            * Sets the localized name of this layout in the language.
642            *
643            * @param name the localized name of this layout
644            * @param locale the locale of the language
645            */
646            @Override
647            public void setName(java.lang.String name, java.util.Locale locale) {
648                    _layout.setName(name, locale);
649            }
650    
651            /**
652            * Sets the localized name of this layout in the language, and sets the default locale.
653            *
654            * @param name the localized name of this layout
655            * @param locale the locale of the language
656            * @param defaultLocale the default locale
657            */
658            @Override
659            public void setName(java.lang.String name, java.util.Locale locale,
660                    java.util.Locale defaultLocale) {
661                    _layout.setName(name, locale, defaultLocale);
662            }
663    
664            @Override
665            public void setNameCurrentLanguageId(java.lang.String languageId) {
666                    _layout.setNameCurrentLanguageId(languageId);
667            }
668    
669            /**
670            * Sets the localized names of this layout from the map of locales and localized names.
671            *
672            * @param nameMap the locales and localized names of this layout
673            */
674            @Override
675            public void setNameMap(
676                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
677                    _layout.setNameMap(nameMap);
678            }
679    
680            /**
681            * Sets the localized names of this layout from the map of locales and localized names, and sets the default locale.
682            *
683            * @param nameMap the locales and localized names of this layout
684            * @param defaultLocale the default locale
685            */
686            @Override
687            public void setNameMap(
688                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
689                    java.util.Locale defaultLocale) {
690                    _layout.setNameMap(nameMap, defaultLocale);
691            }
692    
693            /**
694            * Returns the title of this layout.
695            *
696            * @return the title of this layout
697            */
698            @Override
699            public java.lang.String getTitle() {
700                    return _layout.getTitle();
701            }
702    
703            /**
704            * Returns the localized title of this layout in the language. Uses the default language if no localization exists for the requested language.
705            *
706            * @param locale the locale of the language
707            * @return the localized title of this layout
708            */
709            @Override
710            public java.lang.String getTitle(java.util.Locale locale) {
711                    return _layout.getTitle(locale);
712            }
713    
714            /**
715            * Returns the localized title of this layout in the language, optionally using the default language if no localization exists for the requested language.
716            *
717            * @param locale the local of the language
718            * @param useDefault whether to use the default language if no localization exists for the requested language
719            * @return the localized title of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
720            */
721            @Override
722            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
723                    return _layout.getTitle(locale, useDefault);
724            }
725    
726            /**
727            * Returns the localized title of this layout in the language. Uses the default language if no localization exists for the requested language.
728            *
729            * @param languageId the ID of the language
730            * @return the localized title of this layout
731            */
732            @Override
733            public java.lang.String getTitle(java.lang.String languageId) {
734                    return _layout.getTitle(languageId);
735            }
736    
737            /**
738            * Returns the localized title of this layout in the language, optionally using the default language if no localization exists for the requested language.
739            *
740            * @param languageId the ID of the language
741            * @param useDefault whether to use the default language if no localization exists for the requested language
742            * @return the localized title of this layout
743            */
744            @Override
745            public java.lang.String getTitle(java.lang.String languageId,
746                    boolean useDefault) {
747                    return _layout.getTitle(languageId, useDefault);
748            }
749    
750            @Override
751            public java.lang.String getTitleCurrentLanguageId() {
752                    return _layout.getTitleCurrentLanguageId();
753            }
754    
755            @Override
756            public java.lang.String getTitleCurrentValue() {
757                    return _layout.getTitleCurrentValue();
758            }
759    
760            /**
761            * Returns a map of the locales and localized titles of this layout.
762            *
763            * @return the locales and localized titles of this layout
764            */
765            @Override
766            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
767                    return _layout.getTitleMap();
768            }
769    
770            /**
771            * Sets the title of this layout.
772            *
773            * @param title the title of this layout
774            */
775            @Override
776            public void setTitle(java.lang.String title) {
777                    _layout.setTitle(title);
778            }
779    
780            /**
781            * Sets the localized title of this layout in the language.
782            *
783            * @param title the localized title of this layout
784            * @param locale the locale of the language
785            */
786            @Override
787            public void setTitle(java.lang.String title, java.util.Locale locale) {
788                    _layout.setTitle(title, locale);
789            }
790    
791            /**
792            * Sets the localized title of this layout in the language, and sets the default locale.
793            *
794            * @param title the localized title of this layout
795            * @param locale the locale of the language
796            * @param defaultLocale the default locale
797            */
798            @Override
799            public void setTitle(java.lang.String title, java.util.Locale locale,
800                    java.util.Locale defaultLocale) {
801                    _layout.setTitle(title, locale, defaultLocale);
802            }
803    
804            @Override
805            public void setTitleCurrentLanguageId(java.lang.String languageId) {
806                    _layout.setTitleCurrentLanguageId(languageId);
807            }
808    
809            /**
810            * Sets the localized titles of this layout from the map of locales and localized titles.
811            *
812            * @param titleMap the locales and localized titles of this layout
813            */
814            @Override
815            public void setTitleMap(
816                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
817                    _layout.setTitleMap(titleMap);
818            }
819    
820            /**
821            * Sets the localized titles of this layout from the map of locales and localized titles, and sets the default locale.
822            *
823            * @param titleMap the locales and localized titles of this layout
824            * @param defaultLocale the default locale
825            */
826            @Override
827            public void setTitleMap(
828                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
829                    java.util.Locale defaultLocale) {
830                    _layout.setTitleMap(titleMap, defaultLocale);
831            }
832    
833            /**
834            * Returns the description of this layout.
835            *
836            * @return the description of this layout
837            */
838            @Override
839            public java.lang.String getDescription() {
840                    return _layout.getDescription();
841            }
842    
843            /**
844            * Returns the localized description of this layout in the language. Uses the default language if no localization exists for the requested language.
845            *
846            * @param locale the locale of the language
847            * @return the localized description of this layout
848            */
849            @Override
850            public java.lang.String getDescription(java.util.Locale locale) {
851                    return _layout.getDescription(locale);
852            }
853    
854            /**
855            * Returns the localized description of this layout in the language, optionally using the default language if no localization exists for the requested language.
856            *
857            * @param locale the local of the language
858            * @param useDefault whether to use the default language if no localization exists for the requested language
859            * @return the localized description of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
860            */
861            @Override
862            public java.lang.String getDescription(java.util.Locale locale,
863                    boolean useDefault) {
864                    return _layout.getDescription(locale, useDefault);
865            }
866    
867            /**
868            * Returns the localized description of this layout in the language. Uses the default language if no localization exists for the requested language.
869            *
870            * @param languageId the ID of the language
871            * @return the localized description of this layout
872            */
873            @Override
874            public java.lang.String getDescription(java.lang.String languageId) {
875                    return _layout.getDescription(languageId);
876            }
877    
878            /**
879            * Returns the localized description of this layout in the language, optionally using the default language if no localization exists for the requested language.
880            *
881            * @param languageId the ID of the language
882            * @param useDefault whether to use the default language if no localization exists for the requested language
883            * @return the localized description of this layout
884            */
885            @Override
886            public java.lang.String getDescription(java.lang.String languageId,
887                    boolean useDefault) {
888                    return _layout.getDescription(languageId, useDefault);
889            }
890    
891            @Override
892            public java.lang.String getDescriptionCurrentLanguageId() {
893                    return _layout.getDescriptionCurrentLanguageId();
894            }
895    
896            @Override
897            public java.lang.String getDescriptionCurrentValue() {
898                    return _layout.getDescriptionCurrentValue();
899            }
900    
901            /**
902            * Returns a map of the locales and localized descriptions of this layout.
903            *
904            * @return the locales and localized descriptions of this layout
905            */
906            @Override
907            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
908                    return _layout.getDescriptionMap();
909            }
910    
911            /**
912            * Sets the description of this layout.
913            *
914            * @param description the description of this layout
915            */
916            @Override
917            public void setDescription(java.lang.String description) {
918                    _layout.setDescription(description);
919            }
920    
921            /**
922            * Sets the localized description of this layout in the language.
923            *
924            * @param description the localized description of this layout
925            * @param locale the locale of the language
926            */
927            @Override
928            public void setDescription(java.lang.String description,
929                    java.util.Locale locale) {
930                    _layout.setDescription(description, locale);
931            }
932    
933            /**
934            * Sets the localized description of this layout in the language, and sets the default locale.
935            *
936            * @param description the localized description of this layout
937            * @param locale the locale of the language
938            * @param defaultLocale the default locale
939            */
940            @Override
941            public void setDescription(java.lang.String description,
942                    java.util.Locale locale, java.util.Locale defaultLocale) {
943                    _layout.setDescription(description, locale, defaultLocale);
944            }
945    
946            @Override
947            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
948                    _layout.setDescriptionCurrentLanguageId(languageId);
949            }
950    
951            /**
952            * Sets the localized descriptions of this layout from the map of locales and localized descriptions.
953            *
954            * @param descriptionMap the locales and localized descriptions of this layout
955            */
956            @Override
957            public void setDescriptionMap(
958                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
959                    _layout.setDescriptionMap(descriptionMap);
960            }
961    
962            /**
963            * Sets the localized descriptions of this layout from the map of locales and localized descriptions, and sets the default locale.
964            *
965            * @param descriptionMap the locales and localized descriptions of this layout
966            * @param defaultLocale the default locale
967            */
968            @Override
969            public void setDescriptionMap(
970                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
971                    java.util.Locale defaultLocale) {
972                    _layout.setDescriptionMap(descriptionMap, defaultLocale);
973            }
974    
975            /**
976            * Returns the keywords of this layout.
977            *
978            * @return the keywords of this layout
979            */
980            @Override
981            public java.lang.String getKeywords() {
982                    return _layout.getKeywords();
983            }
984    
985            /**
986            * Returns the localized keywords of this layout in the language. Uses the default language if no localization exists for the requested language.
987            *
988            * @param locale the locale of the language
989            * @return the localized keywords of this layout
990            */
991            @Override
992            public java.lang.String getKeywords(java.util.Locale locale) {
993                    return _layout.getKeywords(locale);
994            }
995    
996            /**
997            * Returns the localized keywords of this layout in the language, optionally using the default language if no localization exists for the requested language.
998            *
999            * @param locale the local of the language
1000            * @param useDefault whether to use the default language if no localization exists for the requested language
1001            * @return the localized keywords of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
1002            */
1003            @Override
1004            public java.lang.String getKeywords(java.util.Locale locale,
1005                    boolean useDefault) {
1006                    return _layout.getKeywords(locale, useDefault);
1007            }
1008    
1009            /**
1010            * Returns the localized keywords of this layout in the language. Uses the default language if no localization exists for the requested language.
1011            *
1012            * @param languageId the ID of the language
1013            * @return the localized keywords of this layout
1014            */
1015            @Override
1016            public java.lang.String getKeywords(java.lang.String languageId) {
1017                    return _layout.getKeywords(languageId);
1018            }
1019    
1020            /**
1021            * Returns the localized keywords of this layout in the language, optionally using the default language if no localization exists for the requested language.
1022            *
1023            * @param languageId the ID of the language
1024            * @param useDefault whether to use the default language if no localization exists for the requested language
1025            * @return the localized keywords of this layout
1026            */
1027            @Override
1028            public java.lang.String getKeywords(java.lang.String languageId,
1029                    boolean useDefault) {
1030                    return _layout.getKeywords(languageId, useDefault);
1031            }
1032    
1033            @Override
1034            public java.lang.String getKeywordsCurrentLanguageId() {
1035                    return _layout.getKeywordsCurrentLanguageId();
1036            }
1037    
1038            @Override
1039            public java.lang.String getKeywordsCurrentValue() {
1040                    return _layout.getKeywordsCurrentValue();
1041            }
1042    
1043            /**
1044            * Returns a map of the locales and localized keywordses of this layout.
1045            *
1046            * @return the locales and localized keywordses of this layout
1047            */
1048            @Override
1049            public java.util.Map<java.util.Locale, java.lang.String> getKeywordsMap() {
1050                    return _layout.getKeywordsMap();
1051            }
1052    
1053            /**
1054            * Sets the keywords of this layout.
1055            *
1056            * @param keywords the keywords of this layout
1057            */
1058            @Override
1059            public void setKeywords(java.lang.String keywords) {
1060                    _layout.setKeywords(keywords);
1061            }
1062    
1063            /**
1064            * Sets the localized keywords of this layout in the language.
1065            *
1066            * @param keywords the localized keywords of this layout
1067            * @param locale the locale of the language
1068            */
1069            @Override
1070            public void setKeywords(java.lang.String keywords, java.util.Locale locale) {
1071                    _layout.setKeywords(keywords, locale);
1072            }
1073    
1074            /**
1075            * Sets the localized keywords of this layout in the language, and sets the default locale.
1076            *
1077            * @param keywords the localized keywords of this layout
1078            * @param locale the locale of the language
1079            * @param defaultLocale the default locale
1080            */
1081            @Override
1082            public void setKeywords(java.lang.String keywords, java.util.Locale locale,
1083                    java.util.Locale defaultLocale) {
1084                    _layout.setKeywords(keywords, locale, defaultLocale);
1085            }
1086    
1087            @Override
1088            public void setKeywordsCurrentLanguageId(java.lang.String languageId) {
1089                    _layout.setKeywordsCurrentLanguageId(languageId);
1090            }
1091    
1092            /**
1093            * Sets the localized keywordses of this layout from the map of locales and localized keywordses.
1094            *
1095            * @param keywordsMap the locales and localized keywordses of this layout
1096            */
1097            @Override
1098            public void setKeywordsMap(
1099                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap) {
1100                    _layout.setKeywordsMap(keywordsMap);
1101            }
1102    
1103            /**
1104            * Sets the localized keywordses of this layout from the map of locales and localized keywordses, and sets the default locale.
1105            *
1106            * @param keywordsMap the locales and localized keywordses of this layout
1107            * @param defaultLocale the default locale
1108            */
1109            @Override
1110            public void setKeywordsMap(
1111                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1112                    java.util.Locale defaultLocale) {
1113                    _layout.setKeywordsMap(keywordsMap, defaultLocale);
1114            }
1115    
1116            /**
1117            * Returns the robots of this layout.
1118            *
1119            * @return the robots of this layout
1120            */
1121            @Override
1122            public java.lang.String getRobots() {
1123                    return _layout.getRobots();
1124            }
1125    
1126            /**
1127            * Returns the localized robots of this layout in the language. Uses the default language if no localization exists for the requested language.
1128            *
1129            * @param locale the locale of the language
1130            * @return the localized robots of this layout
1131            */
1132            @Override
1133            public java.lang.String getRobots(java.util.Locale locale) {
1134                    return _layout.getRobots(locale);
1135            }
1136    
1137            /**
1138            * Returns the localized robots of this layout in the language, optionally using the default language if no localization exists for the requested language.
1139            *
1140            * @param locale the local of the language
1141            * @param useDefault whether to use the default language if no localization exists for the requested language
1142            * @return the localized robots of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
1143            */
1144            @Override
1145            public java.lang.String getRobots(java.util.Locale locale,
1146                    boolean useDefault) {
1147                    return _layout.getRobots(locale, useDefault);
1148            }
1149    
1150            /**
1151            * Returns the localized robots of this layout in the language. Uses the default language if no localization exists for the requested language.
1152            *
1153            * @param languageId the ID of the language
1154            * @return the localized robots of this layout
1155            */
1156            @Override
1157            public java.lang.String getRobots(java.lang.String languageId) {
1158                    return _layout.getRobots(languageId);
1159            }
1160    
1161            /**
1162            * Returns the localized robots of this layout in the language, optionally using the default language if no localization exists for the requested language.
1163            *
1164            * @param languageId the ID of the language
1165            * @param useDefault whether to use the default language if no localization exists for the requested language
1166            * @return the localized robots of this layout
1167            */
1168            @Override
1169            public java.lang.String getRobots(java.lang.String languageId,
1170                    boolean useDefault) {
1171                    return _layout.getRobots(languageId, useDefault);
1172            }
1173    
1174            @Override
1175            public java.lang.String getRobotsCurrentLanguageId() {
1176                    return _layout.getRobotsCurrentLanguageId();
1177            }
1178    
1179            @Override
1180            public java.lang.String getRobotsCurrentValue() {
1181                    return _layout.getRobotsCurrentValue();
1182            }
1183    
1184            /**
1185            * Returns a map of the locales and localized robotses of this layout.
1186            *
1187            * @return the locales and localized robotses of this layout
1188            */
1189            @Override
1190            public java.util.Map<java.util.Locale, java.lang.String> getRobotsMap() {
1191                    return _layout.getRobotsMap();
1192            }
1193    
1194            /**
1195            * Sets the robots of this layout.
1196            *
1197            * @param robots the robots of this layout
1198            */
1199            @Override
1200            public void setRobots(java.lang.String robots) {
1201                    _layout.setRobots(robots);
1202            }
1203    
1204            /**
1205            * Sets the localized robots of this layout in the language.
1206            *
1207            * @param robots the localized robots of this layout
1208            * @param locale the locale of the language
1209            */
1210            @Override
1211            public void setRobots(java.lang.String robots, java.util.Locale locale) {
1212                    _layout.setRobots(robots, locale);
1213            }
1214    
1215            /**
1216            * Sets the localized robots of this layout in the language, and sets the default locale.
1217            *
1218            * @param robots the localized robots of this layout
1219            * @param locale the locale of the language
1220            * @param defaultLocale the default locale
1221            */
1222            @Override
1223            public void setRobots(java.lang.String robots, java.util.Locale locale,
1224                    java.util.Locale defaultLocale) {
1225                    _layout.setRobots(robots, locale, defaultLocale);
1226            }
1227    
1228            @Override
1229            public void setRobotsCurrentLanguageId(java.lang.String languageId) {
1230                    _layout.setRobotsCurrentLanguageId(languageId);
1231            }
1232    
1233            /**
1234            * Sets the localized robotses of this layout from the map of locales and localized robotses.
1235            *
1236            * @param robotsMap the locales and localized robotses of this layout
1237            */
1238            @Override
1239            public void setRobotsMap(
1240                    java.util.Map<java.util.Locale, java.lang.String> robotsMap) {
1241                    _layout.setRobotsMap(robotsMap);
1242            }
1243    
1244            /**
1245            * Sets the localized robotses of this layout from the map of locales and localized robotses, and sets the default locale.
1246            *
1247            * @param robotsMap the locales and localized robotses of this layout
1248            * @param defaultLocale the default locale
1249            */
1250            @Override
1251            public void setRobotsMap(
1252                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1253                    java.util.Locale defaultLocale) {
1254                    _layout.setRobotsMap(robotsMap, defaultLocale);
1255            }
1256    
1257            /**
1258            * Returns the type of this layout.
1259            *
1260            * @return the type of this layout
1261            */
1262            @Override
1263            public java.lang.String getType() {
1264                    return _layout.getType();
1265            }
1266    
1267            /**
1268            * Sets the type of this layout.
1269            *
1270            * @param type the type of this layout
1271            */
1272            @Override
1273            public void setType(java.lang.String type) {
1274                    _layout.setType(type);
1275            }
1276    
1277            /**
1278            * Returns the type settings of this layout.
1279            *
1280            * @return the type settings of this layout
1281            */
1282            @Override
1283            public java.lang.String getTypeSettings() {
1284                    return _layout.getTypeSettings();
1285            }
1286    
1287            /**
1288            * Sets the type settings of this layout.
1289            *
1290            * @param typeSettings the type settings of this layout
1291            */
1292            @Override
1293            public void setTypeSettings(java.lang.String typeSettings) {
1294                    _layout.setTypeSettings(typeSettings);
1295            }
1296    
1297            /**
1298            * Returns the hidden of this layout.
1299            *
1300            * @return the hidden of this layout
1301            */
1302            @Override
1303            public boolean getHidden() {
1304                    return _layout.getHidden();
1305            }
1306    
1307            /**
1308            * Returns <code>true</code> if this layout is hidden.
1309            *
1310            * @return <code>true</code> if this layout is hidden; <code>false</code> otherwise
1311            */
1312            @Override
1313            public boolean isHidden() {
1314                    return _layout.isHidden();
1315            }
1316    
1317            /**
1318            * Sets whether this layout is hidden.
1319            *
1320            * @param hidden the hidden of this layout
1321            */
1322            @Override
1323            public void setHidden(boolean hidden) {
1324                    _layout.setHidden(hidden);
1325            }
1326    
1327            /**
1328            * Returns the friendly u r l of this layout.
1329            *
1330            * @return the friendly u r l of this layout
1331            */
1332            @Override
1333            public java.lang.String getFriendlyURL() {
1334                    return _layout.getFriendlyURL();
1335            }
1336    
1337            /**
1338            * Sets the friendly u r l of this layout.
1339            *
1340            * @param friendlyURL the friendly u r l of this layout
1341            */
1342            @Override
1343            public void setFriendlyURL(java.lang.String friendlyURL) {
1344                    _layout.setFriendlyURL(friendlyURL);
1345            }
1346    
1347            /**
1348            * Returns the icon image of this layout.
1349            *
1350            * @return the icon image of this layout
1351            */
1352            @Override
1353            public boolean getIconImage() {
1354                    return _layout.getIconImage();
1355            }
1356    
1357            /**
1358            * Returns <code>true</code> if this layout is icon image.
1359            *
1360            * @return <code>true</code> if this layout is icon image; <code>false</code> otherwise
1361            */
1362            @Override
1363            public boolean isIconImage() {
1364                    return _layout.isIconImage();
1365            }
1366    
1367            /**
1368            * Sets whether this layout is icon image.
1369            *
1370            * @param iconImage the icon image of this layout
1371            */
1372            @Override
1373            public void setIconImage(boolean iconImage) {
1374                    _layout.setIconImage(iconImage);
1375            }
1376    
1377            /**
1378            * Returns the icon image ID of this layout.
1379            *
1380            * @return the icon image ID of this layout
1381            */
1382            @Override
1383            public long getIconImageId() {
1384                    return _layout.getIconImageId();
1385            }
1386    
1387            /**
1388            * Sets the icon image ID of this layout.
1389            *
1390            * @param iconImageId the icon image ID of this layout
1391            */
1392            @Override
1393            public void setIconImageId(long iconImageId) {
1394                    _layout.setIconImageId(iconImageId);
1395            }
1396    
1397            /**
1398            * Returns the theme ID of this layout.
1399            *
1400            * @return the theme ID of this layout
1401            */
1402            @Override
1403            public java.lang.String getThemeId() {
1404                    return _layout.getThemeId();
1405            }
1406    
1407            /**
1408            * Sets the theme ID of this layout.
1409            *
1410            * @param themeId the theme ID of this layout
1411            */
1412            @Override
1413            public void setThemeId(java.lang.String themeId) {
1414                    _layout.setThemeId(themeId);
1415            }
1416    
1417            /**
1418            * Returns the color scheme ID of this layout.
1419            *
1420            * @return the color scheme ID of this layout
1421            */
1422            @Override
1423            public java.lang.String getColorSchemeId() {
1424                    return _layout.getColorSchemeId();
1425            }
1426    
1427            /**
1428            * Sets the color scheme ID of this layout.
1429            *
1430            * @param colorSchemeId the color scheme ID of this layout
1431            */
1432            @Override
1433            public void setColorSchemeId(java.lang.String colorSchemeId) {
1434                    _layout.setColorSchemeId(colorSchemeId);
1435            }
1436    
1437            /**
1438            * Returns the wap theme ID of this layout.
1439            *
1440            * @return the wap theme ID of this layout
1441            */
1442            @Override
1443            public java.lang.String getWapThemeId() {
1444                    return _layout.getWapThemeId();
1445            }
1446    
1447            /**
1448            * Sets the wap theme ID of this layout.
1449            *
1450            * @param wapThemeId the wap theme ID of this layout
1451            */
1452            @Override
1453            public void setWapThemeId(java.lang.String wapThemeId) {
1454                    _layout.setWapThemeId(wapThemeId);
1455            }
1456    
1457            /**
1458            * Returns the wap color scheme ID of this layout.
1459            *
1460            * @return the wap color scheme ID of this layout
1461            */
1462            @Override
1463            public java.lang.String getWapColorSchemeId() {
1464                    return _layout.getWapColorSchemeId();
1465            }
1466    
1467            /**
1468            * Sets the wap color scheme ID of this layout.
1469            *
1470            * @param wapColorSchemeId the wap color scheme ID of this layout
1471            */
1472            @Override
1473            public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
1474                    _layout.setWapColorSchemeId(wapColorSchemeId);
1475            }
1476    
1477            /**
1478            * Returns the css of this layout.
1479            *
1480            * @return the css of this layout
1481            */
1482            @Override
1483            public java.lang.String getCss() {
1484                    return _layout.getCss();
1485            }
1486    
1487            /**
1488            * Sets the css of this layout.
1489            *
1490            * @param css the css of this layout
1491            */
1492            @Override
1493            public void setCss(java.lang.String css) {
1494                    _layout.setCss(css);
1495            }
1496    
1497            /**
1498            * Returns the priority of this layout.
1499            *
1500            * @return the priority of this layout
1501            */
1502            @Override
1503            public int getPriority() {
1504                    return _layout.getPriority();
1505            }
1506    
1507            /**
1508            * Sets the priority of this layout.
1509            *
1510            * @param priority the priority of this layout
1511            */
1512            @Override
1513            public void setPriority(int priority) {
1514                    _layout.setPriority(priority);
1515            }
1516    
1517            /**
1518            * Returns the layout prototype uuid of this layout.
1519            *
1520            * @return the layout prototype uuid of this layout
1521            */
1522            @Override
1523            public java.lang.String getLayoutPrototypeUuid() {
1524                    return _layout.getLayoutPrototypeUuid();
1525            }
1526    
1527            /**
1528            * Sets the layout prototype uuid of this layout.
1529            *
1530            * @param layoutPrototypeUuid the layout prototype uuid of this layout
1531            */
1532            @Override
1533            public void setLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid) {
1534                    _layout.setLayoutPrototypeUuid(layoutPrototypeUuid);
1535            }
1536    
1537            /**
1538            * Returns the layout prototype link enabled of this layout.
1539            *
1540            * @return the layout prototype link enabled of this layout
1541            */
1542            @Override
1543            public boolean getLayoutPrototypeLinkEnabled() {
1544                    return _layout.getLayoutPrototypeLinkEnabled();
1545            }
1546    
1547            /**
1548            * Returns <code>true</code> if this layout is layout prototype link enabled.
1549            *
1550            * @return <code>true</code> if this layout is layout prototype link enabled; <code>false</code> otherwise
1551            */
1552            @Override
1553            public boolean isLayoutPrototypeLinkEnabled() {
1554                    return _layout.isLayoutPrototypeLinkEnabled();
1555            }
1556    
1557            /**
1558            * Sets whether this layout is layout prototype link enabled.
1559            *
1560            * @param layoutPrototypeLinkEnabled the layout prototype link enabled of this layout
1561            */
1562            @Override
1563            public void setLayoutPrototypeLinkEnabled(
1564                    boolean layoutPrototypeLinkEnabled) {
1565                    _layout.setLayoutPrototypeLinkEnabled(layoutPrototypeLinkEnabled);
1566            }
1567    
1568            /**
1569            * Returns the source prototype layout uuid of this layout.
1570            *
1571            * @return the source prototype layout uuid of this layout
1572            */
1573            @Override
1574            public java.lang.String getSourcePrototypeLayoutUuid() {
1575                    return _layout.getSourcePrototypeLayoutUuid();
1576            }
1577    
1578            /**
1579            * Sets the source prototype layout uuid of this layout.
1580            *
1581            * @param sourcePrototypeLayoutUuid the source prototype layout uuid of this layout
1582            */
1583            @Override
1584            public void setSourcePrototypeLayoutUuid(
1585                    java.lang.String sourcePrototypeLayoutUuid) {
1586                    _layout.setSourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid);
1587            }
1588    
1589            @Override
1590            public boolean isNew() {
1591                    return _layout.isNew();
1592            }
1593    
1594            @Override
1595            public void setNew(boolean n) {
1596                    _layout.setNew(n);
1597            }
1598    
1599            @Override
1600            public boolean isCachedModel() {
1601                    return _layout.isCachedModel();
1602            }
1603    
1604            @Override
1605            public void setCachedModel(boolean cachedModel) {
1606                    _layout.setCachedModel(cachedModel);
1607            }
1608    
1609            @Override
1610            public boolean isEscapedModel() {
1611                    return _layout.isEscapedModel();
1612            }
1613    
1614            @Override
1615            public java.io.Serializable getPrimaryKeyObj() {
1616                    return _layout.getPrimaryKeyObj();
1617            }
1618    
1619            @Override
1620            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1621                    _layout.setPrimaryKeyObj(primaryKeyObj);
1622            }
1623    
1624            @Override
1625            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1626                    return _layout.getExpandoBridge();
1627            }
1628    
1629            @Override
1630            public void setExpandoBridgeAttributes(
1631                    com.liferay.portal.model.BaseModel<?> baseModel) {
1632                    _layout.setExpandoBridgeAttributes(baseModel);
1633            }
1634    
1635            @Override
1636            public void setExpandoBridgeAttributes(
1637                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1638                    _layout.setExpandoBridgeAttributes(expandoBridge);
1639            }
1640    
1641            @Override
1642            public void setExpandoBridgeAttributes(
1643                    com.liferay.portal.service.ServiceContext serviceContext) {
1644                    _layout.setExpandoBridgeAttributes(serviceContext);
1645            }
1646    
1647            @Override
1648            public java.lang.String[] getAvailableLanguageIds() {
1649                    return _layout.getAvailableLanguageIds();
1650            }
1651    
1652            @Override
1653            public java.lang.String getDefaultLanguageId() {
1654                    return _layout.getDefaultLanguageId();
1655            }
1656    
1657            @Override
1658            public void prepareLocalizedFieldsForImport()
1659                    throws com.liferay.portal.LocaleException {
1660                    _layout.prepareLocalizedFieldsForImport();
1661            }
1662    
1663            @Override
1664            public void prepareLocalizedFieldsForImport(
1665                    java.util.Locale defaultImportLocale)
1666                    throws com.liferay.portal.LocaleException {
1667                    _layout.prepareLocalizedFieldsForImport(defaultImportLocale);
1668            }
1669    
1670            @Override
1671            public java.lang.Object clone() {
1672                    return new LayoutWrapper((Layout)_layout.clone());
1673            }
1674    
1675            @Override
1676            public int compareTo(com.liferay.portal.model.Layout layout) {
1677                    return _layout.compareTo(layout);
1678            }
1679    
1680            @Override
1681            public int hashCode() {
1682                    return _layout.hashCode();
1683            }
1684    
1685            @Override
1686            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Layout> toCacheModel() {
1687                    return _layout.toCacheModel();
1688            }
1689    
1690            @Override
1691            public com.liferay.portal.model.Layout toEscapedModel() {
1692                    return new LayoutWrapper(_layout.toEscapedModel());
1693            }
1694    
1695            @Override
1696            public com.liferay.portal.model.Layout toUnescapedModel() {
1697                    return new LayoutWrapper(_layout.toUnescapedModel());
1698            }
1699    
1700            @Override
1701            public java.lang.String toString() {
1702                    return _layout.toString();
1703            }
1704    
1705            @Override
1706            public java.lang.String toXmlString() {
1707                    return _layout.toXmlString();
1708            }
1709    
1710            @Override
1711            public void persist()
1712                    throws com.liferay.portal.kernel.exception.SystemException {
1713                    _layout.persist();
1714            }
1715    
1716            @Override
1717            public java.util.List<com.liferay.portal.model.Layout> getAllChildren()
1718                    throws com.liferay.portal.kernel.exception.SystemException {
1719                    return _layout.getAllChildren();
1720            }
1721    
1722            @Override
1723            public long getAncestorLayoutId()
1724                    throws com.liferay.portal.kernel.exception.PortalException,
1725                            com.liferay.portal.kernel.exception.SystemException {
1726                    return _layout.getAncestorLayoutId();
1727            }
1728    
1729            @Override
1730            public long getAncestorPlid()
1731                    throws com.liferay.portal.kernel.exception.PortalException,
1732                            com.liferay.portal.kernel.exception.SystemException {
1733                    return _layout.getAncestorPlid();
1734            }
1735    
1736            @Override
1737            public java.util.List<com.liferay.portal.model.Layout> getAncestors()
1738                    throws com.liferay.portal.kernel.exception.PortalException,
1739                            com.liferay.portal.kernel.exception.SystemException {
1740                    return _layout.getAncestors();
1741            }
1742    
1743            @Override
1744            public java.util.List<com.liferay.portal.model.Layout> getChildren()
1745                    throws com.liferay.portal.kernel.exception.SystemException {
1746                    return _layout.getChildren();
1747            }
1748    
1749            @Override
1750            public java.util.List<com.liferay.portal.model.Layout> getChildren(
1751                    com.liferay.portal.security.permission.PermissionChecker permissionChecker)
1752                    throws com.liferay.portal.kernel.exception.PortalException,
1753                            com.liferay.portal.kernel.exception.SystemException {
1754                    return _layout.getChildren(permissionChecker);
1755            }
1756    
1757            @Override
1758            public com.liferay.portal.model.ColorScheme getColorScheme()
1759                    throws com.liferay.portal.kernel.exception.PortalException,
1760                            com.liferay.portal.kernel.exception.SystemException {
1761                    return _layout.getColorScheme();
1762            }
1763    
1764            @Override
1765            public java.lang.String getCssText()
1766                    throws com.liferay.portal.kernel.exception.PortalException,
1767                            com.liferay.portal.kernel.exception.SystemException {
1768                    return _layout.getCssText();
1769            }
1770    
1771            @Override
1772            public java.lang.String getFriendlyURL(java.util.Locale locale) {
1773                    return _layout.getFriendlyURL(locale);
1774            }
1775    
1776            @Override
1777            public java.util.Map<java.util.Locale, java.lang.String> getFriendlyURLMap()
1778                    throws com.liferay.portal.kernel.exception.SystemException {
1779                    return _layout.getFriendlyURLMap();
1780            }
1781    
1782            @Override
1783            public java.lang.String getFriendlyURLsXML()
1784                    throws com.liferay.portal.kernel.exception.SystemException {
1785                    return _layout.getFriendlyURLsXML();
1786            }
1787    
1788            @Override
1789            public com.liferay.portal.model.Group getGroup()
1790                    throws com.liferay.portal.kernel.exception.PortalException,
1791                            com.liferay.portal.kernel.exception.SystemException {
1792                    return _layout.getGroup();
1793            }
1794    
1795            @Override
1796            public java.lang.String getHTMLTitle(java.util.Locale locale) {
1797                    return _layout.getHTMLTitle(locale);
1798            }
1799    
1800            @Override
1801            public java.lang.String getHTMLTitle(java.lang.String localeLanguageId) {
1802                    return _layout.getHTMLTitle(localeLanguageId);
1803            }
1804    
1805            @Override
1806            public com.liferay.portal.model.LayoutSet getLayoutSet()
1807                    throws com.liferay.portal.kernel.exception.PortalException,
1808                            com.liferay.portal.kernel.exception.SystemException {
1809                    return _layout.getLayoutSet();
1810            }
1811    
1812            @Override
1813            public com.liferay.portal.model.LayoutType getLayoutType() {
1814                    return _layout.getLayoutType();
1815            }
1816    
1817            @Override
1818            public long getParentPlid()
1819                    throws com.liferay.portal.kernel.exception.PortalException,
1820                            com.liferay.portal.kernel.exception.SystemException {
1821                    return _layout.getParentPlid();
1822            }
1823    
1824            @Override
1825            public java.lang.String getRegularURL(
1826                    javax.servlet.http.HttpServletRequest request)
1827                    throws com.liferay.portal.kernel.exception.PortalException,
1828                            com.liferay.portal.kernel.exception.SystemException {
1829                    return _layout.getRegularURL(request);
1830            }
1831    
1832            @Override
1833            public java.lang.String getResetLayoutURL(
1834                    javax.servlet.http.HttpServletRequest request)
1835                    throws com.liferay.portal.kernel.exception.PortalException,
1836                            com.liferay.portal.kernel.exception.SystemException {
1837                    return _layout.getResetLayoutURL(request);
1838            }
1839    
1840            @Override
1841            public java.lang.String getResetMaxStateURL(
1842                    javax.servlet.http.HttpServletRequest request)
1843                    throws com.liferay.portal.kernel.exception.PortalException,
1844                            com.liferay.portal.kernel.exception.SystemException {
1845                    return _layout.getResetMaxStateURL(request);
1846            }
1847    
1848            @Override
1849            public com.liferay.portal.model.Group getScopeGroup()
1850                    throws com.liferay.portal.kernel.exception.PortalException,
1851                            com.liferay.portal.kernel.exception.SystemException {
1852                    return _layout.getScopeGroup();
1853            }
1854    
1855            @Override
1856            public java.lang.String getTarget() {
1857                    return _layout.getTarget();
1858            }
1859    
1860            @Override
1861            public com.liferay.portal.model.Theme getTheme()
1862                    throws com.liferay.portal.kernel.exception.PortalException,
1863                            com.liferay.portal.kernel.exception.SystemException {
1864                    return _layout.getTheme();
1865            }
1866    
1867            @Override
1868            public java.lang.String getThemeSetting(java.lang.String key,
1869                    java.lang.String device) {
1870                    return _layout.getThemeSetting(key, device);
1871            }
1872    
1873            @Override
1874            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
1875                    return _layout.getTypeSettingsProperties();
1876            }
1877    
1878            @Override
1879            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
1880                    return _layout.getTypeSettingsProperty(key);
1881            }
1882    
1883            @Override
1884            public java.lang.String getTypeSettingsProperty(java.lang.String key,
1885                    java.lang.String defaultValue) {
1886                    return _layout.getTypeSettingsProperty(key, defaultValue);
1887            }
1888    
1889            @Override
1890            public com.liferay.portal.model.ColorScheme getWapColorScheme()
1891                    throws com.liferay.portal.kernel.exception.PortalException,
1892                            com.liferay.portal.kernel.exception.SystemException {
1893                    return _layout.getWapColorScheme();
1894            }
1895    
1896            @Override
1897            public com.liferay.portal.model.Theme getWapTheme()
1898                    throws com.liferay.portal.kernel.exception.PortalException,
1899                            com.liferay.portal.kernel.exception.SystemException {
1900                    return _layout.getWapTheme();
1901            }
1902    
1903            @Override
1904            public boolean hasAncestor(long layoutId)
1905                    throws com.liferay.portal.kernel.exception.PortalException,
1906                            com.liferay.portal.kernel.exception.SystemException {
1907                    return _layout.hasAncestor(layoutId);
1908            }
1909    
1910            @Override
1911            public boolean hasChildren()
1912                    throws com.liferay.portal.kernel.exception.SystemException {
1913                    return _layout.hasChildren();
1914            }
1915    
1916            @Override
1917            public boolean hasScopeGroup()
1918                    throws com.liferay.portal.kernel.exception.PortalException,
1919                            com.liferay.portal.kernel.exception.SystemException {
1920                    return _layout.hasScopeGroup();
1921            }
1922    
1923            @Override
1924            public boolean isChildSelected(boolean selectable,
1925                    com.liferay.portal.model.Layout layout)
1926                    throws com.liferay.portal.kernel.exception.PortalException,
1927                            com.liferay.portal.kernel.exception.SystemException {
1928                    return _layout.isChildSelected(selectable, layout);
1929            }
1930    
1931            @Override
1932            public boolean isContentDisplayPage() {
1933                    return _layout.isContentDisplayPage();
1934            }
1935    
1936            @Override
1937            public boolean isFirstChild() {
1938                    return _layout.isFirstChild();
1939            }
1940    
1941            @Override
1942            public boolean isFirstParent() {
1943                    return _layout.isFirstParent();
1944            }
1945    
1946            @Override
1947            public boolean isInheritLookAndFeel() {
1948                    return _layout.isInheritLookAndFeel();
1949            }
1950    
1951            @Override
1952            public boolean isInheritWapLookAndFeel() {
1953                    return _layout.isInheritWapLookAndFeel();
1954            }
1955    
1956            @Override
1957            public boolean isLayoutPrototypeLinkActive() {
1958                    return _layout.isLayoutPrototypeLinkActive();
1959            }
1960    
1961            @Override
1962            public boolean isPublicLayout() {
1963                    return _layout.isPublicLayout();
1964            }
1965    
1966            @Override
1967            public boolean isRootLayout() {
1968                    return _layout.isRootLayout();
1969            }
1970    
1971            @Override
1972            public boolean isSelected(boolean selectable,
1973                    com.liferay.portal.model.Layout layout, long ancestorPlid) {
1974                    return _layout.isSelected(selectable, layout, ancestorPlid);
1975            }
1976    
1977            @Override
1978            public boolean isSupportsEmbeddedPortlets() {
1979                    return _layout.isSupportsEmbeddedPortlets();
1980            }
1981    
1982            @Override
1983            public boolean isTypeArticle() {
1984                    return _layout.isTypeArticle();
1985            }
1986    
1987            @Override
1988            public boolean isTypeControlPanel() {
1989                    return _layout.isTypeControlPanel();
1990            }
1991    
1992            @Override
1993            public boolean isTypeEmbedded() {
1994                    return _layout.isTypeEmbedded();
1995            }
1996    
1997            @Override
1998            public boolean isTypeLinkToLayout() {
1999                    return _layout.isTypeLinkToLayout();
2000            }
2001    
2002            @Override
2003            public boolean isTypePanel() {
2004                    return _layout.isTypePanel();
2005            }
2006    
2007            @Override
2008            public boolean isTypePortlet() {
2009                    return _layout.isTypePortlet();
2010            }
2011    
2012            @Override
2013            public boolean isTypeURL() {
2014                    return _layout.isTypeURL();
2015            }
2016    
2017            @Override
2018            public void setLayoutSet(com.liferay.portal.model.LayoutSet layoutSet) {
2019                    _layout.setLayoutSet(layoutSet);
2020            }
2021    
2022            @Override
2023            public void setTypeSettingsProperties(
2024                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
2025                    _layout.setTypeSettingsProperties(typeSettingsProperties);
2026            }
2027    
2028            @Override
2029            public boolean equals(Object obj) {
2030                    if (this == obj) {
2031                            return true;
2032                    }
2033    
2034                    if (!(obj instanceof LayoutWrapper)) {
2035                            return false;
2036                    }
2037    
2038                    LayoutWrapper layoutWrapper = (LayoutWrapper)obj;
2039    
2040                    if (Validator.equals(_layout, layoutWrapper._layout)) {
2041                            return true;
2042                    }
2043    
2044                    return false;
2045            }
2046    
2047            @Override
2048            public StagedModelType getStagedModelType() {
2049                    return _layout.getStagedModelType();
2050            }
2051    
2052            /**
2053             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
2054             */
2055            public Layout getWrappedLayout() {
2056                    return _layout;
2057            }
2058    
2059            @Override
2060            public Layout getWrappedModel() {
2061                    return _layout;
2062            }
2063    
2064            @Override
2065            public void resetOriginalValues() {
2066                    _layout.resetOriginalValues();
2067            }
2068    
2069            private Layout _layout;
2070    }