/** * Retrieves all the SAMLObjects that have given schema type or element name. * * @param typeOrName the schema type or element name * * @return list of SAMLObjects that have given schema type or element name, which may be empty. * Will not be null. */ public List<ElementType> get(QName typeOrName) { checkAndCreateIndex(typeOrName); return objectIndex.get(typeOrName); }
/** * Retrieves all the SAMLObjects that have given schema type or element name. * * @param typeOrName the schema type or element name * * @return list of SAMLObjects that have given schema type or element name, which may be empty. * Will not be null. */ public List<ElementType> get(QName typeOrName) { checkAndCreateIndex(typeOrName); return objectIndex.get(typeOrName); }
/** * Returns a view of the list that only contains elements stored under the given index. The returned list is backed * by this list so and supports all optional operations, so changes made to the returned list are reflected in this * list. * * @param index index of the elements returned in the list view * * @return a view of this list that contains only the elements stored under the given index */ public List<? extends ElementType> subList(QName index) { checkAndCreateIndex(index); return new ListView<ElementType>(this, index); } }
/** * Returns a view of the list that only contains elements stored under the given index. The returned list is backed * by this list so and supports all optional operations, so changes made to the returned list are reflected in this * list. * * @param index index of the elements returned in the list view * * @return a view of this list that contains only the elements stored under the given index */ public List<? extends ElementType> subList(QName index) { checkAndCreateIndex(index); return new ListView<ElementType>(this, index); } }