Class NCName

    • Constructor Summary

      Constructors 
      Constructor Description
      NCName()  
      NCName​(java.lang.String stValue)
      ctor for NCName
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isValid​(java.lang.String stValue)
      validate the value against the xsd definition NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
      void setValue​(java.lang.String stValue)
      validates the data and sets the value for the object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NCName

        public NCName()
      • NCName

        public NCName​(java.lang.String stValue)
               throws java.lang.IllegalArgumentException
        ctor for NCName
        Throws:
        java.lang.IllegalArgumentException - will be thrown if validation fails
    • Method Detail

      • setValue

        public void setValue​(java.lang.String stValue)
                      throws java.lang.IllegalArgumentException
        validates the data and sets the value for the object.
        Overrides:
        setValue in class Name
        Parameters:
        stValue - String value
        Throws:
        java.lang.IllegalArgumentException - if invalid format
      • isValid

        public static boolean isValid​(java.lang.String stValue)
        validate the value against the xsd definition NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender