Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.schema
Class PredicateRef

java.lang.Object
  extended by org.openliberty.arisid.schema.schemaRef
      extended by org.openliberty.arisid.schema.PredicateRef

public class PredicateRef
extends schemaRef

A class used to define references to predicates defined in CARML DataDefs declaration and accessible via the SchemaManager.

This class tracks optionality, policy, and use description in connection with a reference to a PredicateDef object.


Field Summary
static java.lang.String REF_ELEMENT
           
 
Constructor Summary
PredicateRef(org.w3c.dom.Node node)
           
PredicateRef(java.lang.String predRef, java.lang.String policyRef, boolean optional, java.lang.String description)
          Constructor to define a reference to a predicate defined in the SchemaManager
 
Method Summary
 void appendChildren(org.w3c.dom.Node parent)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openliberty.arisid.schema.schemaRef
getDescription, getNameRef, getPolicyRef, isOptional
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REF_ELEMENT

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

PredicateRef

public PredicateRef(org.w3c.dom.Node node)

PredicateRef

public PredicateRef(java.lang.String predRef,
                    java.lang.String policyRef,
                    boolean optional,
                    java.lang.String description)
Constructor to define a reference to a predicate defined in the SchemaManager

Parameters:
predRef - A String identifier corresponding to the value returned by baseAttribute.getNameId().
policyRef - A String reference to a policy defined in the SchemaManager
optional - A boolean indicating whether the predicate is optional
description - A description of the use of the predicate or null.
Method Detail

appendChildren

public void appendChildren(org.w3c.dom.Node parent)
Overrides:
appendChildren in class schemaRef

toString

public java.lang.String toString()
Overrides:
toString in class schemaRef

OpenLiberty.org - Licensed under Apache APL 2.0