/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.qmf2.common;
// Misc Imports
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Subclass of SchemaClass
*
* Agent applications may dynamically construct instances of these objects by adding properties at run
* time. However, once the Schema is made public, it must be considered immutable, as the hash value
* must be constant once the Schema is in use.
*
* Note that QMF2 API suggests that the
* properties are represented by an unordered map of SchemaProperty entries indexed by property name, however
* these are actually represented in the QMF2 protocol as a "List of SCHEMA_PROPERTY elements that describe the
* schema event's properties.
*
* In this implementation getProperties() returns a {@code List} reflecting the reality of the protocol
* rather than what is suggested by the API documentation.
*
* @author Fraser Adams
*/
public final class SchemaEventClass extends SchemaClass
{
private List _properties = new ArrayList();
/**
* The main constructor, taking a java.util.Map as a parameter.
*
* @param m the map used to construct the SchemaEventClass
*/
public SchemaEventClass(final Map m)
{
super(m);
if (m != null)
{
List