Java Code Examples for com.sun.tools.xjc.model.CReferencePropertyInfo#isCollection()

The following examples show how to use com.sun.tools.xjc.model.CReferencePropertyInfo#isCollection() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimplifyPlugin.java    From jaxb2-basics with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private CReferencePropertyInfo createReferencePropertyInfo(
		final Model model, CReferencePropertyInfo property, CElement element) {
	final String propertyName = createPropertyName(model, property, element);
	final CReferencePropertyInfo referencePropertyInfo = new CReferencePropertyInfo(
			propertyName, property.isCollection(), /* required */false,/* mixed */
			false, element.getSchemaComponent(),
			element.getCustomizations(), element.getLocator(),
			property.isDummy(), property.isContent(),
			property.isMixedExtendedCust());
	referencePropertyInfo.getElements().add(element);
	return referencePropertyInfo;
}
 
Example 2
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public U onBuiltinElementReference(
		CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleBuiltinElementReference(referencePropertyInfo)
			: classifier
					.onCollectionBuiltinElementReference(referencePropertyInfo);
}
 
Example 3
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public U onArrayElementReference(
		CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleArrayElementReference(referencePropertyInfo)
			: classifier
					.onCollectionArrayElementReference(referencePropertyInfo);
}
 
Example 4
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public U onClassElementReference(
		CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleClassElementReference(referencePropertyInfo)
			: classifier
					.onCollectionClassElementReference(referencePropertyInfo);
}
 
Example 5
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public U onSubstitutedElementReference(
		CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleSubstitutedElementReference(referencePropertyInfo)
			: classifier
					.onCollectionSubstitutedElementReference(referencePropertyInfo);
}
 
Example 6
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public U onEnumElementReference(CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleEnumElementReference(referencePropertyInfo)
			: classifier
					.onCollectionEnumElementReference(referencePropertyInfo);
}
 
Example 7
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public U onClassReference(CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleClassReference(referencePropertyInfo) : classifier
			.onCollectionClassReference(referencePropertyInfo);
}
 
Example 8
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public U onWildcardReference(CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleWildcardReference(referencePropertyInfo) : classifier
			.onCollectionWildcardReference(referencePropertyInfo);
}
 
Example 9
Source File: CClassifyingVisitor.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public U onHeteroReference(CReferencePropertyInfo referencePropertyInfo) {
	return !referencePropertyInfo.isCollection() ? classifier
			.onSingleHeteroReference(referencePropertyInfo) : classifier
			.onCollectionHeteroReference(referencePropertyInfo);
}