null
will be returned.
@param params Parameters from which index key will be calculated.
@return Key value or null if calculation is impossible.
DataType
, as is the case with the AttributeValueType in the policy schema. The value is assumed to be the first child of this node.
@param root the DOM root of an attribute value
@return a new AttributeValue
@throws UnknownIdentifierException if the type in the node isn't known to the factory
@throws ParsingException if the node is invalid or can't be parsed by the appropriate proxy
This method is invoked when the user fills in the parameter values in the HTML form and submits it to the server.
Value
based on an existing QValue
@param qvalue existing QValue
@return a Value
representing the QValue
DataType
, as is the case with the AttributeValueType in the policy schema. The value is assumed to be the first child of this node.
@param root the DOM root of an attribute value
@return a new AttributeValue
@throws UnknownIdentifierException if the type in the node isn'tknown to the factory
@throws ParsingException if the node is invalid or can't be parsedby the appropriate proxy
The caller cannot generally assume that the value object is a meaningful Java object. For example, the caller cannot expect this method to return java.lang.Number
type for the "integer" type of XML Schema Part 2.
Also, the caller cannot assume that the equals method and the hashCode method of the value object are consistent with the semantics of the datatype. For that purpose, the sameValue method and the valueHashCode method have to be used. Note that this means you cannot use classes like java.util.Hashtable
to store the value objects.
The returned value object should be used solely for the sameValue and valueHashCode methods. @param context If this datatype is context-dependent (when the {@link #isContextDependent} method returns true),then the caller must provide a non-null valid context object. Otherwise, the caller can pass null. @return nullwhen the given lexical value is not a valid lexical value for this type.
public SemanticValue value(Object value, ParseError error) { return new SemanticValue(value, index, error); }However, for a result that already is a semantic value, a more sophisticated implementation can avoid creating a new semantic value if the specified actual value and parse error are identical to those for this result. @param value The actual value. @param error The embedded parse error. @throws IllegalStateException Signals that this result is aparse error.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|