org.bimserver.models.store.impl.OAuthAuthorizationCodeImpl Maven / Gradle / Ivy
/**
* Copyright (C) 2009-2014 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.bimserver.models.store.impl;
import org.bimserver.emf.IdEObjectImpl;
import org.bimserver.models.store.Authorization;
import org.bimserver.models.store.OAuthAuthorizationCode;
import org.bimserver.models.store.OAuthServer;
import org.bimserver.models.store.StorePackage;
import org.bimserver.models.store.User;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'OAuth Authorization Code'.
*
*
* The following features are implemented:
*
*
* - {@link org.bimserver.models.store.impl.OAuthAuthorizationCodeImpl#getOauthServer Oauth Server}
* - {@link org.bimserver.models.store.impl.OAuthAuthorizationCodeImpl#getCode Code}
* - {@link org.bimserver.models.store.impl.OAuthAuthorizationCodeImpl#getAuthorization Authorization}
* - {@link org.bimserver.models.store.impl.OAuthAuthorizationCodeImpl#getUser User}
*
*
* @generated
*/
public class OAuthAuthorizationCodeImpl extends IdEObjectImpl implements OAuthAuthorizationCode {
/**
*
*
* @generated
*/
protected OAuthAuthorizationCodeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return StorePackage.Literals.OAUTH_AUTHORIZATION_CODE;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
public OAuthServer getOauthServer() {
return (OAuthServer) eGet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__OAUTH_SERVER, true);
}
/**
*
*
* @generated
*/
public void setOauthServer(OAuthServer newOauthServer) {
eSet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__OAUTH_SERVER, newOauthServer);
}
/**
*
*
* @generated
*/
public String getCode() {
return (String) eGet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__CODE, true);
}
/**
*
*
* @generated
*/
public void setCode(String newCode) {
eSet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__CODE, newCode);
}
/**
*
*
* @generated
*/
public Authorization getAuthorization() {
return (Authorization) eGet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__AUTHORIZATION, true);
}
/**
*
*
* @generated
*/
public void setAuthorization(Authorization newAuthorization) {
eSet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__AUTHORIZATION, newAuthorization);
}
/**
*
*
* @generated
*/
public User getUser() {
return (User) eGet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__USER, true);
}
/**
*
*
* @generated
*/
public void setUser(User newUser) {
eSet(StorePackage.Literals.OAUTH_AUTHORIZATION_CODE__USER, newUser);
}
} //OAuthAuthorizationCodeImpl