public org.smpte_ra.schemas.st2067_2_2016.ContentMaturityRatingType buildContentMaturityRatingType(String agency,String rating,org.smpte_ra.schemas.st2067_2_2016.ContentMaturityRatingType.Audience audience) throws URISyntaxException {
  org.smpte_ra.schemas.st2067_2_2016.ContentMaturityRatingType contentMaturityRatingType=new org.smpte_ra.schemas.st2067_2_2016.ContentMaturityRatingType();
  if (!agency.matches("^[a-zA-Z0-9._-]+") == true) {
    throw new URISyntaxException("Invalid URI","The ContentMaturityRating agency %s does not follow the syntax of a valid URI (a-z, A-Z, 0-9, ., _, -)");
  }
  contentMaturityRatingType.setAgency(agency);
  contentMaturityRatingType.setRating(rating);
  contentMaturityRatingType.setAudience(audience);
  return contentMaturityRatingType;
}

public org . smpte_ra . schemas . st2067_2_2016 . ContentMaturityRatingType buildContentMaturityRatingType ( String agency , String rating , org . smpte_ra . schemas . st2067_2_2016 . ContentMaturityRatingType . Audience audience ) throws URISyntaxException { org . smpte_ra . schemas . st2067_2_2016 . ContentMaturityRatingType contentMaturityRatingType = new org . smpte_ra . schemas . st2067_2_2016 . ContentMaturityRatingType ( ) ; if ( ! agency . matches ( "^[a-zA-Z0-9._-]+" ) == true ) { throw new URISyntaxException ( "Invalid URI" , "The ContentMaturityRating agency %s does not follow the syntax of a valid URI (a-z, A-Z, 0-9, ., _, -)" ) ; } contentMaturityRatingType . setAgency ( agency ) ; contentMaturityRatingType . setRating ( rating ) ; contentMaturityRatingType . setAudience ( audience ) ; return contentMaturityRatingType ; }
a method to construct a contentmaturityratingtype conforming to the 2016 schema
