org.apache.stanbol.entityhub.jersey.grefine

Class ReconcileProperty

    • 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

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