org.w3c.IsaViz.fresnel
Class FSLPath

java.lang.Object
  extended byorg.w3c.IsaViz.fresnel.FSLExpression
      extended byorg.w3c.IsaViz.fresnel.FSLPath

public class FSLPath
extends FSLExpression

FSL Path expression


Field Summary
static short ARC_STEP
          Location step type: arc
static short NODE_STEP
          Location step type: node
 
Fields inherited from class org.w3c.IsaViz.fresnel.FSLExpression
AND_EXPR, DIFF_EXPR, EQ_EXPR, FC_EXPR, INF_EXPR, INFEQ_EXPR, NUM_EXPR, OR_EXPR, PATH_EXPR, STR_EXPR, SUP_EXPR, SUPEQ_EXPR, type, TYPE_BOOLEAN, TYPE_NODE_ARC_SET, TYPE_NUMBER, TYPE_STRING
 
Constructor Summary
FSLPath()
          Constructs an empty FSL path
FSLPath(FSLLocationStep[] initialSteps)
          Constructs an FSL path made of the location steps given as parameters
 
Method Summary
 void appendLocationStep(FSLLocationStep ls)
          append a location step to the path (the ordering of node vs.
static FSLPath pathFactory(java.lang.String fslPath, FSLNSResolver nsr, short firstStepType)
          Instantiates a Java representation of the FSL path given as a String
 void removeLastLocationStep()
          remove last location step of the path
 java.lang.String serialize()
          Serialize the path - get a String representation of this FSL path
static void setNSResolver(FSLNSResolver nsr)
          Set the namespace prefix binding table
static java.lang.String[] splitQName(java.lang.String qname)
          Split a qualified name at the colon (e.g.
 java.lang.String toString()
          Serialize the path - get a String representation of this FSL path
 
Methods inherited from class org.w3c.IsaViz.fresnel.FSLExpression
getExpressionType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_STEP

public static short NODE_STEP
Location step type: node


ARC_STEP

public static short ARC_STEP
Location step type: arc

Constructor Detail

FSLPath

public FSLPath()
Constructs an empty FSL path


FSLPath

public FSLPath(FSLLocationStep[] initialSteps)
Constructs an FSL path made of the location steps given as parameters

Method Detail

pathFactory

public static FSLPath pathFactory(java.lang.String fslPath,
                                  FSLNSResolver nsr,
                                  short firstStepType)
Instantiates a Java representation of the FSL path given as a String

Parameters:
fslPath - the FSL path, represented as a String
nsr - an FSLNSResolver containing namespace prefix binding declarations for all prefixes used in the path expression
firstStepType - one of FSLPath.NODE_STEP or FSLPath.ARC_STEP, depending on whether the first location step of the path expression should be interpreted as a node or arc location step

setNSResolver

public static void setNSResolver(FSLNSResolver nsr)
Set the namespace prefix binding table


splitQName

public static java.lang.String[] splitQName(java.lang.String qname)
Split a qualified name at the colon (e.g. dc:title -> {dc, title})

Parameters:
qname - the qualified name to split

appendLocationStep

public void appendLocationStep(FSLLocationStep ls)
append a location step to the path (the ordering of node vs. arc steps is not checked)


removeLastLocationStep

public void removeLastLocationStep()
remove last location step of the path


serialize

public java.lang.String serialize()
Serialize the path - get a String representation of this FSL path

Specified by:
serialize in class FSLExpression

toString

public java.lang.String toString()
Serialize the path - get a String representation of this FSL path

Overrides:
toString in class FSLExpression


Copyright © 2005 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.