All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifex.polymer.mdl.shared.generated.types.DmcTypeFolderStructureREF Maven / Gradle / Ivy

// Copyright 2020 connectifex
// 
//    Licensed under the Apache License, Version 2.0 (the "License");
//    you may not use this file except in compliance with the License.
//    You may obtain a copy of the License at
// 
//      http://www.apache.org/licenses/LICENSE-2.0
// 
//    Unless required by applicable law or agreed to in writing, software
//    distributed under the License is distributed on an "AS IS" BASIS,
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//    See the License for the specific language governing permissions and
//    limitations under the License.
//

package com.connectifex.polymer.mdl.shared.generated.types;

import org.dmd.dmc.DmcAttributeInfo;
import org.dmd.dmc.DmcValueException;
import org.dmd.dmc.DmcOutputStreamIF;
import org.dmd.dmc.DmcInputStreamIF;
import org.dmd.dmc.types.DmcTypeNamedObjectREF;
import org.dmd.dmc.types.DefinitionName;

import com.connectifex.polymer.mdl.shared.generated.types.FolderStructureREF;

import com.connectifex.polymer.mdl.shared.generated.dmo.FolderStructureDMO;

/**
 * This is the generated DmcAttribute derivative for values of type FolderStructure
 * 

* Generated from the mdl schema at version unknown *

* This code was auto-generated by the dmogenerator utility and shouldn't be alterred manually! * Generated from: org.dmd.dms.util.DmoTypeFormatter.dumpNamedREFHelperType(DmoTypeFormatter.java:589) */ @SuppressWarnings("serial") abstract public class DmcTypeFolderStructureREF extends DmcTypeNamedObjectREF { public DmcTypeFolderStructureREF(){ } public DmcTypeFolderStructureREF(DmcAttributeInfo ai){ super(ai); } @Override protected FolderStructureREF getNewHelper(){ return(new FolderStructureREF()); } @Override protected DefinitionName getNewName(){ return(new DefinitionName()); } @Override protected String getDMOClassName(){ return( FolderStructureDMO.class.getName()); } @Override protected boolean isDMO(Object value){ if (value instanceof FolderStructureDMO) return(true); return(false); } @Override protected FolderStructureREF typeCheck(Object value) throws DmcValueException { FolderStructureREF rc = null; if (value instanceof FolderStructureREF) rc = (FolderStructureREF)value; else if (value instanceof FolderStructureDMO) rc = new FolderStructureREF((FolderStructureDMO)value); else if (value instanceof DefinitionName) rc = new FolderStructureREF((DefinitionName)value); else if (value instanceof String) rc = new FolderStructureREF((String)value); else throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with FolderStructureREF, FolderStructureDMO or String expected.")); return(rc); } @Override public void serializeValue(DmcOutputStreamIF dos, FolderStructureREF value) throws Exception { value.serializeIt(dos); } @Override public FolderStructureREF deserializeValue(DmcInputStreamIF dis) throws Exception { FolderStructureREF rc = new FolderStructureREF(); rc.deserializeIt(dis); return(rc); } @Override public FolderStructureREF cloneValue(FolderStructureREF value){ return(new FolderStructureREF(value)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy