com.sun.org.apache.xerces.internal.xs.datatypes.ObjectList Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.xs.datatypes.ObjectList.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XSSimpleTypeDecl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #2
Source File: XSSimpleTypeDecl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #3
Source File: XSSimpleTypeDecl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #4
Source File: XSSimpleTypeDecl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #5
Source File: XSSimpleTypeDecl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #6
Source File: XSSimpleTypeDecl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #7
Source File: XSSimpleTypeDecl.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #8
Source File: XSSimpleTypeDecl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #9
Source File: XSSimpleTypeDecl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumeration.size() : 0; } public boolean contains(Object item) { return (fEnumeration != null && fEnumeration.contains(item)); } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration.elementAt(index); } }; } return fActualEnumeration; }
Example #10
Source File: XSSimpleTypeDecl.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumerationSize : 0; } public boolean contains(Object item) { if (fEnumeration == null) { return false; } for (int i = 0; i < fEnumerationSize; i++) { if (fEnumeration[i].getActualValue().equals(item)) { return true; } } return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration[index].getActualValue(); } }; } return fActualEnumeration; }
Example #11
Source File: XSSimpleTypeDecl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #12
Source File: XSSimpleTypeDecl.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if (fEnumeration == null) { return null; } fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumerationSize : 0; } public boolean contains(Object item) { if (fEnumeration == null || !(item instanceof ShortList)) return false; for (int i = 0;i < fEnumerationSize; i++) if (fEnumeration[i].itemValueTypes == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration[index].itemValueTypes; } }; } return fEnumerationItemTypeList; }
Example #13
Source File: XSSimpleTypeDecl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * A list of actual enumeration values if it exists, otherwise an empty * <code>ObjectList</code>. */ public ObjectList getActualEnumeration() { if (fActualEnumeration == null) { fActualEnumeration = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumerationSize : 0; } public boolean contains(Object item) { if (fEnumeration == null) { return false; } for (int i = 0; i < fEnumerationSize; i++) { if (fEnumeration[i].getActualValue().equals(item)) { return true; } } return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration[index].getActualValue(); } }; } return fActualEnumeration; }
Example #14
Source File: XSSimpleTypeDecl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if (fEnumeration == null) { return null; } fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumeration != null) ? fEnumerationSize : 0; } public boolean contains(Object item) { if (fEnumeration == null || !(item instanceof ShortList)) return false; for (int i = 0;i < fEnumerationSize; i++) if (fEnumeration[i].itemValueTypes == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumeration[index].itemValueTypes; } }; } return fEnumerationItemTypeList; }
Example #15
Source File: XSSimpleTypeDecl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #16
Source File: XSSimpleTypeDecl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #17
Source File: XSSimpleTypeDecl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #18
Source File: XSSimpleTypeDecl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #19
Source File: XSSimpleTypeDecl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #20
Source File: XSSimpleTypeDecl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #21
Source File: XSSimpleTypeDecl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #22
Source File: XSSimpleTypeDecl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns * null */ public ObjectList getEnumerationItemTypeList() { if (fEnumerationItemTypeList == null) { if(fEnumerationItemType == null) return null; fEnumerationItemTypeList = new AbstractObjectList() { public int getLength() { return (fEnumerationItemType != null) ? fEnumerationItemType.length : 0; } public boolean contains(Object item) { if(fEnumerationItemType == null || !(item instanceof ShortList)) return false; for(int i = 0;i < fEnumerationItemType.length; i++) if(fEnumerationItemType[i] == item) return true; return false; } public Object item(int index) { if (index < 0 || index >= getLength()) { return null; } return fEnumerationItemType[index]; } }; } return fEnumerationItemTypeList; }
Example #23
Source File: XSSimpleTypeDecl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ObjectList getEnumerationValues() { return avalues; }
Example #24
Source File: SchemaGrammar.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #25
Source File: SchemaGrammar.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #26
Source File: SchemaGrammar.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #27
Source File: SchemaGrammar.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #28
Source File: SchemaGrammar.java From hottub with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #29
Source File: SchemaGrammar.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }
Example #30
Source File: SchemaGrammar.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public synchronized ObjectList getComponentsExt(short objectType) { if (objectType <= 0 || objectType > MAX_COMP_IDX || !GLOBAL_COMP[objectType]) { return ObjectListImpl.EMPTY_LIST; } if (fComponentsExt == null) fComponentsExt = new ObjectList[MAX_COMP_IDX+1]; // get the hashtable for this type of components if (fComponentsExt[objectType] == null) { SymbolHash table = null; switch (objectType) { case XSConstants.TYPE_DEFINITION: case XSTypeDefinition.COMPLEX_TYPE: case XSTypeDefinition.SIMPLE_TYPE: table = fGlobalTypeDeclsExt; break; case XSConstants.ATTRIBUTE_DECLARATION: table = fGlobalAttrDeclsExt; break; case XSConstants.ELEMENT_DECLARATION: table = fGlobalElemDeclsExt; break; case XSConstants.ATTRIBUTE_GROUP: table = fGlobalAttrGrpDeclsExt; break; case XSConstants.MODEL_GROUP_DEFINITION: table = fGlobalGroupDeclsExt; break; case XSConstants.NOTATION_DECLARATION: table = fGlobalNotationDeclsExt; break; case XSConstants.IDENTITY_CONSTRAINT: table = this.fGlobalIDConstraintDeclsExt; break; } Object[] entries = table.getEntries(); fComponentsExt[objectType] = new ObjectListImpl(entries, entries.length); } return fComponentsExt[objectType]; }