net.geant.edugain.meta.metadata
Class HLPattern

java.lang.Object
  extended by net.geant.edugain.meta.metadata.HLPattern

public class HLPattern
extends java.lang.Object

This class contains a representation of an eduGAIN Home Locator Pattern to be included in the published metadata

Author:
Manuela Stanica

Field Summary
static java.lang.String EXACT_MATCH
          URN value of the 'exact match' type of matching algorithm
static java.lang.String HLP_NAME
          Name constant for the HLPattern element
private  java.lang.String hlType
          Home locator type for this pattern
static java.lang.String MATCH_ALGO_NAME
          Name constant for the matching algorithm attribute
private  java.lang.String matchingAlgo
          Matching algorithm for this pattern
static java.lang.String POSTFIX
          URN value of the 'postfix' type of matching algorithm
static java.lang.String PREFIX
          URN value of the 'prefix' type of matching algorithm
static java.lang.String REGEXP
          URN value of the 'regexp' type of matching algorithm
static java.lang.String TYPE_NAME
          Name constant for the type attribute
private  java.lang.String value
          Value of the pattern
static java.lang.String VALUE_NAME
          Name constant for the value attribute
 
Constructor Summary
HLPattern()
          Constructor
HLPattern(java.lang.String type, java.lang.String matchAlgo, java.lang.String val)
          Constructor
 
Method Summary
 java.lang.String getHlType()
          Gets the home locator type for this pattern
 java.lang.String getMatchingAlgo()
          Gets the matching algorithm for this pattern
 java.lang.String getValue()
          Gets the value of this pattern
 void setHlType(java.lang.String hlType)
          Sets the home locator type for this pattern
 void setMatchingAlgo(java.lang.String matchingAlgo)
          Sets the matching algorithm for this pattern
 void setValue(java.lang.String value)
          Sets the value of this pattern
 java.lang.String toString()
          Gets the query string used for publishing the pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

matchingAlgo

private java.lang.String matchingAlgo
Matching algorithm for this pattern


value

private java.lang.String value
Value of the pattern


hlType

private java.lang.String hlType
Home locator type for this pattern


HLP_NAME

public static final java.lang.String HLP_NAME
Name constant for the HLPattern element

See Also:
Constant Field Values

TYPE_NAME

public static final java.lang.String TYPE_NAME
Name constant for the type attribute

See Also:
Constant Field Values

MATCH_ALGO_NAME

public static final java.lang.String MATCH_ALGO_NAME
Name constant for the matching algorithm attribute

See Also:
Constant Field Values

VALUE_NAME

public static final java.lang.String VALUE_NAME
Name constant for the value attribute

See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
URN value of the 'prefix' type of matching algorithm

See Also:
Constant Field Values

POSTFIX

public static final java.lang.String POSTFIX
URN value of the 'postfix' type of matching algorithm

See Also:
Constant Field Values

REGEXP

public static final java.lang.String REGEXP
URN value of the 'regexp' type of matching algorithm

See Also:
Constant Field Values

EXACT_MATCH

public static final java.lang.String EXACT_MATCH
URN value of the 'exact match' type of matching algorithm

See Also:
Constant Field Values
Constructor Detail

HLPattern

public HLPattern()
Constructor


HLPattern

public HLPattern(java.lang.String type,
                 java.lang.String matchAlgo,
                 java.lang.String val)
Constructor

Parameters:
type - the HL Pattern type
matchAlgo - the matching algortihm for thie HL Pattern
val - the value of this HL Pattern
Method Detail

toString

public java.lang.String toString()
Gets the query string used for publishing the pattern

Overrides:
toString in class java.lang.Object

getMatchingAlgo

public java.lang.String getMatchingAlgo()
Gets the matching algorithm for this pattern

Returns:
the matching algorithm for this pattern

setMatchingAlgo

public void setMatchingAlgo(java.lang.String matchingAlgo)
Sets the matching algorithm for this pattern

Parameters:
matchingAlgo - the matching algorithm for this pattern

getValue

public java.lang.String getValue()
Gets the value of this pattern

Returns:
the value of this pattern

setValue

public void setValue(java.lang.String value)
Sets the value of this pattern

Parameters:
value - the value of this pattern

getHlType

public java.lang.String getHlType()
Gets the home locator type for this pattern

Returns:
the home locator type for this pattern

setHlType

public void setHlType(java.lang.String hlType)
Sets the home locator type for this pattern

Parameters:
hlType - the home locator type for this pattern