org.topbraid.strings.classexpressions.labels
Class ClassExpressionsLabelsPlugin

java.lang.Object
  extended by org.topbraid.strings.classexpressions.labels.ClassExpressionsLabelsPlugin
All Implemented Interfaces:
ILabelsPlugin

public class ClassExpressionsLabelsPlugin
extends java.lang.Object
implements ILabelsPlugin


Field Summary
static java.lang.String ALL_VALUES_FROM
           
static java.lang.String AND
           
static java.lang.String CARDINALITY
           
static java.lang.String HAS_VALUE
           
static java.lang.String MAX_CARDINALITY
           
static java.lang.String MIN_CARDINALITY
           
static java.lang.String NOT
           
static java.lang.String OR
           
static java.lang.String SELF
           
static java.lang.String SOME_VALUES_FROM
           
static java.lang.String SPACE
           
static java.lang.String XOR
           
 
Constructor Summary
ClassExpressionsLabelsPlugin()
           
 
Method Summary
 void appendLabel(java.lang.StringBuffer buffer, com.hp.hpl.jena.rdf.model.RDFNode node, boolean multiLine)
           
 void appendNestedLabel(java.lang.StringBuffer buffer, com.hp.hpl.jena.rdf.model.RDFNode node, boolean multiLine)
           
 void appendSelfRestriction(java.lang.StringBuffer buffer, OWLSelfRestriction selfRestriction)
           
static java.lang.String getLabel(com.hp.hpl.jena.rdf.model.RDFNode node)
           
 boolean isKeyword(java.lang.String word)
          Checks if a given string is a keyword (such as 'max') in this plugin.
 boolean isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
          Checks if this plugin is suitable to render a given node into text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final java.lang.String AND
See Also:
Constant Field Values

NOT

public static final java.lang.String NOT
See Also:
Constant Field Values

OR

public static final java.lang.String OR
See Also:
Constant Field Values

XOR

public static final java.lang.String XOR
See Also:
Constant Field Values

SPACE

public static final java.lang.String SPACE
See Also:
Constant Field Values

ALL_VALUES_FROM

public static final java.lang.String ALL_VALUES_FROM
See Also:
Constant Field Values

CARDINALITY

public static final java.lang.String CARDINALITY
See Also:
Constant Field Values

HAS_VALUE

public static final java.lang.String HAS_VALUE
See Also:
Constant Field Values

MAX_CARDINALITY

public static final java.lang.String MAX_CARDINALITY
See Also:
Constant Field Values

MIN_CARDINALITY

public static final java.lang.String MIN_CARDINALITY
See Also:
Constant Field Values

SELF

public static final java.lang.String SELF
See Also:
Constant Field Values

SOME_VALUES_FROM

public static final java.lang.String SOME_VALUES_FROM
See Also:
Constant Field Values
Constructor Detail

ClassExpressionsLabelsPlugin

public ClassExpressionsLabelsPlugin()
Method Detail

appendLabel

public void appendLabel(java.lang.StringBuffer buffer,
                        com.hp.hpl.jena.rdf.model.RDFNode node,
                        boolean multiLine)
Specified by:
appendLabel in interface ILabelsPlugin

appendNestedLabel

public void appendNestedLabel(java.lang.StringBuffer buffer,
                              com.hp.hpl.jena.rdf.model.RDFNode node,
                              boolean multiLine)
Specified by:
appendNestedLabel in interface ILabelsPlugin

appendSelfRestriction

public void appendSelfRestriction(java.lang.StringBuffer buffer,
                                  OWLSelfRestriction selfRestriction)

getLabel

public static java.lang.String getLabel(com.hp.hpl.jena.rdf.model.RDFNode node)

isKeyword

public boolean isKeyword(java.lang.String word)
Description copied from interface: ILabelsPlugin
Checks if a given string is a keyword (such as 'max') in this plugin.

Specified by:
isKeyword in interface ILabelsPlugin
Parameters:
word - the word to check
Returns:
true if word is a keyword

isSuitable

public boolean isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
Description copied from interface: ILabelsPlugin
Checks if this plugin is suitable to render a given node into text.

Specified by:
isSuitable in interface ILabelsPlugin
Parameters:
node - the node to check
Returns:
true if this can create a string representation of the node