/** * Get the local name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeName() { return schemaType.getStructuredQName().getLocalPart(); }
/** * Get the local name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeName() { return schemaType.getStructuredQName().getLocalPart(); }
/** * Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeNamespace() { return schemaType.getStructuredQName().getURI(); }
/** * Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeNamespace() { return schemaType.getStructuredQName().getURI(); }
/** * Get the name of the type, if it has one * @return the name of the type, or null if it is either an anonymous schema-defined type, * or an XDM-defined type such as node() or map(). * @since 9.7 */ public QName getTypeName() { net.sf.saxon.type.ItemType type = getUnderlyingItemType(); if (type instanceof SchemaType) { StructuredQName name = ((SchemaType)type).getStructuredQName(); return name==null ? null : new QName(name); } else { return null; } }
/** * Get the name of the type, if it has one * * @return the name of the type, or null if it is either an anonymous schema-defined type, * or an XDM-defined type such as node() or map(). * @since 9.7 */ public QName getTypeName() { net.sf.saxon.type.ItemType type = getUnderlyingItemType(); if (type instanceof SchemaType) { StructuredQName name = ((SchemaType) type).getStructuredQName(); return name == null ? null : new QName(name); } else { return null; } }
/** * Get a string representation of the type. This will be a string that conforms to the * XPath ItemType production, for example a QName (always in "Q{uri}local" format, or a construct * such as "node()" or "map(*)". If the type is an anonymous schema type, the name of the nearest * named base type will be given, preceded by the character "<". * @return a string representation of the type * @since 9.7 */ public String toString() { net.sf.saxon.type.ItemType type = getUnderlyingItemType(); if (type instanceof SchemaType) { String marker = ""; SchemaType st = (SchemaType)type; StructuredQName name = null; while (true) { name = st.getStructuredQName(); if (name != null) { return marker + name.getEQName(); } else { marker = "<"; st = st.getBaseType(); if (st == null) { return "Q{" + NamespaceConstant.SCHEMA + "}anyType"; } } } } else { return type.toString(); } }
StructuredQName name = null; while (true) { name = st.getStructuredQName(); if (name != null) { return marker + name.getEQName();
protected void exportValidationAndType(ExpressionPresenter out) { if (getValidationAction() != Validation.SKIP && getValidationAction() != Validation.BY_TYPE) { out.emitAttribute("validation", Validation.toString(getValidationAction())); } if (getValidationAction() == Validation.BY_TYPE) { SchemaType type = getSchemaType(); if (type != null) { out.emitAttribute("type", type.getStructuredQName()); } } }
protected void exportValidationAndType(ExpressionPresenter out) { if (getValidationAction() != Validation.SKIP && getValidationAction() != Validation.BY_TYPE) { out.emitAttribute("validation", Validation.toString(getValidationAction())); } if (getValidationAction() == Validation.BY_TYPE) { SchemaType type = getSchemaType(); if (type != null) { out.emitAttribute("type", type.getStructuredQName()); } } }
out.emitAttribute("type", schemaType.getStructuredQName());
out.emitAttribute("type", schemaType.getStructuredQName());
out.emitAttribute("type", schemaType.getStructuredQName());
out.emitAttribute("type", schemaType.getStructuredQName());
out.emitAttribute("schemaType", schemaType.getStructuredQName());
out.emitAttribute("schemaType", schemaType.getStructuredQName());
out.emitAttribute("type", schemaType.getStructuredQName());
SchemaType type = mergeSource.schemaType; if (type != null) { out.emitAttribute("type", type.getStructuredQName());
SchemaType type = mergeSource.schemaType; if (type != null) { out.emitAttribute("type", type.getStructuredQName());
out.emitAttribute("type", schemaType.getStructuredQName());