public class Id extends NCName
Constructor and Description |
---|
Id() |
Id(String stValue)
Constructor for Id.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(String stValue)
Validates the value against the xsd definition.
|
void |
setValue(String stValue)
Validates the data and sets the value for the object.
|
equals, hashCode, toString
public Id()
public Id(String stValue) throws IllegalArgumentException
IllegalArgumentException
- will be thrown if validation failspublic void setValue(String stValue) throws IllegalArgumentException
setValue
in class NCName
stValue
- String valueIllegalArgumentException
- if invalid formatpublic static boolean isValid(String stValue)
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.