int idType = datatype.getIdType(); Location loc = mContext.getValidationLocation(); PrefixedName elemPName = getElementPName();
private void noteDatatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL) idTypes = true; } }
private void noteDatatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL) idTypes = true; } }
private void noteDatatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL) idTypes = true; } }
private void datatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL && !attributeIsParent) error("id_parent", locator); }
private void noteDatatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL) idTypes = true; } }
private void datatype(Datatype dt) { if (dt.getIdType() != Datatype.ID_TYPE_NULL && !attributeIsParent) error("id_parent", locator); }
public Integer caseValue(ValuePattern p) { return p.getDatatype().getIdType(); } }
public Integer caseValue(ValuePattern p) { return p.getDatatype().getIdType(); } }
public Integer caseData(DataPattern p) { return p.getDatatype().getIdType(); }
public Integer caseDataExcept(DataExceptPattern p) { return p.getDatatype().getIdType(); }
public Integer caseData(DataPattern p) { return p.getDatatype().getIdType(); }
private void checkIdType( DataOrValueExp exp ) { if(exp.getType().getIdType()!=Datatype.ID_TYPE_NULL) { // ID/IDREF type in all other locations are subject to // a compatibility error. reportCompError( new Locator[]{reader.getDeclaredLocationOf(exp)}, CERR_MALPLACED_ID_TYPE, new Object[]{ exp.getName().localName, getSemanticsStr(exp.getType().getIdType())}); } } });
private void checkIdType( DataOrValueExp exp ) { if(exp.getType().getIdType()!=Datatype.ID_TYPE_NULL) { // ID/IDREF type in all other locations are subject to // a compatibility error. reportCompError( new Locator[]{reader.getDeclaredLocationOf(exp)}, CERR_MALPLACED_ID_TYPE, new Object[]{ exp.getName().localName, getSemanticsStr(exp.getType().getIdType())}); } } });
private void checkIdType( DataOrValueExp exp ) { if(exp.getType().getIdType()!=Datatype.ID_TYPE_NULL) { // ID/IDREF type in all other locations are subject to // a compatibility error. reportCompError( new Locator[]{reader.getDeclaredLocationOf(exp)}, CERR_MALPLACED_ID_TYPE, new Object[]{ exp.getName().localName, getSemanticsStr(exp.getType().getIdType())}); } } });
private void checkIdType( DataOrValueExp exp ) { if(exp.getType().getIdType()!=Datatype.ID_TYPE_NULL) { // ID/IDREF type in all other locations are subject to // a compatibility error. reportCompError( new Locator[]{reader.getDeclaredLocationOf(exp)}, CERR_MALPLACED_ID_TYPE, new Object[]{ exp.getName().localName, getSemanticsStr(exp.getType().getIdType())}); } } });
public boolean match(ValueExp exp) { Object thisValue = exp.dt.createValue(literal, context); if (!exp.dt.sameValue(thisValue, exp.value)) return false; // this type accepts me. if (refType != null) assignType(exp.dt); // if the type has ID semantics, report it. if (exp.dt.getIdType() != Datatype.ID_TYPE_NULL && context != null) // context can be legally null when this datatype is not context dependent. context.onID(exp.dt, this); return true; }
public boolean match(ValueExp exp) { Object thisValue = exp.dt.createValue(literal, context); if (!exp.dt.sameValue(thisValue, exp.value)) return false; // this type accepts me. if (refType != null) assignType(exp.dt); // if the type has ID semantics, report it. if (exp.dt.getIdType() != Datatype.ID_TYPE_NULL && context != null) // context can be legally null when this datatype is not context dependent. context.onID(exp.dt, this); return true; }
public boolean match(ValueExp exp) { Object thisValue = exp.dt.createValue(literal, context); if (!exp.dt.sameValue(thisValue, exp.value)) return false; // this type accepts me. if (refType != null) assignType(exp.dt); // if the type has ID semantics, report it. if (exp.dt.getIdType() != Datatype.ID_TYPE_NULL && context != null) // context can be legally null when this datatype is not context dependent. context.onID(exp.dt, this); return true; }
public boolean match(ValueExp exp) { Object thisValue = exp.dt.createValue(literal, context); if (!exp.dt.sameValue(thisValue, exp.value)) return false; // this type accepts me. if (refType != null) assignType(exp.dt); // if the type has ID semantics, report it. if (exp.dt.getIdType() != Datatype.ID_TYPE_NULL && context != null) // context can be legally null when this datatype is not context dependent. context.onID(exp.dt, this); return true; }