本文整理匯總了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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}