public static String namespace(SchemaType sType) { while (sType != null) { if (sType.getName() != null) return sType.getName().getNamespaceURI(); if (sType.getContainerField() != null && sType.getContainerField().getName().getNamespaceURI().length() > 0) return sType.getContainerField().getName().getNamespaceURI(); sType = sType.getOuterType(); } return ""; }
private SchemaField schemaField() { SchemaType st = schemaType(); SchemaField field; // First check if this field has an anonymous type field = st.getContainerField(); if (field == null) field = get_store().get_schema_field(); return field; }
suffix = "AttrType"; else if (type.getContainerField() != null) name = type.getContainerField().getName(); suffix = type.getContainerField().isAttribute() ? "Attr" : "Elem";
for (int j = 0; j < subTypes.length; j++) SchemaField field = subTypes[j].getContainerField(); if (field != null && !field.isAttribute() && field.getName().getLocalPart().equals(localName)) for (int j = 0; j < subTypes.length; j++) SchemaField field = subTypes[j].getContainerField(); if (field != null && field.isAttribute() && field.getName().getLocalPart().equals(localName))
static QName findTopName(SchemaType sType) { if (sType.getName() != null) return sType.getName(); if (sType.isDocumentType()) { // A document type must have a content model consisting of a single elt if (sType.getContentModel() == null || sType.getContentModel().getParticleType() != SchemaParticle.ELEMENT) throw new IllegalStateException(); return (sType.getDocumentElementName()); } if (sType.isAttributeType()) { if (sType.getAttributeModel() == null || sType.getAttributeModel().getAttributes().length != 1) throw new IllegalStateException(); return sType.getAttributeTypeAttributeName(); } SchemaField sElt = sType.getContainerField(); assert(sElt != null); assert(sType.getOuterType() == null); return sElt.getName(); }
else if (sType.isAttributeType()) name = sType.getAttributeTypeAttributeName(); else if (sType.getContainerField() != null) name = sType.getContainerField().getName();
public static String namespace(SchemaType sType) { while (sType != null) { if (sType.getName() != null) return sType.getName().getNamespaceURI(); if (sType.getContainerField() != null && sType.getContainerField().getName().getNamespaceURI().length() > 0) return sType.getContainerField().getName().getNamespaceURI(); sType = sType.getOuterType(); } return ""; }
public static String namespace(SchemaType sType) { while (sType != null) { if (sType.getName() != null) return sType.getName().getNamespaceURI(); if (sType.getContainerField() != null && sType.getContainerField().getName().getNamespaceURI().length() > 0) return sType.getContainerField().getName().getNamespaceURI(); sType = sType.getOuterType(); } return ""; }
SchemaField container = sType.getContainerField();
private SchemaField schemaField() { SchemaType st = schemaType(); SchemaField field; // First check if this field has an anonymous type field = st.getContainerField(); if (field == null) field = get_store().get_schema_field(); return field; }
private SchemaField schemaField() { SchemaType st = schemaType(); SchemaField field; // First check if this field has an anonymous type field = st.getContainerField(); if (field == null) field = get_store().get_schema_field(); return field; }
suffix = "AttrType"; else if (type.getContainerField() != null) name = type.getContainerField().getName(); suffix = type.getContainerField().isAttribute() ? "Attr" : "Elem";
suffix = "AttrType"; else if (type.getContainerField() != null) name = type.getContainerField().getName(); suffix = type.getContainerField().isAttribute() ? "Attr" : "Elem";
writeShort(type.getDerivationType()); writeAnnotation(type.getAnnotation()); if (type.getContainerField() == null) writeHandle((SchemaComponent)type.getContainerField()); else if (type.getContainerField().isAttribute()) writeShort(((SchemaTypeImpl)type.getOuterType()).getIndexForLocalAttribute((SchemaLocalAttribute)type.getContainerField())); writeShort(((SchemaTypeImpl)type.getOuterType()).getIndexForLocalElement((SchemaLocalElement)type.getContainerField()));
private void addSchemaParticle(SchemaParticle schemaParticle, SchemaTypeKey key, Map qnameMap) { if (schemaParticle.getParticleType() == SchemaParticle.ELEMENT) { SchemaType elementType = schemaParticle.getType(); SchemaField element = elementType.getContainerField();
static QName findTopName(SchemaType sType) { if (sType.getName() != null) return sType.getName(); if (sType.isDocumentType()) { // A document type must have a content model consisting of a single elt if (sType.getContentModel() == null || sType.getContentModel().getParticleType() != SchemaParticle.ELEMENT) throw new IllegalStateException(); return (sType.getDocumentElementName()); } if (sType.isAttributeType()) { if (sType.getAttributeModel() == null || sType.getAttributeModel().getAttributes().length != 1) throw new IllegalStateException(); return sType.getAttributeTypeAttributeName(); } SchemaField sElt = sType.getContainerField(); assert(sElt != null); assert(sType.getOuterType() == null); return sElt.getName(); }
static QName findTopName(SchemaType sType) { if (sType.getName() != null) return sType.getName(); if (sType.isDocumentType()) { // A document type must have a content model consisting of a single elt if (sType.getContentModel() == null || sType.getContentModel().getParticleType() != SchemaParticle.ELEMENT) throw new IllegalStateException(); return (sType.getDocumentElementName()); } if (sType.isAttributeType()) { if (sType.getAttributeModel() == null || sType.getAttributeModel().getAttributes().length != 1) throw new IllegalStateException(); return sType.getAttributeTypeAttributeName(); } SchemaField sElt = sType.getContainerField(); assert(sElt != null); assert(sType.getOuterType() == null); return sElt.getName(); }
else if (sType.isAttributeType()) name = sType.getAttributeTypeAttributeName(); else if (sType.getContainerField() != null) name = sType.getContainerField().getName();
else if (sType.isAttributeType()) name = sType.getAttributeTypeAttributeName(); else if (sType.getContainerField() != null) name = sType.getContainerField().getName();
SchemaField container = sType.getContainerField();