Class DataReference

java.lang.Object
com.bea.wcp.diameter.sh.DataReference

public class DataReference extends Object
Supported Sh data reference types.
Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  • Field Details

  • Method Details

    • getByName

      public static DataReference getByName(String name)
      Returns the DataReference for the specified name.
      Parameters:
      name - the data reference name
      Returns:
      the corresponding DataReference, or null if none
    • getByCode

      public static DataReference getByCode(int code)
      Returns the DataReference for the specified numeric code.
      Parameters:
      code - the data reference code
      Returns:
      the associated DataReference, or null if none
    • parseParameter

      public Object parseParameter(String[] selector)
      Parses optional document selector parameter according to data reference type.
      Parameters:
      selector - the document selector
      Returns:
      the resulting parameter object, or null if none
    • getCode

      public int getCode()
      Returns the numeric code for this DataReference.
      Returns:
      the DataReference code
    • getName

      public String getName()
      Return the name of this DataReference. The name is used when specifying a document selector string.
      Returns:
      the DataReference name
    • getParameterName

      public String getParameterName(Object param)
    • isValid

      public boolean isValid(Command cmd)
      Returns true if the specified Diameter command is valid for this particular data reference.
      Parameters:
      cmd - the Diameter command
      Returns:
      true if command is valid for this data reference, false otherwise
    • canSubscribe

      public boolean canSubscribe()
    • getParameter

      public Object getParameter(Avp avp) throws AvpException
      Decodes parameter from specified parameter avp.
      Throws:
      AvpException
    • addAvps

      public void addAvps(AvpList avps, Object param)
    • toString

      public String toString()
      Overrides:
      toString in class Object