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.String
fieldName
private Operation
operation
private boolean
prefix
private java.lang.String
propertyName
-
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.Object
apply(java.util.Properties props)
Apply this action to props and return the result.boolean
equals(java.lang.Object obj)
java.lang.String
getFieldName()
Return the field name in an object that is set with the resultprotected Operation
getOperation()
java.lang.String
getPropertyName()
Return the property name or prefix for which this action is applied.int
hashCode()
boolean
isPrefix()
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getPropertyName
public java.lang.String getPropertyName()
Description copied from interface:ParserAction
Return the property name or prefix for which this action is applied.- Specified by:
getPropertyName
in interfaceParserAction
- Returns:
- the property name or prefix.
-
isPrefix
public boolean isPrefix()
Description copied from interface:ParserAction
Return whether this action is for an exact match or a prefix match (true).- Specified by:
isPrefix
in interfaceParserAction
- Returns:
- true if this action is for an exact or prefix match.
-
getFieldName
public java.lang.String getFieldName()
Description copied from interface:ParserAction
Return the field name in an object that is set with the result- Specified by:
getFieldName
in interfaceParserAction
- Returns:
- the field name
-
apply
public abstract java.lang.Object apply(java.util.Properties props)
Description copied from interface:ParserAction
Apply this action to props and return the result.- Specified by:
apply
in interfaceParserAction
- Parameters:
props
- properties to apply action to- Returns:
- result of action
-
getOperation
protected Operation getOperation()
-
-