Package com.sun.corba.ee.impl.orb
Class ParserActionBase
- java.lang.Object
-
- com.sun.corba.ee.impl.orb.ParserActionBase
-
- All Implemented Interfaces:
ParserAction
- Direct Known Subclasses:
NormalParserAction,PrefixParserAction
public abstract class ParserActionBase extends java.lang.Object implements ParserAction
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfieldNameprivate Operationoperationprivate booleanprefixprivate java.lang.StringpropertyName
-
Constructor Summary
Constructors Constructor Description ParserActionBase(java.lang.String propertyName, boolean prefix, Operation operation, java.lang.String fieldName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Objectapply(java.util.Properties props)Apply this action to props and return the result.booleanequals(java.lang.Object obj)java.lang.StringgetFieldName()Return the field name in an object that is set with the resultprotected OperationgetOperation()java.lang.StringgetPropertyName()Return the property name or prefix for which this action is applied.inthashCode()booleanisPrefix()Return whether this action is for an exact match or a prefix match (true).
-
-
-
Field Detail
-
propertyName
private java.lang.String propertyName
-
prefix
private boolean prefix
-
operation
private Operation operation
-
fieldName
private java.lang.String fieldName
-
-
Constructor Detail
-
ParserActionBase
public ParserActionBase(java.lang.String propertyName, boolean prefix, Operation operation, java.lang.String fieldName)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getPropertyName
public java.lang.String getPropertyName()
Description copied from interface:ParserActionReturn the property name or prefix for which this action is applied.- Specified by:
getPropertyNamein interfaceParserAction- Returns:
- the property name or prefix.
-
isPrefix
public boolean isPrefix()
Description copied from interface:ParserActionReturn whether this action is for an exact match or a prefix match (true).- Specified by:
isPrefixin interfaceParserAction- Returns:
- true if this action is for an exact or prefix match.
-
getFieldName
public java.lang.String getFieldName()
Description copied from interface:ParserActionReturn the field name in an object that is set with the result- Specified by:
getFieldNamein interfaceParserAction- Returns:
- the field name
-
apply
public abstract java.lang.Object apply(java.util.Properties props)
Description copied from interface:ParserActionApply this action to props and return the result.- Specified by:
applyin interfaceParserAction- Parameters:
props- properties to apply action to- Returns:
- result of action
-
getOperation
protected Operation getOperation()
-
-