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.portlet.dynamicdatamapping.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link DDMStructure}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DDMStructure
032     * @generated
033     */
034    public class DDMStructureWrapper implements DDMStructure,
035            ModelWrapper<DDMStructure> {
036            public DDMStructureWrapper(DDMStructure ddmStructure) {
037                    _ddmStructure = ddmStructure;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return DDMStructure.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return DDMStructure.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("structureId", getStructureId());
056                    attributes.put("groupId", getGroupId());
057                    attributes.put("companyId", getCompanyId());
058                    attributes.put("userId", getUserId());
059                    attributes.put("userName", getUserName());
060                    attributes.put("createDate", getCreateDate());
061                    attributes.put("modifiedDate", getModifiedDate());
062                    attributes.put("parentStructureId", getParentStructureId());
063                    attributes.put("classNameId", getClassNameId());
064                    attributes.put("structureKey", getStructureKey());
065                    attributes.put("name", getName());
066                    attributes.put("description", getDescription());
067                    attributes.put("xsd", getXsd());
068                    attributes.put("storageType", getStorageType());
069                    attributes.put("type", getType());
070    
071                    return attributes;
072            }
073    
074            @Override
075            public void setModelAttributes(Map<String, Object> attributes) {
076                    String uuid = (String)attributes.get("uuid");
077    
078                    if (uuid != null) {
079                            setUuid(uuid);
080                    }
081    
082                    Long structureId = (Long)attributes.get("structureId");
083    
084                    if (structureId != null) {
085                            setStructureId(structureId);
086                    }
087    
088                    Long groupId = (Long)attributes.get("groupId");
089    
090                    if (groupId != null) {
091                            setGroupId(groupId);
092                    }
093    
094                    Long companyId = (Long)attributes.get("companyId");
095    
096                    if (companyId != null) {
097                            setCompanyId(companyId);
098                    }
099    
100                    Long userId = (Long)attributes.get("userId");
101    
102                    if (userId != null) {
103                            setUserId(userId);
104                    }
105    
106                    String userName = (String)attributes.get("userName");
107    
108                    if (userName != null) {
109                            setUserName(userName);
110                    }
111    
112                    Date createDate = (Date)attributes.get("createDate");
113    
114                    if (createDate != null) {
115                            setCreateDate(createDate);
116                    }
117    
118                    Date modifiedDate = (Date)attributes.get("modifiedDate");
119    
120                    if (modifiedDate != null) {
121                            setModifiedDate(modifiedDate);
122                    }
123    
124                    Long parentStructureId = (Long)attributes.get("parentStructureId");
125    
126                    if (parentStructureId != null) {
127                            setParentStructureId(parentStructureId);
128                    }
129    
130                    Long classNameId = (Long)attributes.get("classNameId");
131    
132                    if (classNameId != null) {
133                            setClassNameId(classNameId);
134                    }
135    
136                    String structureKey = (String)attributes.get("structureKey");
137    
138                    if (structureKey != null) {
139                            setStructureKey(structureKey);
140                    }
141    
142                    String name = (String)attributes.get("name");
143    
144                    if (name != null) {
145                            setName(name);
146                    }
147    
148                    String description = (String)attributes.get("description");
149    
150                    if (description != null) {
151                            setDescription(description);
152                    }
153    
154                    String xsd = (String)attributes.get("xsd");
155    
156                    if (xsd != null) {
157                            setXsd(xsd);
158                    }
159    
160                    String storageType = (String)attributes.get("storageType");
161    
162                    if (storageType != null) {
163                            setStorageType(storageType);
164                    }
165    
166                    Integer type = (Integer)attributes.get("type");
167    
168                    if (type != null) {
169                            setType(type);
170                    }
171            }
172    
173            /**
174            * Returns the primary key of this d d m structure.
175            *
176            * @return the primary key of this d d m structure
177            */
178            @Override
179            public long getPrimaryKey() {
180                    return _ddmStructure.getPrimaryKey();
181            }
182    
183            /**
184            * Sets the primary key of this d d m structure.
185            *
186            * @param primaryKey the primary key of this d d m structure
187            */
188            @Override
189            public void setPrimaryKey(long primaryKey) {
190                    _ddmStructure.setPrimaryKey(primaryKey);
191            }
192    
193            /**
194            * Returns the uuid of this d d m structure.
195            *
196            * @return the uuid of this d d m structure
197            */
198            @Override
199            public java.lang.String getUuid() {
200                    return _ddmStructure.getUuid();
201            }
202    
203            /**
204            * Sets the uuid of this d d m structure.
205            *
206            * @param uuid the uuid of this d d m structure
207            */
208            @Override
209            public void setUuid(java.lang.String uuid) {
210                    _ddmStructure.setUuid(uuid);
211            }
212    
213            /**
214            * Returns the structure ID of this d d m structure.
215            *
216            * @return the structure ID of this d d m structure
217            */
218            @Override
219            public long getStructureId() {
220                    return _ddmStructure.getStructureId();
221            }
222    
223            /**
224            * Sets the structure ID of this d d m structure.
225            *
226            * @param structureId the structure ID of this d d m structure
227            */
228            @Override
229            public void setStructureId(long structureId) {
230                    _ddmStructure.setStructureId(structureId);
231            }
232    
233            /**
234            * Returns the group ID of this d d m structure.
235            *
236            * @return the group ID of this d d m structure
237            */
238            @Override
239            public long getGroupId() {
240                    return _ddmStructure.getGroupId();
241            }
242    
243            /**
244            * Sets the group ID of this d d m structure.
245            *
246            * @param groupId the group ID of this d d m structure
247            */
248            @Override
249            public void setGroupId(long groupId) {
250                    _ddmStructure.setGroupId(groupId);
251            }
252    
253            /**
254            * Returns the company ID of this d d m structure.
255            *
256            * @return the company ID of this d d m structure
257            */
258            @Override
259            public long getCompanyId() {
260                    return _ddmStructure.getCompanyId();
261            }
262    
263            /**
264            * Sets the company ID of this d d m structure.
265            *
266            * @param companyId the company ID of this d d m structure
267            */
268            @Override
269            public void setCompanyId(long companyId) {
270                    _ddmStructure.setCompanyId(companyId);
271            }
272    
273            /**
274            * Returns the user ID of this d d m structure.
275            *
276            * @return the user ID of this d d m structure
277            */
278            @Override
279            public long getUserId() {
280                    return _ddmStructure.getUserId();
281            }
282    
283            /**
284            * Sets the user ID of this d d m structure.
285            *
286            * @param userId the user ID of this d d m structure
287            */
288            @Override
289            public void setUserId(long userId) {
290                    _ddmStructure.setUserId(userId);
291            }
292    
293            /**
294            * Returns the user uuid of this d d m structure.
295            *
296            * @return the user uuid of this d d m structure
297            * @throws SystemException if a system exception occurred
298            */
299            @Override
300            public java.lang.String getUserUuid()
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _ddmStructure.getUserUuid();
303            }
304    
305            /**
306            * Sets the user uuid of this d d m structure.
307            *
308            * @param userUuid the user uuid of this d d m structure
309            */
310            @Override
311            public void setUserUuid(java.lang.String userUuid) {
312                    _ddmStructure.setUserUuid(userUuid);
313            }
314    
315            /**
316            * Returns the user name of this d d m structure.
317            *
318            * @return the user name of this d d m structure
319            */
320            @Override
321            public java.lang.String getUserName() {
322                    return _ddmStructure.getUserName();
323            }
324    
325            /**
326            * Sets the user name of this d d m structure.
327            *
328            * @param userName the user name of this d d m structure
329            */
330            @Override
331            public void setUserName(java.lang.String userName) {
332                    _ddmStructure.setUserName(userName);
333            }
334    
335            /**
336            * Returns the create date of this d d m structure.
337            *
338            * @return the create date of this d d m structure
339            */
340            @Override
341            public java.util.Date getCreateDate() {
342                    return _ddmStructure.getCreateDate();
343            }
344    
345            /**
346            * Sets the create date of this d d m structure.
347            *
348            * @param createDate the create date of this d d m structure
349            */
350            @Override
351            public void setCreateDate(java.util.Date createDate) {
352                    _ddmStructure.setCreateDate(createDate);
353            }
354    
355            /**
356            * Returns the modified date of this d d m structure.
357            *
358            * @return the modified date of this d d m structure
359            */
360            @Override
361            public java.util.Date getModifiedDate() {
362                    return _ddmStructure.getModifiedDate();
363            }
364    
365            /**
366            * Sets the modified date of this d d m structure.
367            *
368            * @param modifiedDate the modified date of this d d m structure
369            */
370            @Override
371            public void setModifiedDate(java.util.Date modifiedDate) {
372                    _ddmStructure.setModifiedDate(modifiedDate);
373            }
374    
375            /**
376            * Returns the parent structure ID of this d d m structure.
377            *
378            * @return the parent structure ID of this d d m structure
379            */
380            @Override
381            public long getParentStructureId() {
382                    return _ddmStructure.getParentStructureId();
383            }
384    
385            /**
386            * Sets the parent structure ID of this d d m structure.
387            *
388            * @param parentStructureId the parent structure ID of this d d m structure
389            */
390            @Override
391            public void setParentStructureId(long parentStructureId) {
392                    _ddmStructure.setParentStructureId(parentStructureId);
393            }
394    
395            /**
396            * Returns the fully qualified class name of this d d m structure.
397            *
398            * @return the fully qualified class name of this d d m structure
399            */
400            @Override
401            public java.lang.String getClassName() {
402                    return _ddmStructure.getClassName();
403            }
404    
405            @Override
406            public void setClassName(java.lang.String className) {
407                    _ddmStructure.setClassName(className);
408            }
409    
410            /**
411            * Returns the class name ID of this d d m structure.
412            *
413            * @return the class name ID of this d d m structure
414            */
415            @Override
416            public long getClassNameId() {
417                    return _ddmStructure.getClassNameId();
418            }
419    
420            /**
421            * Sets the class name ID of this d d m structure.
422            *
423            * @param classNameId the class name ID of this d d m structure
424            */
425            @Override
426            public void setClassNameId(long classNameId) {
427                    _ddmStructure.setClassNameId(classNameId);
428            }
429    
430            /**
431            * Returns the structure key of this d d m structure.
432            *
433            * @return the structure key of this d d m structure
434            */
435            @Override
436            public java.lang.String getStructureKey() {
437                    return _ddmStructure.getStructureKey();
438            }
439    
440            /**
441            * Sets the structure key of this d d m structure.
442            *
443            * @param structureKey the structure key of this d d m structure
444            */
445            @Override
446            public void setStructureKey(java.lang.String structureKey) {
447                    _ddmStructure.setStructureKey(structureKey);
448            }
449    
450            /**
451            * Returns the name of this d d m structure.
452            *
453            * @return the name of this d d m structure
454            */
455            @Override
456            public java.lang.String getName() {
457                    return _ddmStructure.getName();
458            }
459    
460            /**
461            * Returns the localized name of this d d m structure in the language. Uses the default language if no localization exists for the requested language.
462            *
463            * @param locale the locale of the language
464            * @return the localized name of this d d m structure
465            */
466            @Override
467            public java.lang.String getName(java.util.Locale locale) {
468                    return _ddmStructure.getName(locale);
469            }
470    
471            /**
472            * Returns the localized name of this d d m structure in the language, optionally using the default language if no localization exists for the requested language.
473            *
474            * @param locale the local of the language
475            * @param useDefault whether to use the default language if no localization exists for the requested language
476            * @return the localized name of this d d m structure. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
477            */
478            @Override
479            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
480                    return _ddmStructure.getName(locale, useDefault);
481            }
482    
483            /**
484            * Returns the localized name of this d d m structure in the language. Uses the default language if no localization exists for the requested language.
485            *
486            * @param languageId the ID of the language
487            * @return the localized name of this d d m structure
488            */
489            @Override
490            public java.lang.String getName(java.lang.String languageId) {
491                    return _ddmStructure.getName(languageId);
492            }
493    
494            /**
495            * Returns the localized name of this d d m structure in the language, optionally using the default language if no localization exists for the requested language.
496            *
497            * @param languageId the ID of the language
498            * @param useDefault whether to use the default language if no localization exists for the requested language
499            * @return the localized name of this d d m structure
500            */
501            @Override
502            public java.lang.String getName(java.lang.String languageId,
503                    boolean useDefault) {
504                    return _ddmStructure.getName(languageId, useDefault);
505            }
506    
507            @Override
508            public java.lang.String getNameCurrentLanguageId() {
509                    return _ddmStructure.getNameCurrentLanguageId();
510            }
511    
512            @Override
513            public java.lang.String getNameCurrentValue() {
514                    return _ddmStructure.getNameCurrentValue();
515            }
516    
517            /**
518            * Returns a map of the locales and localized names of this d d m structure.
519            *
520            * @return the locales and localized names of this d d m structure
521            */
522            @Override
523            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
524                    return _ddmStructure.getNameMap();
525            }
526    
527            /**
528            * Sets the name of this d d m structure.
529            *
530            * @param name the name of this d d m structure
531            */
532            @Override
533            public void setName(java.lang.String name) {
534                    _ddmStructure.setName(name);
535            }
536    
537            /**
538            * Sets the localized name of this d d m structure in the language.
539            *
540            * @param name the localized name of this d d m structure
541            * @param locale the locale of the language
542            */
543            @Override
544            public void setName(java.lang.String name, java.util.Locale locale) {
545                    _ddmStructure.setName(name, locale);
546            }
547    
548            /**
549            * Sets the localized name of this d d m structure in the language, and sets the default locale.
550            *
551            * @param name the localized name of this d d m structure
552            * @param locale the locale of the language
553            * @param defaultLocale the default locale
554            */
555            @Override
556            public void setName(java.lang.String name, java.util.Locale locale,
557                    java.util.Locale defaultLocale) {
558                    _ddmStructure.setName(name, locale, defaultLocale);
559            }
560    
561            @Override
562            public void setNameCurrentLanguageId(java.lang.String languageId) {
563                    _ddmStructure.setNameCurrentLanguageId(languageId);
564            }
565    
566            /**
567            * Sets the localized names of this d d m structure from the map of locales and localized names.
568            *
569            * @param nameMap the locales and localized names of this d d m structure
570            */
571            @Override
572            public void setNameMap(
573                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
574                    _ddmStructure.setNameMap(nameMap);
575            }
576    
577            /**
578            * Sets the localized names of this d d m structure from the map of locales and localized names, and sets the default locale.
579            *
580            * @param nameMap the locales and localized names of this d d m structure
581            * @param defaultLocale the default locale
582            */
583            @Override
584            public void setNameMap(
585                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
586                    java.util.Locale defaultLocale) {
587                    _ddmStructure.setNameMap(nameMap, defaultLocale);
588            }
589    
590            /**
591            * Returns the description of this d d m structure.
592            *
593            * @return the description of this d d m structure
594            */
595            @Override
596            public java.lang.String getDescription() {
597                    return _ddmStructure.getDescription();
598            }
599    
600            /**
601            * Returns the localized description of this d d m structure in the language. Uses the default language if no localization exists for the requested language.
602            *
603            * @param locale the locale of the language
604            * @return the localized description of this d d m structure
605            */
606            @Override
607            public java.lang.String getDescription(java.util.Locale locale) {
608                    return _ddmStructure.getDescription(locale);
609            }
610    
611            /**
612            * Returns the localized description of this d d m structure in the language, optionally using the default language if no localization exists for the requested language.
613            *
614            * @param locale the local of the language
615            * @param useDefault whether to use the default language if no localization exists for the requested language
616            * @return the localized description of this d d m structure. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
617            */
618            @Override
619            public java.lang.String getDescription(java.util.Locale locale,
620                    boolean useDefault) {
621                    return _ddmStructure.getDescription(locale, useDefault);
622            }
623    
624            /**
625            * Returns the localized description of this d d m structure in the language. Uses the default language if no localization exists for the requested language.
626            *
627            * @param languageId the ID of the language
628            * @return the localized description of this d d m structure
629            */
630            @Override
631            public java.lang.String getDescription(java.lang.String languageId) {
632                    return _ddmStructure.getDescription(languageId);
633            }
634    
635            /**
636            * Returns the localized description of this d d m structure in the language, optionally using the default language if no localization exists for the requested language.
637            *
638            * @param languageId the ID of the language
639            * @param useDefault whether to use the default language if no localization exists for the requested language
640            * @return the localized description of this d d m structure
641            */
642            @Override
643            public java.lang.String getDescription(java.lang.String languageId,
644                    boolean useDefault) {
645                    return _ddmStructure.getDescription(languageId, useDefault);
646            }
647    
648            @Override
649            public java.lang.String getDescriptionCurrentLanguageId() {
650                    return _ddmStructure.getDescriptionCurrentLanguageId();
651            }
652    
653            @Override
654            public java.lang.String getDescriptionCurrentValue() {
655                    return _ddmStructure.getDescriptionCurrentValue();
656            }
657    
658            /**
659            * Returns a map of the locales and localized descriptions of this d d m structure.
660            *
661            * @return the locales and localized descriptions of this d d m structure
662            */
663            @Override
664            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
665                    return _ddmStructure.getDescriptionMap();
666            }
667    
668            /**
669            * Sets the description of this d d m structure.
670            *
671            * @param description the description of this d d m structure
672            */
673            @Override
674            public void setDescription(java.lang.String description) {
675                    _ddmStructure.setDescription(description);
676            }
677    
678            /**
679            * Sets the localized description of this d d m structure in the language.
680            *
681            * @param description the localized description of this d d m structure
682            * @param locale the locale of the language
683            */
684            @Override
685            public void setDescription(java.lang.String description,
686                    java.util.Locale locale) {
687                    _ddmStructure.setDescription(description, locale);
688            }
689    
690            /**
691            * Sets the localized description of this d d m structure in the language, and sets the default locale.
692            *
693            * @param description the localized description of this d d m structure
694            * @param locale the locale of the language
695            * @param defaultLocale the default locale
696            */
697            @Override
698            public void setDescription(java.lang.String description,
699                    java.util.Locale locale, java.util.Locale defaultLocale) {
700                    _ddmStructure.setDescription(description, locale, defaultLocale);
701            }
702    
703            @Override
704            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
705                    _ddmStructure.setDescriptionCurrentLanguageId(languageId);
706            }
707    
708            /**
709            * Sets the localized descriptions of this d d m structure from the map of locales and localized descriptions.
710            *
711            * @param descriptionMap the locales and localized descriptions of this d d m structure
712            */
713            @Override
714            public void setDescriptionMap(
715                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
716                    _ddmStructure.setDescriptionMap(descriptionMap);
717            }
718    
719            /**
720            * Sets the localized descriptions of this d d m structure from the map of locales and localized descriptions, and sets the default locale.
721            *
722            * @param descriptionMap the locales and localized descriptions of this d d m structure
723            * @param defaultLocale the default locale
724            */
725            @Override
726            public void setDescriptionMap(
727                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
728                    java.util.Locale defaultLocale) {
729                    _ddmStructure.setDescriptionMap(descriptionMap, defaultLocale);
730            }
731    
732            /**
733            * Returns the xsd of this d d m structure.
734            *
735            * @return the xsd of this d d m structure
736            */
737            @Override
738            public java.lang.String getXsd() {
739                    return _ddmStructure.getXsd();
740            }
741    
742            /**
743            * Sets the xsd of this d d m structure.
744            *
745            * @param xsd the xsd of this d d m structure
746            */
747            @Override
748            public void setXsd(java.lang.String xsd) {
749                    _ddmStructure.setXsd(xsd);
750            }
751    
752            /**
753            * Returns the storage type of this d d m structure.
754            *
755            * @return the storage type of this d d m structure
756            */
757            @Override
758            public java.lang.String getStorageType() {
759                    return _ddmStructure.getStorageType();
760            }
761    
762            /**
763            * Sets the storage type of this d d m structure.
764            *
765            * @param storageType the storage type of this d d m structure
766            */
767            @Override
768            public void setStorageType(java.lang.String storageType) {
769                    _ddmStructure.setStorageType(storageType);
770            }
771    
772            /**
773            * Returns the type of this d d m structure.
774            *
775            * @return the type of this d d m structure
776            */
777            @Override
778            public int getType() {
779                    return _ddmStructure.getType();
780            }
781    
782            /**
783            * Sets the type of this d d m structure.
784            *
785            * @param type the type of this d d m structure
786            */
787            @Override
788            public void setType(int type) {
789                    _ddmStructure.setType(type);
790            }
791    
792            @Override
793            public boolean isNew() {
794                    return _ddmStructure.isNew();
795            }
796    
797            @Override
798            public void setNew(boolean n) {
799                    _ddmStructure.setNew(n);
800            }
801    
802            @Override
803            public boolean isCachedModel() {
804                    return _ddmStructure.isCachedModel();
805            }
806    
807            @Override
808            public void setCachedModel(boolean cachedModel) {
809                    _ddmStructure.setCachedModel(cachedModel);
810            }
811    
812            @Override
813            public boolean isEscapedModel() {
814                    return _ddmStructure.isEscapedModel();
815            }
816    
817            @Override
818            public java.io.Serializable getPrimaryKeyObj() {
819                    return _ddmStructure.getPrimaryKeyObj();
820            }
821    
822            @Override
823            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
824                    _ddmStructure.setPrimaryKeyObj(primaryKeyObj);
825            }
826    
827            @Override
828            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
829                    return _ddmStructure.getExpandoBridge();
830            }
831    
832            @Override
833            public void setExpandoBridgeAttributes(
834                    com.liferay.portal.model.BaseModel<?> baseModel) {
835                    _ddmStructure.setExpandoBridgeAttributes(baseModel);
836            }
837    
838            @Override
839            public void setExpandoBridgeAttributes(
840                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
841                    _ddmStructure.setExpandoBridgeAttributes(expandoBridge);
842            }
843    
844            @Override
845            public void setExpandoBridgeAttributes(
846                    com.liferay.portal.service.ServiceContext serviceContext) {
847                    _ddmStructure.setExpandoBridgeAttributes(serviceContext);
848            }
849    
850            @Override
851            public java.lang.String[] getAvailableLanguageIds() {
852                    return _ddmStructure.getAvailableLanguageIds();
853            }
854    
855            @Override
856            public java.lang.String getDefaultLanguageId() {
857                    return _ddmStructure.getDefaultLanguageId();
858            }
859    
860            @Override
861            public void prepareLocalizedFieldsForImport()
862                    throws com.liferay.portal.LocaleException {
863                    _ddmStructure.prepareLocalizedFieldsForImport();
864            }
865    
866            @Override
867            public void prepareLocalizedFieldsForImport(
868                    java.util.Locale defaultImportLocale)
869                    throws com.liferay.portal.LocaleException {
870                    _ddmStructure.prepareLocalizedFieldsForImport(defaultImportLocale);
871            }
872    
873            @Override
874            public java.lang.Object clone() {
875                    return new DDMStructureWrapper((DDMStructure)_ddmStructure.clone());
876            }
877    
878            @Override
879            public int compareTo(
880                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) {
881                    return _ddmStructure.compareTo(ddmStructure);
882            }
883    
884            @Override
885            public int hashCode() {
886                    return _ddmStructure.hashCode();
887            }
888    
889            @Override
890            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> toCacheModel() {
891                    return _ddmStructure.toCacheModel();
892            }
893    
894            @Override
895            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure toEscapedModel() {
896                    return new DDMStructureWrapper(_ddmStructure.toEscapedModel());
897            }
898    
899            @Override
900            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure toUnescapedModel() {
901                    return new DDMStructureWrapper(_ddmStructure.toUnescapedModel());
902            }
903    
904            @Override
905            public java.lang.String toString() {
906                    return _ddmStructure.toString();
907            }
908    
909            @Override
910            public java.lang.String toXmlString() {
911                    return _ddmStructure.toXmlString();
912            }
913    
914            @Override
915            public void persist()
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    _ddmStructure.persist();
918            }
919    
920            @Override
921            public java.util.List<java.lang.String> getChildrenFieldNames(
922                    java.lang.String fieldName)
923                    throws com.liferay.portal.kernel.exception.PortalException,
924                            com.liferay.portal.kernel.exception.SystemException {
925                    return _ddmStructure.getChildrenFieldNames(fieldName);
926            }
927    
928            @Override
929            public java.lang.String getCompleteXsd()
930                    throws com.liferay.portal.kernel.exception.PortalException,
931                            com.liferay.portal.kernel.exception.SystemException {
932                    return _ddmStructure.getCompleteXsd();
933            }
934    
935            @Override
936            public com.liferay.portal.kernel.xml.Document getDocument() {
937                    return _ddmStructure.getDocument();
938            }
939    
940            @Override
941            public java.lang.String getFieldDataType(java.lang.String fieldName)
942                    throws com.liferay.portal.kernel.exception.PortalException,
943                            com.liferay.portal.kernel.exception.SystemException {
944                    return _ddmStructure.getFieldDataType(fieldName);
945            }
946    
947            @Override
948            public java.lang.String getFieldLabel(java.lang.String fieldName,
949                    java.util.Locale locale)
950                    throws com.liferay.portal.kernel.exception.PortalException,
951                            com.liferay.portal.kernel.exception.SystemException {
952                    return _ddmStructure.getFieldLabel(fieldName, locale);
953            }
954    
955            @Override
956            public java.lang.String getFieldLabel(java.lang.String fieldName,
957                    java.lang.String locale)
958                    throws com.liferay.portal.kernel.exception.PortalException,
959                            com.liferay.portal.kernel.exception.SystemException {
960                    return _ddmStructure.getFieldLabel(fieldName, locale);
961            }
962    
963            @Override
964            public java.util.Set<java.lang.String> getFieldNames()
965                    throws com.liferay.portal.kernel.exception.PortalException,
966                            com.liferay.portal.kernel.exception.SystemException {
967                    return _ddmStructure.getFieldNames();
968            }
969    
970            @Override
971            public java.lang.String getFieldProperty(java.lang.String fieldName,
972                    java.lang.String property)
973                    throws com.liferay.portal.kernel.exception.PortalException,
974                            com.liferay.portal.kernel.exception.SystemException {
975                    return _ddmStructure.getFieldProperty(fieldName, property);
976            }
977    
978            @Override
979            public java.lang.String getFieldProperty(java.lang.String fieldName,
980                    java.lang.String property, java.lang.String locale)
981                    throws com.liferay.portal.kernel.exception.PortalException,
982                            com.liferay.portal.kernel.exception.SystemException {
983                    return _ddmStructure.getFieldProperty(fieldName, property, locale);
984            }
985    
986            @Override
987            public boolean getFieldRepeatable(java.lang.String fieldName)
988                    throws com.liferay.portal.kernel.exception.PortalException,
989                            com.liferay.portal.kernel.exception.SystemException {
990                    return _ddmStructure.getFieldRepeatable(fieldName);
991            }
992    
993            @Override
994            public boolean getFieldRequired(java.lang.String fieldName)
995                    throws com.liferay.portal.kernel.exception.PortalException,
996                            com.liferay.portal.kernel.exception.SystemException {
997                    return _ddmStructure.getFieldRequired(fieldName);
998            }
999    
1000            @Override
1001            public java.util.Map<java.lang.String, java.lang.String> getFields(
1002                    java.lang.String fieldName, java.lang.String attributeName,
1003                    java.lang.String attributeValue) {
1004                    return _ddmStructure.getFields(fieldName, attributeName, attributeValue);
1005            }
1006    
1007            @Override
1008            public java.util.Map<java.lang.String, java.lang.String> getFields(
1009                    java.lang.String fieldName, java.lang.String attributeName,
1010                    java.lang.String attributeValue, java.lang.String locale) {
1011                    return _ddmStructure.getFields(fieldName, attributeName,
1012                            attributeValue, locale);
1013            }
1014    
1015            @Override
1016            public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> getFieldsMap()
1017                    throws com.liferay.portal.kernel.exception.PortalException,
1018                            com.liferay.portal.kernel.exception.SystemException {
1019                    return _ddmStructure.getFieldsMap();
1020            }
1021    
1022            @Override
1023            public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> getFieldsMap(
1024                    java.lang.String locale)
1025                    throws com.liferay.portal.kernel.exception.PortalException,
1026                            com.liferay.portal.kernel.exception.SystemException {
1027                    return _ddmStructure.getFieldsMap(locale);
1028            }
1029    
1030            @Override
1031            public java.lang.String getFieldTip(java.lang.String fieldName,
1032                    java.util.Locale locale)
1033                    throws com.liferay.portal.kernel.exception.PortalException,
1034                            com.liferay.portal.kernel.exception.SystemException {
1035                    return _ddmStructure.getFieldTip(fieldName, locale);
1036            }
1037    
1038            @Override
1039            public java.lang.String getFieldTip(java.lang.String fieldName,
1040                    java.lang.String locale)
1041                    throws com.liferay.portal.kernel.exception.PortalException,
1042                            com.liferay.portal.kernel.exception.SystemException {
1043                    return _ddmStructure.getFieldTip(fieldName, locale);
1044            }
1045    
1046            @Override
1047            public java.lang.String getFieldType(java.lang.String fieldName)
1048                    throws com.liferay.portal.kernel.exception.PortalException,
1049                            com.liferay.portal.kernel.exception.SystemException {
1050                    return _ddmStructure.getFieldType(fieldName);
1051            }
1052    
1053            @Override
1054            public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>> getLocalizedFieldsMap() {
1055                    return _ddmStructure.getLocalizedFieldsMap();
1056            }
1057    
1058            @Override
1059            public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>> getLocalizedTransientFieldsMap() {
1060                    return _ddmStructure.getLocalizedTransientFieldsMap();
1061            }
1062    
1063            @Override
1064            public java.util.List<java.lang.String> getRootFieldNames()
1065                    throws com.liferay.portal.kernel.exception.PortalException,
1066                            com.liferay.portal.kernel.exception.SystemException {
1067                    return _ddmStructure.getRootFieldNames();
1068            }
1069    
1070            @Override
1071            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates()
1072                    throws com.liferay.portal.kernel.exception.SystemException {
1073                    return _ddmStructure.getTemplates();
1074            }
1075    
1076            @Override
1077            public java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>> getTransientFieldsMap(
1078                    java.lang.String locale)
1079                    throws com.liferay.portal.kernel.exception.PortalException,
1080                            com.liferay.portal.kernel.exception.SystemException {
1081                    return _ddmStructure.getTransientFieldsMap(locale);
1082            }
1083    
1084            /**
1085            * Returns the WebDAV URL to access the structure.
1086            *
1087            * @param themeDisplay the theme display needed to build the URL. It can
1088            set HTTPS access, the server name, the server port, the path
1089            context, and the scope group.
1090            * @param webDAVToken the WebDAV token for the URL
1091            * @return the WebDAV URL
1092            */
1093            @Override
1094            public java.lang.String getWebDavURL(
1095                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
1096                    java.lang.String webDAVToken) {
1097                    return _ddmStructure.getWebDavURL(themeDisplay, webDAVToken);
1098            }
1099    
1100            @Override
1101            public boolean hasField(java.lang.String fieldName)
1102                    throws com.liferay.portal.kernel.exception.PortalException,
1103                            com.liferay.portal.kernel.exception.SystemException {
1104                    return _ddmStructure.hasField(fieldName);
1105            }
1106    
1107            @Override
1108            public boolean isFieldPrivate(java.lang.String fieldName)
1109                    throws com.liferay.portal.kernel.exception.PortalException,
1110                            com.liferay.portal.kernel.exception.SystemException {
1111                    return _ddmStructure.isFieldPrivate(fieldName);
1112            }
1113    
1114            @Override
1115            public boolean isFieldRepeatable(java.lang.String fieldName)
1116                    throws com.liferay.portal.kernel.exception.PortalException,
1117                            com.liferay.portal.kernel.exception.SystemException {
1118                    return _ddmStructure.isFieldRepeatable(fieldName);
1119            }
1120    
1121            @Override
1122            public void setDocument(com.liferay.portal.kernel.xml.Document document) {
1123                    _ddmStructure.setDocument(document);
1124            }
1125    
1126            @Override
1127            public void setLocalizedFieldsMap(
1128                    java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>> localizedFieldsMap) {
1129                    _ddmStructure.setLocalizedFieldsMap(localizedFieldsMap);
1130            }
1131    
1132            @Override
1133            public void setLocalizedTransientFieldsMap(
1134                    java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>> localizedTransientFieldsMap) {
1135                    _ddmStructure.setLocalizedTransientFieldsMap(localizedTransientFieldsMap);
1136            }
1137    
1138            @Override
1139            public boolean equals(Object obj) {
1140                    if (this == obj) {
1141                            return true;
1142                    }
1143    
1144                    if (!(obj instanceof DDMStructureWrapper)) {
1145                            return false;
1146                    }
1147    
1148                    DDMStructureWrapper ddmStructureWrapper = (DDMStructureWrapper)obj;
1149    
1150                    if (Validator.equals(_ddmStructure, ddmStructureWrapper._ddmStructure)) {
1151                            return true;
1152                    }
1153    
1154                    return false;
1155            }
1156    
1157            @Override
1158            public StagedModelType getStagedModelType() {
1159                    return _ddmStructure.getStagedModelType();
1160            }
1161    
1162            /**
1163             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1164             */
1165            public DDMStructure getWrappedDDMStructure() {
1166                    return _ddmStructure;
1167            }
1168    
1169            @Override
1170            public DDMStructure getWrappedModel() {
1171                    return _ddmStructure;
1172            }
1173    
1174            @Override
1175            public void resetOriginalValues() {
1176                    _ddmStructure.resetOriginalValues();
1177            }
1178    
1179            private DDMStructure _ddmStructure;
1180    }