Package de.innovationgate.eclipse.editors.models

Source Code of de.innovationgate.eclipse.editors.models.WGContentTypeDefinitionMetaDataModel

/*******************************************************************************
* Copyright (c) 2009, 2010 Innovation Gate GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Innovation Gate GmbH - initial API and implementation
******************************************************************************/

package de.innovationgate.eclipse.editors.models;

import de.innovationgate.eclipse.utils.ui.AbstractGenesisBoundObject;
import de.innovationgate.eclipse.utils.ui.model.WGASchemaDefinitionModel;
import de.innovationgate.webgate.api.schemadef.WGContentTypeDefinition;
import de.innovationgate.webgate.api.schemadef.WGMetaFieldDefinition;

public class WGContentTypeDefinitionMetaDataModel extends AbstractGenesisBoundObject<WGMetaFieldDefinition> {

    protected WGASchemaDefinitionModel _model;

    public WGContentTypeDefinitionMetaDataModel(WGASchemaDefinitionModel model) {
        _model = model;
    }
   
    public String getContentTypeName() {
        WGContentTypeDefinition def = _model.findContentTypeDefinition(_bean);
        if (def != null) {
            return def.getName();
        }
        return null;
    }

   
}
TOP

Related Classes of de.innovationgate.eclipse.editors.models.WGContentTypeDefinitionMetaDataModel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.