public String getSourceName() { if (_filename != null) return _filename; if (getOuterType() != null) return getOuterType().getSourceName(); SchemaField field = getContainerField(); if (field != null) { if (field instanceof SchemaGlobalElement) return ((SchemaGlobalElement)field).getSourceName(); if (field instanceof SchemaGlobalAttribute) return ((SchemaGlobalAttribute)field).getSourceName(); } return null; }
sourceName = ((SchemaType)foundComponent).getSourceName(); break; case SchemaComponent.ELEMENT:
if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject());
private void testAndAddType(HashSet deps, SchemaType itype) { if (itype != null && !itype.isPrimitiveType() && itype.getSourceName() != null) { deps.add(new XmlBeansType(itype)); } }
public Element getSchema(XmlBeansType xbeanType) String name = type.getSourceName(); if (name == null) return null;
public String getSourceName() { if (_filename != null) return _filename; if (getOuterType() != null) return getOuterType().getSourceName(); SchemaField field = getContainerField(); if (field != null) { if (field instanceof SchemaGlobalElement) return ((SchemaGlobalElement)field).getSourceName(); if (field instanceof SchemaGlobalAttribute) return ((SchemaGlobalAttribute)field).getSourceName(); } return null; }
if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject());
public String getSourceName() { if (_filename != null) return _filename; if (getOuterType() != null) return getOuterType().getSourceName(); SchemaField field = getContainerField(); if (field != null) { if (field instanceof SchemaGlobalElement) return ((SchemaGlobalElement)field).getSourceName(); if (field instanceof SchemaGlobalAttribute) return ((SchemaGlobalAttribute)field).getSourceName(); } return null; }
sourceName = ((SchemaType)foundComponent).getSourceName(); break; case SchemaComponent.ELEMENT:
if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _redefinedGlobalTypes.get(redefined)).getSourceName() } , type.getParseObject()); if (_mdefAll) { warning(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject()); } else { error(XmlErrorCodes.SCHEMA_PROPERTIES$DUPLICATE, new Object[] { "global type", QNameHelper.pretty(name), ((SchemaType) _globalTypes.get(name)).getSourceName() }, type.getParseObject());
sourceName = ((SchemaType)foundComponent).getSourceName(); break; case SchemaComponent.ELEMENT:
String sourceName = st.getSourceName(); XmlSchema schema = getSchema(sts, sourceName); if (schema != null) {
writeString(type.getSourceName());
writeString(type.getSourceName());
writeString(type.getSourceName());