public SchemaField get_attribute_field(QName attrName) { SchemaAttributeModel model = schemaType().getAttributeModel(); if (model == null) return null; return model.getAttribute(attrName); }
/** * Called by code generated code to get the default attribute value * for a given attribute name, or null if none. */ protected XmlAnySimpleType get_default_attribute_value(QName name) { SchemaType sType = schemaType(); SchemaAttributeModel aModel = sType.getAttributeModel(); if (aModel == null) return null; SchemaLocalAttribute sAttr = aModel.getAttribute(name); if (sAttr == null) return null; return sAttr.getDefaultValue(); } }
public synchronized SchemaField getContainerField() { if (_containerFieldCode != -1) { SchemaType outer = getOuterType(); if (_containerFieldCode == 0) _containerField = _containerFieldRef == null ? null : (SchemaField)_containerFieldRef.getComponent(); else if (_containerFieldCode == 1) _containerField = outer.getAttributeModel().getAttributes()[_containerFieldIndex]; else _containerField = ((SchemaTypeImpl)outer).getLocalElementByIndex(_containerFieldIndex); _containerFieldCode = -1; } return _containerField; }
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(); }
state._attrModel = type.getAttributeModel();
if (ENC_ARRAYTYPE.equals(attr.getName())) SOAPArrayType arrayType = ((SchemaWSDLArrayType)stype.getAttributeModel().getAttribute(attr.getName())).getWSDLArrayType(); if (arrayType != null) xmlc.insertAttributeWithValue(attr.getName(), formatQName(xmlc, arrayType.getQName()) + arrayType.soap11DimensionString());
attrModel = new SchemaAttributeModelImpl(baseType.getAttributeModel()); translateAttributeModel(parseTree, targetNamespace, chameleon, sImpl.getAttFormDefault(), anonymousTypes, sImpl, null, attrModel, baseType, true, null);
public SchemaField get_attribute_field(QName attrName) { SchemaAttributeModel model = schemaType().getAttributeModel(); if (model == null) return null; return model.getAttribute(attrName); }
public SchemaField get_attribute_field(QName attrName) { SchemaAttributeModel model = schemaType().getAttributeModel(); if (model == null) return null; return model.getAttribute(attrName); }
/** * Called by code generated code to get the default attribute value * for a given attribute name, or null if none. */ protected XmlAnySimpleType get_default_attribute_value(QName name) { SchemaType sType = schemaType(); SchemaAttributeModel aModel = sType.getAttributeModel(); if (aModel == null) return null; SchemaLocalAttribute sAttr = aModel.getAttribute(name); if (sAttr == null) return null; return sAttr.getDefaultValue(); } }
/** * Called by code generated code to get the default attribute value * for a given attribute name, or null if none. */ protected XmlAnySimpleType get_default_attribute_value(QName name) { SchemaType sType = schemaType(); SchemaAttributeModel aModel = sType.getAttributeModel(); if (aModel == null) return null; SchemaLocalAttribute sAttr = aModel.getAttribute(name); if (sAttr == null) return null; return sAttr.getDefaultValue(); } }
attrModel = new SchemaAttributeModelImpl(); else attrModel = new SchemaAttributeModelImpl(baseType.getAttributeModel()); translateAttributeModel(parseTree, targetNamespace, chameleon, sImpl.getAttFormDefault(), anonymousTypes, sImpl, null, attrModel, baseType, false, null);
SchemaAttributeModel baseModel = null; if (baseType != null) baseModel = baseType.getAttributeModel();
public synchronized SchemaField getContainerField() { if (_containerFieldCode != -1) { SchemaType outer = getOuterType(); if (_containerFieldCode == 0) _containerField = _containerFieldRef == null ? null : (SchemaField)_containerFieldRef.getComponent(); else if (_containerFieldCode == 1) _containerField = outer.getAttributeModel().getAttributes()[_containerFieldIndex]; else _containerField = ((SchemaTypeImpl)outer).getLocalElementByIndex(_containerFieldIndex); _containerFieldCode = -1; } return _containerField; }
public synchronized SchemaField getContainerField() { if (_containerFieldCode != -1) { SchemaType outer = getOuterType(); if (_containerFieldCode == 0) _containerField = _containerFieldRef == null ? null : (SchemaField)_containerFieldRef.getComponent(); else if (_containerFieldCode == 1) _containerField = outer.getAttributeModel().getAttributes()[_containerFieldIndex]; else _containerField = ((SchemaTypeImpl)outer).getLocalElementByIndex(_containerFieldIndex); _containerFieldCode = -1; } return _containerField; }
attrModel = new SchemaAttributeModelImpl(); else attrModel = new SchemaAttributeModelImpl(baseType.getAttributeModel()); translateAttributeModel(parseTree, targetNamespace, chameleon, sImpl.getAttFormDefault(), anonymousTypes, sImpl, null, attrModel, baseType, false, null);
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(); }
attrModel = new SchemaAttributeModelImpl(); else attrModel = new SchemaAttributeModelImpl(baseType.getAttributeModel()); translateAttributeModel(parseTree, targetNamespace, chameleon, sImpl.getAttFormDefault(), anonymousTypes, sImpl, null, attrModel, baseType, true, null);
SchemaAttributeModel attrModel = type.getAttributeModel(); SchemaLocalAttribute[] attrs = attrModel.getAttributes();