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 void setShortJavaName(String name) { assertResolved(); _shortJavaName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaName() == null) outer = outer.getOuterType(); _fullJavaName = outer.getFullJavaName() + "$" + _shortJavaName; }
public void setShortJavaImplName(String name) { assertResolved(); _shortJavaImplName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaImplName() == null) outer = outer.getOuterType(); _fullJavaImplName = outer.getFullJavaImplName() + "$" + _shortJavaImplName; }
scanOuterType = scanOuterType.getOuterType() ) scanOuterType = scanOuterType.getOuterType() )
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(); }
if (sType.isNoType() || sType.getOuterType() == null) SchemaType outerType = sType.getOuterType(); SchemaField container = sType.getContainerField();
while (t.getOuterType() != null) t = t.getOuterType(); if (t.isDocumentType()) hasNS = t.getDocumentElementName().getNamespaceURI().length() > 0;
while (t.getOuterType() != null) t = t.getOuterType(); if (t.isDocumentType()) hasNS = t.getDocumentElementName().getNamespaceURI().length() > 0;
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 ""; }
public void setShortJavaName(String name) { assertResolved(); _shortJavaName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaName() == null) outer = outer.getOuterType(); _fullJavaName = outer.getFullJavaName() + "$" + _shortJavaName; }
public void setShortJavaName(String name) { assertResolved(); _shortJavaName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaName() == null) outer = outer.getOuterType(); _fullJavaName = outer.getFullJavaName() + "$" + _shortJavaName; }
public void setShortJavaImplName(String name) { assertResolved(); _shortJavaImplName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaImplName() == null) outer = outer.getOuterType(); _fullJavaImplName = outer.getFullJavaImplName() + "$" + _shortJavaImplName; }
public void setShortJavaImplName(String name) { assertResolved(); _shortJavaImplName = name; SchemaType outer = _outerSchemaTypeRef.get(); while (outer.getFullJavaImplName() == null) outer = outer.getOuterType(); _fullJavaImplName = outer.getFullJavaImplName() + "$" + _shortJavaImplName; }
if (org.apache.axis2.namespace.Constants.BASE_64_CONTENT_QNAME .equals(sType.getPrimitiveType().getName())) { outerType = sType.getOuterType();
if (org.apache.axis2.namespace.Constants.BASE_64_CONTENT_QNAME .equals(sType.getPrimitiveType().getName())) { outerType = sType.getOuterType();
void writeTypeData(SchemaType type) writeType(type.getOuterType()); writeShort(((SchemaTypeImpl)type).getBaseDepth()); writeType(type.getBaseType()); else if (type.getOuterType().isAttributeType() || type.getOuterType().isDocumentType()) writeShort(((SchemaTypeImpl)type.getOuterType()).getIndexForLocalAttribute((SchemaLocalAttribute)type.getContainerField())); writeShort(((SchemaTypeImpl)type.getOuterType()).getIndexForLocalElement((SchemaLocalElement)type.getContainerField()));
public QName getSchemaType() { if (schemaType.isDocumentType()) return schemaType.getDocumentElementName(); else if (schemaType.getName() != null) return schemaType.getName(); else { // No name for this type, use outer type (and recur up if same) SchemaType outer = schemaType.getOuterType(); while (outer != null) { if (outer.isDocumentType()) return outer.getDocumentElementName(); else if (outer.getName() != null) return outer.getName(); else outer = outer.getOuterType(); } // No outer type, no type on this, should not be possible, so explode throw new XFireRuntimeException("No type name is defined for <" + schemaType + "> " + "and no outer type containing the inline type -- this " + "should not be possible to be a legally defined schema"); } }
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(); }