Package org.eclipse.wst.xml.xpath2.api.typesystem
public class PrimitiveType extends
Method Summary | |
public org.eclipse.wst.xml.xpath2.api.Item | construct(java.lang.Object content) validate a given string against this simple type. |
public java.lang.Class | getInterfaceClass() |
public java.lang.Class | getNativeType() |
public boolean | isEqual(java.lang.Object value1
,
java.lang.Object value2) Check whether two actual values are equal. |
public boolean | isIDType() Check whether this type is or is derived from ID. REVISIT: this method makes ID special, which is not a good design. but since ID is not a primitive, there doesn't seem to be a clean way of doing it except to define special method like this. |
public boolean | validate(java.lang.String content) validate a given string against this simple type. |
public boolean | validateNative(java.lang.Object content) validate a given string against this simple type. |
Methods Detail |
public org.eclipse.wst.xml.xpath2.api.Item construct(java.lang.Object content)
validate a given string against this simple type.
content
- the string value that needs to be validated
org.eclipse.wst.xml.xpath2.api.Item
- the actual value (QName, Boolean) of the string value
public java.lang.Class getInterfaceClass()
java.lang.Class
- the actual value (QName, Boolean) of the string value
public java.lang.Class getNativeType()
java.lang.Class
- The expected native type (class or interface) to expect when calling getValue.
public boolean isEqual(java.lang.Object value1
,
java.lang.Object value2)
Check whether two actual values are equal.
value1
- the first value
value2
- the second value
boolean
- true if the two value are equal
public boolean isIDType()
Check whether this type is or is derived from ID. REVISIT: this method makes ID special, which is not a good design. but since ID is not a primitive, there doesn't seem to be a clean way of doing it except to define special method like this.
boolean
- whether this simple type is or is derived from ID.
public boolean validate(java.lang.String content)
validate a given string against this simple type.
content
- the string value that needs to be validated
boolean
- the actual value (QName, Boolean) of the string value
public boolean validateNative(java.lang.Object content)
validate a given string against this simple type.
content
- the string value that needs to be validated
boolean
- the actual value (QName, Boolean) of the string value