/** * Determine the data type of the items in the expression, if possible * * @param th The TypeHierarchy. * @return for the default implementation: AnyItemType (not known) */ /*@NotNull*/ public ItemType getItemType(/*@Nullable*/ TypeHierarchy th) { return th.getConfiguration().getJavaExternalObjectType(value.getClass()); }
/** * Determine the data type of the items in the expression, if possible * * @param th The TypeHierarchy. * @return for the default implementation: AnyItemType (not known) */ /*@NotNull*/ public ItemType getItemType(/*@Nullable*/ TypeHierarchy th) { return th.getConfiguration().getJavaExternalObjectType(value.getClass()); }
/** * Test whether a given item conforms to this type * * @param item The item to be tested * @param th the type hierarchy cache * @return true if the item is an instance of this type; false otherwise */ @Override public boolean matches(Item item, TypeHierarchy th) throws XPathException { return item instanceof Function && checkAnnotationAssertions(assertions, (Function) item, th.getConfiguration()); }
/** * Test whether a given item conforms to this type * * @param item The item to be tested * @param th the type hierarchy cache * @return true if the item is an instance of this type; false otherwise */ @Override public boolean matches(Item item, TypeHierarchy th) throws XPathException { return item instanceof Function && checkAnnotationAssertions(assertions, (Function) item, th.getConfiguration()); }
public ItemType getItemType(TypeHierarchy th) { return new ExternalObjectType(Object.class, th.getConfiguration()); }
public ItemType getItemType(TypeHierarchy th) { return new ExternalObjectType(Object.class, th.getConfiguration()); }
/** * Determine the data type of the items in the expression, if possible * * @param th The TypeHierarchy. * @return for the default implementation: AnyItemType (not known) */ public ItemType getItemType(TypeHierarchy th) { if (typeLabel.equals(BuiltInAtomicType.ANY_ATOMIC)) { if (th == null) { throw new NullPointerException("No TypeHierarchy supplied"); } else { Configuration config = th.getConfiguration(); typeLabel = new ExternalObjectType(value.getClass(), config); } } return typeLabel; }
/** * Determine the data type of the items in the expression, if possible * * @param th The TypeHierarchy. * @return for the default implementation: AnyItemType (not known) */ public ItemType getItemType(TypeHierarchy th) { if (typeLabel.equals(BuiltInAtomicType.ANY_ATOMIC)) { if (th == null) { throw new NullPointerException("No TypeHierarchy supplied"); } else { Configuration config = th.getConfiguration(); typeLabel = new ExternalObjectType(value.getClass(), config); } } return typeLabel; }
boolean isSchemaAware = true; if (!th.getConfiguration().isSchemaAware(Configuration.XML_SCHEMA)) { isSchemaAware = false;
Configuration config = th.getConfiguration(); if (getSchemaType() != null) { int e = th.relationship(selectItemType, NodeKindTest.ELEMENT);
Configuration config = th.getConfiguration(); if (getSchemaType() != null) { int e = th.relationship(selectItemType, NodeKindTest.ELEMENT);