Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.rules.model
Class AddSegmentModel

    java.lang.Object
      com.bea.p13n.model.Model
          com.bea.p13n.model.XmlObjectModel
              com.bea.p13n.rules.model.ClauseModel
                  com.bea.p13n.rules.model.AddSegmentModel

All Implemented Interfaces
  Serializable, Cloneable

    public class AddSegmentModel

extends ClauseModel

A clause model representing the assertion of a user segment (a.k.a Classification).

See Also
  Serialized Form

Nested Class Summary
`static class` | `AddSegmentModel.Recognizer` An object which can recognize this kind of xml structure.

Nested classes/interfaces inherited from class com.bea.p13n.model.Model
`Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug`

Field Summary
`static String` | `CLAUSE_TYPE` The standard clause type for this clause model.
`static String` | `RULE_TYPE` The rule type for a rule that has this model as an action.

Fields inherited from class com.bea.p13n.rules.model.ClauseModel
`clauseType`

Fields inherited from class com.bea.p13n.model.XmlObjectModel
`copyRootXmlObject, instanceUri, isComplete`

Fields inherited from class com.bea.p13n.model.Model
`childrenModels, docModel, parentModel, roChildrenModels`

Constructor Summary
`AddSegmentModel()`

Method Summary
`void` | `clearCachedData()` Clear any cached data we're holding.
`org.apache.xmlbeans.XmlObject` | `createNewXmlObject(String clauseType)` Create a new, empty root xml object for kind of clause model.
`protected boolean` | `determineIsComplete()` This is complete is it has a non-zero length segment name.
`com.bea.p13n.rules.schema.extensions.AddClassificationObjectDocument.AddClassificationObject` | `getAddClassificationObject()` Get the typed root element.
`protected org.apache.xmlbeans.XmlObject` | `getCopyXmlObject()` Create a copy XmlObject of our root xml object.
`String` | `getName()` Get the name of the segment.
`void` | `setName(String name)` Set the name of the segment.
`void` | `setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause)` Set the root xml object (should be AddClassificationObject).

Methods inherited from class com.bea.p13n.rules.model.ClauseModel
`addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, initializeNew, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, toString`

Methods inherited from class com.bea.p13n.model.XmlObjectModel
`checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, setIsComplete, setIsComplete, setParent, setRootXmlObject`

Methods inherited from class com.bea.p13n.model.Model
`addChangeListener, addChild, addChild, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### CLAUSE_TYPE

    public static final String CLAUSE_TYPE

  The standard clause type for this clause model.

  See Also
    Constants Summary

### RULE_TYPE

    public static final String RULE_TYPE

  The rule type for a rule that has this model as an action.

  See Also
    Constants Summary

Constructor Detail

### AddSegmentModel

    public AddSegmentModel()

Method Detail

### setXmlObject

    public void setXmlObject(String clauseType,
                             org.apache.xmlbeans.XmlObject clause)

  Set the root xml object (should be AddClassificationObject).

  Overrides:
    `setXmlObject` in class `ClauseModel`
  Parameters
    `clauseType` - the clause type of the clause.
    `clause` - the root xml object of the clause.
  Throws
    `IllegalArgumentException` - on wrong clause.

### getAddClassificationObject

    public com.bea.p13n.rules.schema.extensions.AddClassificationObjectDocument.AddClassificationObject getAddClassificationObject()

  Get the typed root element.

### getCopyXmlObject

    protected org.apache.xmlbeans.XmlObject getCopyXmlObject()

  Create a copy XmlObject of our root xml object.

  Overrides:
    `getCopyXmlObject` in class `ClauseModel`
  See Also
    `ClauseModel.makeSafeCopy(XmlObject)`

### createNewXmlObject

    public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType)

  Create a new, empty root xml object for kind of clause model.

  Specified by:
    `createNewXmlObject` in class `ClauseModel`
  Parameters
    `clauseType` - the clause type of the clause.
  Returns
    a new, empty initialize root object.

### clearCachedData

    public void clearCachedData()

  Clear any cached data we're holding.

  Specified by:
    `clearCachedData` in class `XmlObjectModel`

### getName

    public String getName()

  Get the name of the segment. This will never be null. Empty string means it's not set.

### setName

    public void setName(String name)

  Set the name of the segment. This will never be null. Empty string means it's not set.

### determineIsComplete

    protected boolean determineIsComplete()

  This is complete is it has a non-zero length segment name.

  Overrides:
    `determineIsComplete` in class `XmlObjectModel`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.