/** Constructor. */ public ItemCollectionWithMetadata() { delegate = new LazyList<>(); metadata = new ClassToInstanceMultiMap<>(true); }
/** Constructor. */ protected AbstractItem() { metadata = new ClassToInstanceMultiMap<>(true); }
/** * Constructor. * * @param owningObject the XMLObject whose namespace info is to be managed */ public NamespaceManager(@Nonnull final XMLObject owningObject) { owner = Constraint.isNotNull(owningObject, "Owner XMLObject cannot be null"); decls = new LazySet<>(); attrNames = new LazySet<>(); attrValues = new LazyMap<>(); }
/** Constructor. */ public ValidateUsernamePasswordAgainstJAAS() { // For compatibility with V2. loginConfigurations = Collections.singletonList(new Pair<String,Subject>("ShibUserPassAuth", null)); }
/** * Gets the {@link ItemMetadata} to be added to each {@link Item}'s item metadata. * * @param metadata the {@link ItemMetadata} to be added to each {@link Item}'s item metadata */ public void setAdditionalItemMetadata(@Nonnull final Collection<ItemMetadata> metadata) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(metadata, "additional metadata collection must not be null"); additionalItemMetadata = new LazyList<>(); CollectionSupport.addIf(additionalItemMetadata, metadata, Predicates.notNull()); }
/** Constructor. */ public WSSecurityContext() { super(); tokens = new LazyList<>(); }
/** * Constructor. * * @param parent the parent of the {@link XMLObject}s added to the list */ public IndexedXMLObjectChildrenList(@Nonnull final XMLObject parent) { super(parent); objectIndex = new LazyMap<>(); }
/** {@inheritDoc} */ @Override public Item<Element> copy() { final DOMElementItem clone = new DOMElementItem(unwrap()); ItemMetadataSupport.addAll(clone, getItemMetadata().values()); return clone; } }
/** * Constructor. * * @param newOwner the XMLObject that owns these attributes */ public AttributeMap(@Nonnull final XMLObject newOwner) { Constraint.isNotNull(newOwner, "Attribute owner XMLObject cannot be null"); attributeOwner = newOwner; attributes = new LazyMap<>(); idAttribNames = new LazySet<>(); qnameAttribNames = new LazySet<>(); }
/** * Constructor. * * @param parent the parent of the {@link XMLObject}s added to the list */ public IndexedXMLObjectChildrenList(@Nonnull final XMLObject parent) { super(parent); objectIndex = new LazyMap<>(); }
/** * Constructor. * * @param owningObject the XMLObject whose namespace info is to be managed */ public NamespaceManager(@Nonnull final XMLObject owningObject) { owner = Constraint.isNotNull(owningObject, "Owner XMLObject cannot be null"); decls = new LazySet<>(); attrNames = new LazySet<>(); attrValues = new LazyMap<>(); }
/** * Constructor. * * @param newStaticParameters static parameters for the validation evaluation */ public ValidationContext(Map<String, Object> newStaticParameters) { if (newStaticParameters == null) { staticParameters = Collections.unmodifiableMap(Collections.EMPTY_MAP); } else { staticParameters = Collections.unmodifiableMap(newStaticParameters); } dynamicParameters = new LazyMap<>(); }
/** * Constructor. * * @param newOwner the XMLObject that owns these attributes */ public AttributeMap(@Nonnull final XMLObject newOwner) { Constraint.isNotNull(newOwner, "Attribute owner XMLObject cannot be null"); attributeOwner = newOwner; attributes = new LazyMap<>(); idAttribNames = new LazySet<>(); qnameAttribNames = new LazySet<>(); }
/** * Constructor. * * @param newOwner the XMLObject which owns this ID-to-XMLObject index */ public IDIndex(@Nonnull final XMLObject newOwner) { Constraint.isNotNull(newOwner, "ID-owning XMLObject may not be null"); owner = newOwner; idMappings = new LazyMap<>(); }