org.apache.stanbol.entityhub.jersey.grefine
Class ReconcileProperty

java.lang.Object
  extended by org.apache.stanbol.entityhub.jersey.grefine.ReconcileProperty

public class ReconcileProperty
extends Object

Special properties are used by this Google Refine Reconciliation API implementation to enable Users to use special features of the Entityhub The Syntax used by those properties is

Author:
Rupert Westenthaler

Field Summary
static char SPECAIL_PROPERTY_VALUE_SEPARATOR
           
static char SPECIAL_PROPERTY_PREFIX
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          Getter for the name of the property
 String getParameter()
          Getter for the parameter
 int hashCode()
           
 boolean hasParameter()
          Checks if this special property has a value or not.
 boolean isSpecial()
          If this reconcile property is a special property (starting with an '@')
static boolean isSpecialProperty(String propertyString)
          Tests if the parsed name represents a specail property
static ReconcileProperty parseProperty(String propertyString, org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nxPrefixService)
          Parses the Reconcile property from the parsed propertyString
 String toString()
          Serialised the ReconcileProperty as defined by the syntax
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SPECIAL_PROPERTY_PREFIX

public static final char SPECIAL_PROPERTY_PREFIX
See Also:
Constant Field Values

SPECAIL_PROPERTY_VALUE_SEPARATOR

public static final char SPECAIL_PROPERTY_VALUE_SEPARATOR
See Also:
Constant Field Values
Method Detail

isSpecialProperty

public static boolean isSpecialProperty(String propertyString)
Tests if the parsed name represents a specail property

Parameters:
name - the name
Returns:
true if the parsed propertyString is not null, not empty and starts with SPECIAL_PROPERTY_PREFIX. Otherwise false

parseProperty

public static ReconcileProperty parseProperty(String propertyString,
                                              org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nxPrefixService)
Parses the Reconcile property from the parsed propertyString

Parameters:
propertyString - the property string
Returns:
the ReconcileProperty or null if the parsed String is illegal formatted.

getName

public String getName()
Getter for the name of the property

Returns:
the name

getParameter

public String getParameter()
Getter for the parameter

Returns:
the value or null if none

hasParameter

public boolean hasParameter()
Checks if this special property has a value or not.

Returns:
if the special property has a value or not.

isSpecial

public boolean isSpecial()
If this reconcile property is a special property (starting with an '@')

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Serialised the ReconcileProperty as defined by the syntax

Overrides:
toString in class Object


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.