All Downloads are FREE. Search and download functionalities are using the official Maven repository.

doc.com.rallydev.rest.util.Ref.html Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version





Ref (Rally Rest API for Java 2.1)











com.rallydev.rest.util

Class Ref



  • public class Ref
    extends Object
    Provides utility methods for working with ref URLs.
    • Constructor Detail

      • Ref

        public Ref()
    • Method Detail

      • isRef

        public static boolean isRef(String ref)
        Determine whether the specified string is a valid ref url.
        Parameters:
        ref - the string to be tested. May be either absolute or relative, e.g. /defect/1234
        Returns:
        whether the specified string is a valid ref url
      • getRelativeRef

        public static String getRelativeRef(String ref)
        Create a relative ref url from the specified ref
        Parameters:
        ref - the ref url to be made relative
        Returns:
        the relative ref url or null if the specified ref was not valid
      • getTypeFromRef

        public static String getTypeFromRef(String ref)
        Get the type from the specified ref url
        Parameters:
        ref - the ref url to extract the type from
        Returns:
        the extracted type or null if the specified ref was not valid
      • getOidFromRef

        public static String getOidFromRef(String ref)
        Get the ObjectID from the specified ref url
        Parameters:
        ref - the ref url to extract the ObjectID from
        Returns:
        the extracted ObjectID or null if the specified ref was not valid




© 2015 - 2025 Weber Informatics LLC | Privacy Policy