Class EPackage

  • Direct Known Subclasses:
    JavaPackage

    public class EPackage
    extends ENamedElement
    Java class for EPackage complex type. The following schema fragment specifies the expected content contained within this class.
     <complexType name="EPackage">
       <complexContent>
         <extension base="{http://www.eclipse.org/emf/2002/Ecore}ENamedElement">
           <choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="eClassifiers" type="{http://www.eclipse.org/emf/2002/Ecore}EClassifier"/>
             </choice>
             <choice maxOccurs="unbounded" minOccurs="0">
               <element name="eSubpackages" type="{http://www.eclipse.org/emf/2002/Ecore}EPackage"/>
             </choice>
           </choice>
           <attribute name="nsPrefix" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="nsURI" type="{http://www.w3.org/2001/XMLSchema}string" />
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • EPackage

        public EPackage()
    • Method Detail

      • getEClassifiers

        public List<EClassifier> getEClassifiers()
        Gets the value of the eClassifiers property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the eClassifiers property. For example, to add a new item, do as follows:
         getEClassifiers().add(newItem);
         
        Objects of the following type(s) are allowed in the list EClassifier
      • getESubpackages

        public List<EPackage> getESubpackages()
        Gets the value of the eSubpackages property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the eSubpackages property. For example, to add a new item, do as follows:
         getESubpackages().add(newItem);
         
        Objects of the following type(s) are allowed in the list EPackage
      • getNsPrefix

        public String getNsPrefix()
        Gets the value of the nsPrefix property.
        Returns:
        possible object is String
      • setNsPrefix

        public void setNsPrefix​(String value)
        Sets the value of the nsPrefix property.
        Parameters:
        value - allowed object is String
      • getNsURI

        public String getNsURI()
        Gets the value of the nsURI property.
        Returns:
        possible object is String
      • setNsURI

        public void setNsURI​(String value)
        Sets the value of the nsURI property.
        Parameters:
        value - allowed object is String