當前位置: 首頁>>代碼示例>>Java>>正文


Java Lendable類代碼示例

本文整理匯總了Java中org.eclipse.emf.examples.extlibrary.Lendable的典型用法代碼示例。如果您正苦於以下問題:Java Lendable類的具體用法?Java Lendable怎麽用?Java Lendable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Lendable類屬於org.eclipse.emf.examples.extlibrary包,在下文中一共展示了Lendable類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: eBaseStructuralFeatureID

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
{
  if (baseClass == Lendable.class)
  {
    switch (derivedFeatureID)
    {
      case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: return EXTLibraryPackage.LENDABLE__COPIES;
      case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: return EXTLibraryPackage.LENDABLE__BORROWERS;
      default: return -1;
    }
  }
  return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
 
開發者ID:cbrun,項目名稱:acceleo-launcher-examples,代碼行數:20,代碼來源:CirculatingItemImpl.java

示例2: eDerivedStructuralFeatureID

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
{
  if (baseClass == Lendable.class)
  {
    switch (baseFeatureID)
    {
      case EXTLibraryPackage.LENDABLE__COPIES: return EXTLibraryPackage.CIRCULATING_ITEM__COPIES;
      case EXTLibraryPackage.LENDABLE__BORROWERS: return EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS;
      default: return -1;
    }
  }
  return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
 
開發者ID:cbrun,項目名稱:acceleo-launcher-examples,代碼行數:20,代碼來源:CirculatingItemImpl.java

示例3: getBorrowed

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Lendable> getBorrowed()
{
  if (borrowed == null)
  {
    borrowed = new EObjectWithInverseResolvingEList.ManyInverse<Lendable>(Lendable.class, this, EXTLibraryPackage.BORROWER__BORROWED, EXTLibraryPackage.LENDABLE__BORROWERS);
  }
  return borrowed;
}
 
開發者ID:cbrun,項目名稱:acceleo-launcher-examples,代碼行數:14,代碼來源:BorrowerImpl.java

示例4: eSet

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case EXTLibraryPackage.BORROWER__BORROWED:
      getBorrowed().clear();
      getBorrowed().addAll((Collection<? extends Lendable>)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
開發者ID:cbrun,項目名稱:acceleo-launcher-examples,代碼行數:19,代碼來源:BorrowerImpl.java

示例5: eBaseStructuralFeatureID

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
 * @generated
 */
 @Override
 public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
 {
	if (baseClass == Lendable.class) {
		switch (derivedFeatureID) {
			case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: return EXTLibraryPackage.LENDABLE__COPIES;
			case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: return EXTLibraryPackage.LENDABLE__BORROWERS;
			default: return -1;
		}
	}
	return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
 
開發者ID:LangleyStudios,項目名稱:eclipse-avro,代碼行數:18,代碼來源:CirculatingItemImpl.java

示例6: eDerivedStructuralFeatureID

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
 * @generated
 */
 @Override
 public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
 {
	if (baseClass == Lendable.class) {
		switch (baseFeatureID) {
			case EXTLibraryPackage.LENDABLE__COPIES: return EXTLibraryPackage.CIRCULATING_ITEM__COPIES;
			case EXTLibraryPackage.LENDABLE__BORROWERS: return EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS;
			default: return -1;
		}
	}
	return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
 
開發者ID:LangleyStudios,項目名稱:eclipse-avro,代碼行數:18,代碼來源:CirculatingItemImpl.java

示例7: getBorrowed

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
 * @generated
 */
 public EList<Lendable> getBorrowed()
 {
	if (borrowed == null) {
		borrowed = new EObjectWithInverseResolvingEList.ManyInverse<Lendable>(Lendable.class, this, EXTLibraryPackage.BORROWER__BORROWED, EXTLibraryPackage.LENDABLE__BORROWERS);
	}
	return borrowed;
}
 
開發者ID:LangleyStudios,項目名稱:eclipse-avro,代碼行數:13,代碼來源:BorrowerImpl.java

示例8: eSet

import org.eclipse.emf.examples.extlibrary.Lendable; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
 * @generated
 */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue)
 {
	switch (featureID) {
		case EXTLibraryPackage.BORROWER__BORROWED:
			getBorrowed().clear();
			getBorrowed().addAll((Collection<? extends Lendable>)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
開發者ID:LangleyStudios,項目名稱:eclipse-avro,代碼行數:18,代碼來源:BorrowerImpl.java


注:本文中的org.eclipse.emf.examples.extlibrary.Lendable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。